Checkmarks
A small command-line dashboard for your progress. Point it at a folder of Markdown files (books, courses, tutorials) and get one progress bar per file.
$ checkmarks ~/progress
Thinking, Fast and Slow [████------] 17/38 chapters 45%
Gödel, Escher, Bach [██--------] 5/22 chapters 23%
Rust tutorial [████------] 12/28 tasks 43%
NN hands-on [██--------] 2/8 tasks 25%
Your Markdown files are the source of truth: checkmarks only reads and reports. It never changes your files and keeps no state of its own.
Installation
Option 1: Install via PyPI (Recommended)
pip install checkmarks
Option 2: Install from source
- Make sure you have Python 3.11+ installed.
- Clone or download this repository.
git clone https://github.com/menisadi/checkmarks.git
cd checkmarks
pip install .
Usage
checkmarks todo.md # one file
checkmarks ~/progress # every .md file in a folder
checkmarks -r ~/progress # ...and in its subfolders
checkmarks a.md b.md notes/ # any mix of files and folders
fd -e md | checkmarks - # read paths from stdin
checkmarks # $CHECKMARKS_DIR if set, else the current folder
In folders, files ending in .md or .markdown are read, sorted by path. With -r, folders whose names start with . (like .git) are skipped.
File format
Checklists
By default, checkmarks counts checkboxes:
# My Todo List
- [ ] Buy groceries
- [x] Write blog post
- [X] Nested items count too
1. [ ] Ordered lists work as well
[x]and[X]are done;[ ]is pending.- List items can start with
-,*,+,1.or1). - Checkboxes inside fenced code blocks are ignored.
Big things: break them down
checkmarks only counts checkboxes. To track a book, split it into chapters or page ranges, each one a task small enough to finish in a sitting:
---
unit: chunks
---
# Dune
- [x] pp. 1–40
- [x] pp. 41–80
- [ ] pp. 81–120
- [ ] pp. 121–160
Supported frontmatter keys:
| Key | Meaning |
|---|---|
unit |
Label after the count (default tasks) |
title |
Row title |
Other keys are ignored.
Titles
The row title is the frontmatter title, else the first # Heading, else the filename.
Output
On a terminal, checkmarks prints the aligned table shown above. Rows at 100% are green; set NO_COLOR or pass --no-color to turn colour off.
When output is piped, it switches to tab-separated rows with no header:
title done total pct unit status path
Use --json for a JSON array:
$ checkmarks --json dune.md
[
{
"title": "Dune",
"done": 9,
"total": 22,
"pct": 40.9,
"unit": "chapters",
"status": "ok",
"path": "dune.md"
}
]
status is ok, empty (no checkboxes) or error (the file can't be read). Problems are reported on stderr, and the row is still shown.
Empty files found in folders or read from stdin are hidden; pass --all to show them. Files you name as arguments are always shown.
Options
| Option | Description |
|---|---|
-r, --recursive |
Descend into subfolders |
--all |
Show empty files from folders or stdin |
--hide-done |
Hide files that are 100% done |
--sort {title,pct} |
Sort by title (A-Z) or pct (highest first) |
--format {pretty,tsv,json} |
Choose the output format |
--json |
Same as --format json |
--no-color |
Disable colour |
-v, --verbose |
Also warn about files with no checkboxes |
Exit code is 0 if at least one file has progress to show, 1 if none does, and 2 for usage errors.
Upgrading from 0.2
- The
progress: N/Mfrontmatter key (counter mode) is gone. Replace it with a checklist of chapters or page ranges. - The
modecolumn (TSV) and field (JSON) are removed.
Upgrading from 0.1
- Output is now a table row per file instead of the old "📊 Progress for:" block.
- Python 3.11 or newer is required.
- Plain checklist files need no changes.
Contributing
Feel free to submit issues or pull requests. This is a small tool, so contributions are always welcome.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for checkmarks 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| checkmarks-0.5.0.tar.gz | 17.0 kB | Without provenance | Details for checkmarks-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| checkmarks-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for checkmarks-0.5.0-py3-none-any.whl |
Total release size: 27.4 kB
Release files / checkmarks-0.5.0.tar.gz
| Download URL | checkmarks-0.5.0.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbab125f35e5f278f4f3b3f1c01aea23d406366d54faee86ff50c62cbfceadb2
|
|
BLAKE2b-256 checksum How to use checksums |
6b3c52988de030c898003289ef986d41da1862d9cc2633323c1fa47be98a9764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / checkmarks-0.5.0-py3-none-any.whl
| Download URL | checkmarks-0.5.0-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2deead67fc4cc5214209c6d05a26973e82983c86f45bf6f966bd41e927f225f7
|
|
BLAKE2b-256 checksum How to use checksums |
634900e69cff221470fc65159eb8b9d13da3d18a507cc4044e2d6ef362bb36e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for checkmarks 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.