Skip to main content

cards

A small task tracker for the command line: what's next, who's on it, and what's done.

Use it on its own, with your cards in a file on your computer, or with the Cards web app, so your team shares one list from the terminal and the browser.

Installing

pip install cards

or, to keep it in its own environment:

uv tool install cards

It needs Python 3.10 or newer.

Usage

Here's a quick tour:

$ cards add a todo
$ cards add -o Brian another task
$ cards list

  ID   state   owner   summary
 ───────────────────────────────────
  1    todo            a todo
  2    todo    Brian   another task

$ cards update 1 -o Brian
$ cards start 1
$ cards

  ID   state     owner   summary
 ─────────────────────────────────────
  1    in prog   Brian   a todo
  2    todo      Brian   another task

$ cards finish 1
$ cards

  ID   state   owner   summary
 ───────────────────────────────────
  2    todo    Brian   another task

Done cards are hidden unless you ask for them:

$ cards list -s all

  ID   state   owner   summary
 ───────────────────────────────────
  1    done    Brian   a todo
  2    todo    Brian   another task

$ cards block 2
$ cards details 2 --edit    # or add a card with details: cards add -d ...
$ cards

  ID   state     owner   summary
 ─────────────────────────────────────────
  2    blocked   Brian   another task *

* has details: cards details ID

$ cards details 2
2: another task

Waiting on a reply from Anna.

$ cards delete 1
Delete card 1: a todo? [y/N]: y
$ cards list -s all

  ID   state     owner   summary
 ─────────────────────────────────────────
  2    blocked   Brian   another task *

* has details: cards details ID

Cards you're not getting to soon can be parked on the Later list. cards and cards list show the Sooner list, and mention how many cards are waiting:

$ cards add rewrite the docs --later
$ cards

  ID   state     owner   summary
 ─────────────────────────────────────────
  2    blocked   Brian   another task *

* has details: cards details ID

1 more on the Later list: cards list --later

$ cards list --later

  ID   state   owner   summary
 ───────────────────────────────────────
  3    todo            rewrite the docs

$ cards sooner 3      # move it back; `cards later ID` parks a card
$ cards list --all    # both lists, with a "list" column

$ cards --help

 Usage: cards [OPTIONS] COMMAND [ARGS]...

 Cards is a small command line task tracking application.

╭─ Options ────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                      │
╰──────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────╮
│ add       Add a card to db.                                      │
│ block     Set a card state to 'blocked'.                         │
│ config    List the path to the Cards db.                         │
│ count     Return number of cards in db.                          │
│ delete    Remove card in db with given id (asks first).          │
│ details   Show a card's details (or edit them with --edit).      │
│ finish    Set a card state to 'done'.                            │
│ later     Move a card to the Later list.                         │
│ list      List open cards (use -s all to include done ones) on   │
│           the Sooner list (or --later, or --all).                │
│ projects  List the team's projects, or add one (web app only).   │
│ sooner    Move a card back to the Sooner list.                   │
│ start     Set a card state to 'in prog'.                         │
│ update    Modify a card in db with given id with new info.       │
│ version   Return version of cards application                    │
╰──────────────────────────────────────────────────────────────────╯

Using the Cards web app

By default, cards are stored in a local file (~/cards_db, or CARDS_DB_DIR).

To use a team's cards on the Cards web app instead, set these. There's a step by step setup guide on the web app.

export CARDS_URL=https://cards.pythontest.com
export CARDS_TEAM=<team slug, as in /a/<team slug>/ in web app URLs>
export CARDS_API_KEY=<an API key from your profile page in the web app>

The commands work the same way. cards config shows which web app and team you're using. Owners are team members: use -o me, or a member's email or name. If an owner doesn't match anyone on the team, cards asks who you meant:

$ cards add fix the docs -o brain
'brain' isn't a team member. Did you mean Brian Okken? [y/N]: y

Projects

On the web app, a team can have several projects, each with its own Sooner and Later lists. Card numbers are unique across the team, so commands that act on one card, like cards start 42, work whatever project the card is in.

Listing and adding use the team's default project, unless you pick one with CARDS_PROJECT or -p (which wins):

$ export CARDS_PROJECT=website     # e.g. per code repo, with direnv
$ cards                            # the website project's open cards
$ cards add -p docs fix the typos  # add to another project
$ cards list -p all                # every project, with a project column
$ cards update 42 -p docs          # move a card to another project
$ cards projects                   # the team's projects and open card counts
$ cards projects add docs          # add a project

Projects are managed on the web app's Projects page too. They don't exist for local-file cards.

Learning pytest with cards

cards started as a teaching project, and it's still the example application in:

If you're following the course or the book, install the version it uses, so the code and output match. Version 3 added the web app, projects, the Later list and more.

Metadata

Release files for cards 3.0.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 cards 3.0.1
File Size Uploaded Provenance Actions
cards-3.0.1.tar.gz 11.8 kB With provenance Details for cards-3.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 24.2 kB

Release files / cards-3.0.1.tar.gz

Download URL cards-3.0.1.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
00d7d361539dd9e8461eb6a4d8675c4be58c359151e189cbce04a370a60f965b
BLAKE2b-256 checksum
How to use checksums
e36a9f43be5613b470e53283a30e95406801d2426b5f8a88564513510b2dc5fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / cards-3.0.1-py3-none-any.whl

Download URL cards-3.0.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71655d284c5ec4c1a530cb0e46880f5f13fe0cc11880e95b5c332945fb5cf408
BLAKE2b-256 checksum
How to use checksums
78acb4fe462a44330037eb939a4c3c6201eedf3f5f5f454b8fa1f7dbc6373ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for cards 3.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cards-3.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

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