Terminal-first time tracking, reporting, and invoicing for solo developers
Project description
ttd
Terminal-first time tracking, reporting, and invoicing for solo developers.
Track time where you already live — the terminal. Log work in natural language, run timers, roll everything up into reports, and send client-ready PDF invoices, all without leaving your shell.
$ ttd log "today 8am to 5pm" -p api-rewrite --note "auth endpoints"
✓ Logged 9:00 on Tue Jun 9 (8:00am–5:00pm)
$ ttd invoice create --client acme-corp --month 2026-06 --pdf
✓ Created invoice 2026-001
✓ Wrote ~/Documents/invoices/2026-001-acme-corp.pdf
Full documentation: syn54x.github.io/ttd — guides, the TUI tour, time-expression cookbook, and the complete CLI and configuration reference.
Install
uv tool install ttd-ledger # or: pipx install ttd-ledger
ttd --install-completion # shell completion
The three ways in
- CLI — every feature is a command. Scriptable, pipeable.
-iforms — add-ito any mutating command for an interactive form; any flags you already passed pre-fill it.- TUI — run bare
ttdfor the full-screen app: live timer, activity heatmap, day-by-day timesheet with as-you-type time parsing, reports, and invoice management. Keys:1–5screens,sstart/stop,lquick-log.
Try it with demo data: ttd db seed-demo && ttd (add --reset to wipe and reseed)
Logging time
Natural language, retrospective or live:
ttd log "today 8am to 5pm" # interval
ttd log "yesterday 9-11:30" # am/pm inferred from your workday window
ttd log "monday 1pm for 3 hours" # most recent monday
ttd log "2h this morning" # duration-only entry
ttd log "6/3 10am-1pm" # explicit date
ttd start api-rewrite # live timer
ttd stop --at 5pm
ttd status
Multiple entries per project per day are normal; reports and invoices roll them up into hours per day. Ambiguous times ("6 to 8") are rejected with the candidate readings instead of silently guessing.
Clients, projects, rates
ttd client add "Acme Corp" --rate 150 --email billing@acme.test
ttd project add "API Rewrite" --client acme-corp # inherits $150/h
ttd project add "Mobile App" --client acme-corp --rate 175
Rates resolve project → client → [business].default_hourly_rate.
Reports
ttd report day # today, entry by entry
ttd report week --by project # sparklines + billable value
ttd report month 2026-05 --client acme-corp
ttd report range --from 2026-01-01 --to 2026-03-31 --by client
Invoicing
ttd invoice create --client acme-corp --month 2026-05 --pdf --md
ttd invoice list
ttd invoice mark 2026-001 sent # then: paid, or void
Billable, uninvoiced entries roll up to one line per project per day, rounded
per your [billing] policy. Invoiced entries lock; voiding an invoice releases
them (numbers are never reused).
Export / import
CSV, JSON, XLSX, and Apple Numbers — both directions:
ttd export hours.xlsx # format inferred from extension
ttd export backup.json # JSON carries client/project metadata
ttd import hours.csv --dry-run # preview: new/update/skip/errors
ttd import hours.csv --on-conflict update --create-missing
Imports match by entry id, then by content; invoiced entries are never touched.
Configuration
Layered TOML, nearest-wins (like ruff): CLI flags → TTD_* env →
.ttd.toml (walks up from cwd) → ~/.config/ttd/config.toml → defaults.
# ~/.config/ttd/config.toml
[user]
name = "Taylor"
email = "taylor@example.com"
[business]
currency = "USD"
default_hourly_rate = 150
[billing]
rounding = "nearest" # nearest | up | none
increment_minutes = 15 # applied per project-day
[invoice]
number_format = "{year}-{seq:03d}"
payment_terms_days = 30
output_dir = "~/Documents/invoices"
[parsing]
workday_start = 7 # am/pm inference window
workday_end = 19
Pin a repo to a project so bare ttd start / ttd log "2h" just work:
cd ~/code/acme-api
ttd config set defaults.client acme-corp --local
ttd config set defaults.project api-rewrite --local
ttd config list --origin shows where every value came from.
Development
uv sync
just test # pytest
just lint # ruff + ty
just tui # textual dev mode
Stack: Python 3.13, Ferro-ORM over SQLite, Cyclopts, Rich, Textual, questionary, fpdf2, openpyxl, numbers-parser.
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
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 ttd_ledger-0.6.0.tar.gz.
File metadata
- Download URL: ttd_ledger-0.6.0.tar.gz
- Upload date:
- Size: 74.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa0ea13848ea448451d5607c6b8a2d09dd14ac5795447628cc9224ffa64b1a87
|
|
| MD5 |
6045659bf960a9a8905e2d1841e25a7c
|
|
| BLAKE2b-256 |
6dbd1af35c080f8733f61295dab78396fa10892e1b1618adc7d97a6f4aedd3b7
|
Provenance
The following attestation bundles were made for ttd_ledger-0.6.0.tar.gz:
Publisher:
release.yml on syn54x/ttd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ttd_ledger-0.6.0.tar.gz -
Subject digest:
fa0ea13848ea448451d5607c6b8a2d09dd14ac5795447628cc9224ffa64b1a87 - Sigstore transparency entry: 1803465642
- Sigstore integration time:
-
Permalink:
syn54x/ttd@6c397defe7dbea702b975a817e579f2bcc28caee -
Branch / Tag:
refs/heads/main - Owner: https://github.com/syn54x
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6c397defe7dbea702b975a817e579f2bcc28caee -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ttd_ledger-0.6.0-py3-none-any.whl.
File metadata
- Download URL: ttd_ledger-0.6.0-py3-none-any.whl
- Upload date:
- Size: 111.3 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 |
f32b683d4dce111ae331e61d72e17a326f17015e7a72d98f8fecf6779b3ded5f
|
|
| MD5 |
6f956e6b79ddbe44c01abeee539713fe
|
|
| BLAKE2b-256 |
01fb8c9fcbf792b74cb867cd3789d989e1998ec660e98a5ccf14b582b619c117
|
Provenance
The following attestation bundles were made for ttd_ledger-0.6.0-py3-none-any.whl:
Publisher:
release.yml on syn54x/ttd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ttd_ledger-0.6.0-py3-none-any.whl -
Subject digest:
f32b683d4dce111ae331e61d72e17a326f17015e7a72d98f8fecf6779b3ded5f - Sigstore transparency entry: 1803465669
- Sigstore integration time:
-
Permalink:
syn54x/ttd@6c397defe7dbea702b975a817e579f2bcc28caee -
Branch / Tag:
refs/heads/main - Owner: https://github.com/syn54x
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6c397defe7dbea702b975a817e579f2bcc28caee -
Trigger Event:
workflow_dispatch
-
Statement type: