Sigma CLI finance tracker
Project description
Sigma (sgm)
Sigma is a fast, CLI-first personal finance tracker designed for local use. It focuses on rapid transaction logging, simple account management, and auditable snapshots through a "rendering" cycle.
Why Sigma?
Most finance trackers are either too complex or require too many clicks. Sigma is built for users who live in the terminal and want to:
- Log quickly: Record expenses, income, and transfers with minimal keystrokes.
- Audit with ease: Use the
rendercommand to verify and clear your pending movements into historical snapshots. - Stay local: Your data stays on your machine in a lightweight SQLite database.
- See the big picture: Rich terminal tables provide instant clarity on your balances and credit availability.
Features
- ⚡ Fast Logging: Simple commands for
exp(expense),inc(income), andtr(transfer). - 🏦 Account Management: Support for both Debit and Credit accounts with rolling credit limit tracking.
- 🔄 Rendering Cycle: Mark movements for review and "render" them into your history once verified.
- 📊 Rich Interface: Beautifully formatted tables powered by Rich.
- 📜 Audit Log: Full history of movements and render snapshots.
- 🌐 Web Dashboard: Modern, minimalist local web client (
sgm web). - 🤖 Telegram Bot: Optional integration to securely interact with Sigma via Telegram using standard CLI commands.
Installation
Sigma requires Python 3.10 or higher.
# Core CLI only
pip install sigma-finance
# With Telegram Bot integration
pip install "sigma-finance[telegram]"
First-run Setup
Once installed, initialize your database and create your first account:
sgm start
Usage
Core Workflow
- Check your status:
sgm status - Log an expense:
# Usage: sgm exp <amount> <description> <mark_for_render: yes|no> [account_id] [date] sgm exp 5000 "Lunch" yes wallet 2026-05-20
- Log income:
sgm inc 2500000 "Salary" no bci
- Transfer between accounts:
sgm tr bci wallet 50000
- Render marked movements:
# Sums marked items, logs to history, and clears marks. sgm render
Web Dashboard
To launch the local web interface:
sgm web # Launches the local dashboard in your browser
Telegram Bot
To run Sigma as a background bot, configure your credentials and launch the daemon:
sgm bot setup # Configure bot token and allowed users
sgm bot run # Launch the daemon
For Docker, systemd, or launchd setup details, see the Telegram Bot Deployment Guide.
Command Reference
| Command | Description |
|---|---|
sgm status |
Show balances, credit limits, and marked totals. |
sgm log [limit] |
List recent movements (default: 15). |
sgm history |
View previous render results. |
sgm acc list |
List all accounts and their details. |
sgm config |
Configure default accounts for faster logging. |
sgm web |
Start the local web dashboard server. |
sgm export |
Export all data to a ZIP file with CSV tables. |
sgm delete <id> |
Remove a record by its unique ID (e.g., m-1). |
sgm bot setup |
Configure the Telegram Bot credentials. |
sgm bot run |
Start the Telegram Bot event loop. |
For a complete reference of all available commands and their arguments, please refer to the Detailed CLI Usage Guide.
Development
We use Makefile for common development tasks.
# Clone the repository
git clone https://github.com/fzunigam/sigma
cd sigma
# Install in editable mode with dev dependencies
make install
# Run tests
make test
# Run linter
make lint
Project Structure
src/sgm/— Core Python packagecli.py— Typer-based CLI entrypointstelegram_bot.py— Telegram bot integrationinfrastructure/— database, persistence and config management (database.py,user_config.py)interface/— terminal UI, banners and web server glueinterface/web/— lightweight web server and static assets for the dashboard
web/— Next.js web client (React + Tailwind) and frontend sourcesdocs/— architecture, guides, deployment notes, and coding conventionstests/— test suites (smoke, integration, unit)assets/— images and demo assets (GIFs, screenshots)
License
Sigma is licensed under the MIT License.
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sigma_finance-0.3.4.tar.gz.
File metadata
- Download URL: sigma_finance-0.3.4.tar.gz
- Upload date:
- Size: 284.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
522c370b1fc5597f977424e73d910457ca83988bba73ca39695e665f31f3f85c
|
|
| MD5 |
e05f2fede8d9cb3b075095195cf8c2b3
|
|
| BLAKE2b-256 |
299dde8c654cd31f51d83078fa6c87d3228549e7dc5796261d6764cbf2d2a746
|
Provenance
The following attestation bundles were made for sigma_finance-0.3.4.tar.gz:
Publisher:
release-pypi.yml on fzunigam/sigma
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sigma_finance-0.3.4.tar.gz -
Subject digest:
522c370b1fc5597f977424e73d910457ca83988bba73ca39695e665f31f3f85c - Sigstore transparency entry: 1626006116
- Sigstore integration time:
-
Permalink:
fzunigam/sigma@bd206d99b26685800a7fa4e60084cb374674dd9d -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/fzunigam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@bd206d99b26685800a7fa4e60084cb374674dd9d -
Trigger Event:
push
-
Statement type:
File details
Details for the file sigma_finance-0.3.4-py3-none-any.whl.
File metadata
- Download URL: sigma_finance-0.3.4-py3-none-any.whl
- Upload date:
- Size: 288.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baadd7a4c8f9be7e30fbb8d2403804f028dcd4a65e250fbe8eef009cbfb41ae2
|
|
| MD5 |
8ffa626c32c654028dd375800405d563
|
|
| BLAKE2b-256 |
71c0aa0dbda168a37c5b20a1b30590f46fa1ba0fb0e506ce35ac5511e52f073a
|
Provenance
The following attestation bundles were made for sigma_finance-0.3.4-py3-none-any.whl:
Publisher:
release-pypi.yml on fzunigam/sigma
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sigma_finance-0.3.4-py3-none-any.whl -
Subject digest:
baadd7a4c8f9be7e30fbb8d2403804f028dcd4a65e250fbe8eef009cbfb41ae2 - Sigstore transparency entry: 1626006254
- Sigstore integration time:
-
Permalink:
fzunigam/sigma@bd206d99b26685800a7fa4e60084cb374674dd9d -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/fzunigam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@bd206d99b26685800a7fa4e60084cb374674dd9d -
Trigger Event:
push
-
Statement type: