Skip to main content

A personal budget tracker CLI

Project description

💰 Budget Tracker CLI

A command-line personal finance tracker built with Python and argparse, managed with uv.


Setup

1. Install uv

# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

2. Install the project

git clone https://github.com/mannyyebz/budget-tracker.git
cd budget-tracker
uv pip install -e .

Usage

Run any command with uv run budget <subcommand>.

Add a transaction

uv run budget add --amount 45.50 --category food --desc "Lunch at cafe" --type expense
uv run budget add --amount 3000 --category salary --desc "Monthly salary" --type income
uv run budget add --amount 85.20 --category food --desc "Groceries" --type expense --date 2026-04-10

List transactions

uv run budget list
uv run budget list --month 2026-04
uv run budget list --category food
uv run budget list --type expense

View summary report

uv run budget summary
uv run budget summary --month 2026-04

Set a budget limit

uv run budget set-limit --category food --limit 300
uv run budget set-limit --category rent --limit 1500

Export to CSV

uv run budget export --output report.csv
uv run budget export --month 2026-04 --output april.csv

View expense pie chart (Bonus)

uv run budget chart
uv run budget chart --month 2026-05

Project Structure

budget_tracker/ ├── pyproject.toml ├── src/ │ └── budget_tracker/ │ ├── main.py │ ├── storage.py │ └── commands/ │ ├── add.py │ ├── list_transactions.py │ ├── summary.py │ ├── export.py │ ├── set_limit.py │ └── chart.py └── data/ └── transactions.json

Data Storage

All data is persisted in data/transactions.json, auto-created on first run.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

budget_tracker_mannyyebz-0.1.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

budget_tracker_mannyyebz-0.1.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file budget_tracker_mannyyebz-0.1.3.tar.gz.

File metadata

File hashes

Hashes for budget_tracker_mannyyebz-0.1.3.tar.gz
Algorithm Hash digest
SHA256 53ca9f8929bd2f97825c6ec8f862150ba0fcf20b32e1faf8ea130d7787b45785
MD5 91e9541dfb785a9613a1e71c8f03bedf
BLAKE2b-256 38ba5563c772e9cb450ee92b2a4f027355c1259b199622ec11527852184a102a

See more details on using hashes here.

File details

Details for the file budget_tracker_mannyyebz-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for budget_tracker_mannyyebz-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7254d9c51705ebf0645347ab5aaef4bf28b1d44acd8c5a56797314b35ff55041
MD5 892fcabd87ba47d545dc64b1aa788d06
BLAKE2b-256 0ff2f990397fb8861b91648e85b5febb08041c9191ea75bc067f13ebce5aff83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page