fed-debt 🇺🇸
Check the current US federal debt, to the penny.
$ fed-debt
$39,828,435,390,891.55
$ fed-debt --verbose
US Federal Debt — 2026-08-04
┌──────────────────────────────┬──────────────────────┐
│ Metric │ Amount │
├──────────────────────────────┼──────────────────────┤
│ Total Public Debt Outstanding │ $39,828,435,390,891.55 │
│ Debt Held by the Public │ $32,100,703,256,953.12 │
│ Intragovernmental Holdings │ $7,727,732,133,938.43 │
│ Debt per US Citizen │ $118,890.85 │
└──────────────────────────────┴──────────────────────┘
Install
From PyPI (recommended)
pip install fed-debt
Or with ticker support (requires windows-curses on Windows):
pip install "fed-debt[ticker]"
From source
git clone https://gitlab.com/x0rn/fed-debt.git
cd fed-debt
py -m pip install -e .
Or for the ticker:
py -m pip install -e ".[ticker]"
Usage
| Command | What it does |
|---|---|
fed-debt |
Prints the latest total debt to the penny |
fed-debt --verbose |
Detailed breakdown table with per-citizen debt |
fed-debt --ticker |
Opens a small live-updating ticker window |
fed-debt --version |
Prints version number |
fed-debt --help |
Shows usage |
Ticker
The --ticker flag opens a thin, 3-line curses window that shows a
continuously incrementing debt counter. Instead of polling the API
every few seconds (wasteful — the data only updates once a day at
3:00 PM ET), it:
- Fetches the latest official reading on startup
- Estimates the per-second growth from recent history (~$1.3B/day)
- Interpolates the current value in real-time
Press q to quit, r to force a re-sync with the Treasury API.
Data Source
U.S. Treasury Fiscal Data — Debt to the Penny endpoint, updated daily at 3:00 PM ET.
Future
--chart— terminal-based historical charts (viaplotext)--since— see the debt on a specific past date- GUI/web backend using the same
api.pymodule
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 fed_debt-0.1.0.tar.gz.
File metadata
- Download URL: fed_debt-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24f88c1bbeace5979ae494302121e7e03fe3eccd156ece8ca0a03bb6f9dc332e
|
|
| MD5 |
f7815b0eb80aee4aae024f4aa2eaf954
|
|
| BLAKE2b-256 |
ce8dab154c4e43a13d87a1a1ed1f2a6820ee32c82ec87fbc4ac106f95b4520b8
|
File details
Details for the file fed_debt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fed_debt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d57c227a31f52cdae57a4da2f75eccbf8059c5be112c0435c9b444875cab3494
|
|
| MD5 |
e7ec36350e120daf391f6a59d99e840e
|
|
| BLAKE2b-256 |
7be52b768f50db8a7d64d37172d4e47167bf2037ce33c2e0530c83e30804f218
|