GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bastiendfd/cost-tracker-cli: Command-line tool to log and sum maintenance costs in SQLite. Fictional data.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Cost Tracker CLI

A local Python and SQLite command-line tool for fictional maintenance-cost tracking.

Python SQLite Tests

What it demonstrates

  • local SQLite persistence;
  • CLI design with Click;
  • maintenance-cost categories;
  • integer minor-unit storage for financial values;
  • reproducible tests across database connections.

Run locally

git clone https://github.com/bastiendfd/cost-tracker-cli.git
cd cost-tracker-cli

python -m venv .venv
# Windows Git Bash
.venv/Scripts/python.exe -m pip install -r requirements.txt
.venv/Scripts/python.exe -m pytest -q

Usage

# Use a local database path explicitly.
DB_PATH=demo-costs.sqlite .venv/Scripts/python.exe src/tracker.py add "Demo pump inspection" 1200.50 --category maintenance

DB_PATH=demo-costs.sqlite .venv/Scripts/python.exe src/tracker.py list
DB_PATH=demo-costs.sqlite .venv/Scripts/python.exe src/tracker.py summary

Amounts are converted from decimal input to integer cents before SQLite storage. Negative amounts are rejected by the CLI.

Data boundary

This project is a learning/portfolio tool. Use only fictional or explicitly authorised local data.

  • Local SQLite files are ignored by Git.
  • Do not commit cost records, customer information, invoices, ERP exports, credentials or secrets.
  • This is not accounting software and should not be used as a system of record.

Test command

python -m pytest -q

License

MIT. See LICENSE.

About

Command-line tool to log and sum maintenance costs in SQLite. Fictional data.

Topics

clicost-trackingmaintenancepythonsqlite

Resources

Readme
MIT license

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.