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.2.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.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for budget_tracker_mannyyebz-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8191b295ec7fc9b33f09204d4703f866d15b8864cb9f3ff2c85ba09ccb63b932
MD5 e065d50e2dee9078b466982d5bb64191
BLAKE2b-256 152e7a16194e6718997e8044afdc832049df319e5933b1d594fe5db491efaf6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for budget_tracker_mannyyebz-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c0a90754c0f1e182ea4a36dd9b4bc32980a8fa0a7fc8c49de50a959cc9afe1e
MD5 074f402b32b0ce7b4b7b6ff9ef04d20a
BLAKE2b-256 afb1b3e111adb9903b86c35e161fc98813e5570fc661fb4987abcaf8e5369967

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