Skip to main content

cards

Project task tracking / todo list

A Teaching Project

This project is used for teaching the concepts of software testing. Specifically, testing with the pytest test framework.

The project appears in:

Version 3 adds features for using cards as a real task tracker, including the Cards web app. If you're following the course or the book, install the version above, so the code and output match.

Installing

pip install cards

or, to keep it in its own environment:

uv tool install cards

Can be used as a simple todo list

Even though the primary goal of the project is for teaching about software testing, I also use it as a simple command line task tracker for myself and my team.

Usage

Here's a demo of how it works:

$ 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

ID   state   owner   summary       
─────────────────────────────────── 
  1    todo    Brian   a todo        
  2    todo    Brian   another task  
                                  
$ 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:

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.

Metadata

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

Built distribution (wheel)

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

Total release size: 24.2 kB

Release files / cards-3.0.0.tar.gz

Download URL cards-3.0.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
31517710d442d28aa859a099ca20d5304e2cf2fee7d4a7f78b477f4cf0861a4f
BLAKE2b-256 checksum
How to use checksums
b121fd62c166a215d7b685d00ac6a5ea36bf967ba7f0e6ab25463067be60c654
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.0-py3-none-any.whl

Download URL cards-3.0.0-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74799fc6a405fe86bc1698fae64c4bbc5470d4339f8cfc890ff668f278b66356
BLAKE2b-256 checksum
How to use checksums
0e965aa47707e3e8b9b3f5eb074391f27754834deef98477ab5f8714db1dd597
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.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.

Full provenance

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

Select from 2 files

Attestation for cards-3.0.0.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