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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for budget_tracker_mannyyebz-0.1.1.tar.gz
Algorithm Hash digest
SHA256 57dcf7f070b80cf4a2331d2d994d52710239054bc0f8d782ef5c74a37ef5539e
MD5 7ec9010f994240ff7bc8de9683c4cb50
BLAKE2b-256 f5aa2ad80f9fa15b04d4649729897a7255076159af5e31064087a66aa91f2116

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for budget_tracker_mannyyebz-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1160252da610c2a761a0ca99c88bef0ba2d9ed70073c7a87269642de597793b7
MD5 fde7ec7843a613c793c912e9928ad6da
BLAKE2b-256 a628b230376212c1de00367c8d9d8cdf4169eaefe26de0f2c0df62833fafe91b

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