How ahtashamahmad0/expense-tracker works
This is a small, single-file Streamlit expense tracker. The user enters expenses in the sidebar; the app keeps them in session memory, builds a pandas DataFrame, and presents summary metrics, charts, and a table, with deletion and CSV download as separate actions. The README confirms these capabilities and that data is in-memory only. All runtime behavior is in app.py; no persistent store or backend is present.
Main entry points: app.py Expense DataFrame
Components 11
Streamlit interface
- Expense tracker app
app.py - Expense entry form
app.py
Expense handling
- Session expense state
app.py - Expense DataFrame
app.py - Delete expense
app.py
Summaries and export
- Summary metrics
app.py - Category chart
app.py - Spending timeline
app.py - Expense table
app.py - CSV download
app.py
Other components
- User
Connections 12
- User → Expense entry form: enters expense
app.py - Expense entry form → Session expense state: appends valid expense
app.py - Expense tracker app → Session expense state: initializes state
app.py - Expense tracker app → Expense DataFrame: builds DataFrame
app.py - Expense DataFrame → Summary metrics: aggregates totals
app.py - Expense DataFrame → Category chart: groups by category
app.py - Expense DataFrame → Spending timeline: groups by date
app.py - Expense DataFrame → Expense table: displays rows
app.py - User → Delete expense: selects deletion
app.py - Delete expense → Session expense state: removes expense
app.py - Expense DataFrame → CSV download: encodes CSV
app.py - User → CSV download: downloads data
app.py