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.0.tar.gz (4.4 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.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for budget_tracker_mannyyebz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ada084925bd61cdf69d7f3ef2a850a96cf5b552b2ac1369b91cdeab15f476d8
MD5 1c33653892faa1554a0a058806cc5be3
BLAKE2b-256 93bd43dfa76dc3a6118e35e435cf9e0e043448e640b5a2db1d0f69eb4f4908f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for budget_tracker_mannyyebz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19f856982abe1f592ef8732017989c40cd196b5447a7b720b16017f8b93f0a72
MD5 0cc35c2a5012cdef81ca37a0b7e1f885
BLAKE2b-256 ee8eccede117a83684882d28b72324b135dcf327f2c11f00ca48ecb68ab89e19

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