Skip to main content

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

pip install checkmarks

Option 2: Install from source

  1. Make sure you have Python 3.11+ installed.
  2. 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. or 1).
  • 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 are hidden; pass --all to show them. Files you name directly are always shown.

Options

Option Description
-r, --recursive Descend into subfolders
--all Show empty files found in folders
--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/M frontmatter key (counter mode) is gone. Replace it with a checklist of chapters or page ranges.
  • The mode column (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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for checkmarks 0.3.0
File Size Uploaded Provenance Actions
checkmarks-0.3.0.tar.gz 17.2 kB Without provenance Details for checkmarks-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for checkmarks 0.3.0
File Interpreter ABI Platform Actions
checkmarks-0.3.0-py3-none-any.whl Python 3 none any Details for checkmarks-0.3.0-py3-none-any.whl

Total release size: 27.8 kB

Release files / checkmarks-0.3.0.tar.gz

Download URL checkmarks-0.3.0.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a3a1833ea0fc065a50e677b1ae811ebf6883bfb50104efae8a3360318ad15d82
BLAKE2b-256 checksum
How to use checksums
08f60e13c4143fd4d759406a8c9c1ce9049004ce1298179ddb202f8e1abce53f
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.3.0-py3-none-any.whl

Download URL checkmarks-0.3.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bab11dc38ddb9012400c73de71141d2e02036a335da244b145c05fbb37248beb
BLAKE2b-256 checksum
How to use checksums
6376b865c3cfaecb2027f64139b6e3836e4c1adbc33e911cc0b23a6c1d3d37e7
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.3.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page