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  [████------]  143/320 pages   45%
Gödel, Escher, Bach      [██--------]  180/777 pages   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.

Counters

For things that aren't a list of tasks, like the pages of a book, add frontmatter with a progress key. It replaces the checkbox count:

---
progress: 143/320
unit: pages
---
# Dune

Supported keys:

Key Meaning
progress done/total, e.g. 143/320
unit Label after the count (default tasks, or units with progress)
title Row title

unit and title also work in checklist files. 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  mode  status  path

Use --json for a JSON array:

$ checkmarks --json dune.md
[
  {
    "title": "Dune",
    "done": 143,
    "total": 320,
    "pct": 44.7,
    "unit": "pages",
    "mode": "counter",
    "status": "ok",
    "path": "dune.md"
  }
]

status is ok, empty (no checkboxes) or error (e.g. an invalid progress value). 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.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.2.1

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.2.1
File Size Uploaded Provenance Actions
checkmarks-0.2.1.tar.gz 17.8 kB Without provenance Details for checkmarks-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 28.7 kB

Release files / checkmarks-0.2.1.tar.gz

Download URL checkmarks-0.2.1.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0e9093836787b6c2f38a194cb3cdbb68dc0f8d6a7e8c4d46c082e23be94fdfdd
BLAKE2b-256 checksum
How to use checksums
b7d2122fbfb6f1ee8043eaf68371fa32429a7c684cb6e537815263f0eedc05a7
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.2.1-py3-none-any.whl

Download URL checkmarks-0.2.1-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb8a86dc2d646e12eeeaac40a37e1fabe85160e1b1bae9e9847231cb51b79077
BLAKE2b-256 checksum
How to use checksums
47fc727467e1f33c34043a9bac52c5c88e85644cd29a149fd53eabdcf283ffec
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.2.1

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