stapel-tasks
Generic tasks and kanban boards: Board/Column/Task/ChecklistItem/TaskComment, a REST surface, a full outbox event surface, and custom fields via stapel-attributes. Usable standalone (a team runs a board by hand) or as the substrate an external orchestrator projects onto through opaque origin_* handles, a MOVE_POLICY authorization seam, and comm Functions (tasks.get/list_board/create/move/comment).
Part of the Stapel framework — composable Django apps that deploy as a monolith or as microservices without changing module code.
Install
pip install stapel-tasks
At a glance
| Fact | Value |
|---|---|
| Version | 0.4.1 |
| Python | >=3.11 (3.11, 3.12, 3.13, 3.14) |
| Django | djangorestframework>=3.14 |
| HTTP operations | 22 |
| Config axes | 3 |
| Usage surface | 28 |
| Extension points | 5 |
| Error codes | 70 |
| Documented flows | 3 |
| Fleet dependencies | stapel-attributes (optional) · stapel-core |
Documentation
OpenAPI · capabilities.json · llms.txt (for agents)
What this is
A generic task domain — Board / Column / Task / ChecklistItem /
TaskComment, a REST surface, a full outbox event surface, and custom fields
via stapel-attributes. It is useful to any project by itself (a team runs a
board by hand), and it is the substrate an orchestrator projects onto: an
external state machine drives cards through opaque origin_* handles and the
MOVE_POLICY seam — the module knows nothing about the machine.
Quick start
pip install stapel-tasks # core
pip install "stapel-tasks[attributes]" # + typed custom-field validation
INSTALLED_APPS = [
# ...
"stapel_tasks",
]
# urls.py
path("tasks/", include("stapel_tasks.urls"))
Requires a stapel-core whose background
taskstoreapp uses the labelstapel_taskstore— this module owns the Django labelstapel_tasks. See MODULE.md.
Concepts
- Board — an ordered set of columns and the cards on them. Owns the
custom-field schema (
feature_defs) and optional workflowsettings. - Column — a status. Its
keyis the card's status; itscategory(backlog/active/review/waiting/done) is the fixed machine semantic. - Task (card) — status = its column; order within the column is a
fractional
position(drag-and-drop moves write one row). Custom-field values live infeatures; a projecting system writesorigin_meta. - Move — drag-and-drop is a
movevalidated byMOVE_POLICY:allow/deny(reason_key)/defer(the managed-card path).
Two reads of the same cards, deliberately: GET boards/{id}/tasks is a keyset
feed (-created_at), GET boards/{id}/cards is the board shape —
columns in order, cards grouped by column key and sorted by position. A
kanban view wants the second. GET boards/presets serves the vocabularies a
board-creation form needs (presets, categories, checklist states, priority
scale) instead of making the client hard-code them.
from stapel_tasks import services
board = services.create_board(name="Team", preset="simple")
card = services.create_task(board=board, title="Ship it")
services.move_task(card, to_column=board.columns.get(key="done")) # emits task.completed
comm surface
| Kind | Name | Purpose |
|---|---|---|
| Emit | task.created / task.updated / task.moved / task.assigned / task.completed / task.comment_added / task.checklist_item_changed / task.archived |
Card lifecycle facts (via the outbox) |
| Consume | user.deleted |
GDPR anonymization |
| Function | tasks.get / tasks.list_board / tasks.create / tasks.move / tasks.comment |
Machine interface / MCP-tool candidates |
Settings (STAPEL_TASKS)
| Key | Default | What it customizes |
|---|---|---|
SCOPE_PROVIDER |
single global scope, allow-all | Tenancy resolution/filtering + permissions |
MOVE_POLICY |
allow any move (honours transitions) |
Drag-and-drop authorization |
BOARD_PRESETS |
{} (merged over built-in simple) |
Board-shape presets |
STORE_UNKNOWN_FEATURES |
True |
Keep raw custom fields when attributes is absent |
DEFAULT_PAGE_SIZE |
100 |
Card-list page size |
BOARD_CARDS_MAX |
2000 |
Cap on the whole-board read (truncated beyond it) |
PRIORITY_SCALE |
low/normal/high/urgent | Priority steps served to clients |
See MODULE.md for the full seam map (providers, registries, serializer seams, comm tables, anti-patterns, override-vs-upstream).
License
MIT — see LICENSE.
This page is assembled by stapel-readme from docs/readme.md plus the contract artifacts in docs/. Edit the prose in docs/readme.md; the badges, facts and links above and below it are generated — do not hand-edit README.md.
Metadata
Release files for stapel-tasks 0.4.1
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 |
|---|---|---|---|---|
| stapel_tasks-0.4.1.tar.gz | 100.7 kB | With provenance | Details for stapel_tasks-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stapel_tasks-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for stapel_tasks-0.4.1-py3-none-any.whl |
Total release size: 190.7 kB
Release files / stapel_tasks-0.4.1.tar.gz
| Download URL | stapel_tasks-0.4.1.tar.gz |
|---|---|
| Size | 100.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a1c8f5dfa540fcdf231f6bbaf7a3bc63601e848848167114aa9753a2f668e63
|
|
BLAKE2b-256 checksum How to use checksums |
bb05a695d0c8628fef547f4cae6add4b149bd5f87794d2be9dda5583253dcb64
|
| 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 20, 2026.
Transparency logRelease files / stapel_tasks-0.4.1-py3-none-any.whl
| Download URL | stapel_tasks-0.4.1-py3-none-any.whl |
|---|---|
| Size | 90.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42b9c8bc92aa9aa0ba4b42f3d8940d5d36897411b652a2f2e0055f0980914de8
|
|
BLAKE2b-256 checksum How to use checksums |
3e95ddaa0a70267a4626e15edb9ed6fb14808527505494c2706ac6b249c3b309
|
| 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 20, 2026.
Transparency logSecurity for stapel-tasks 0.4.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.
Attestation for stapel_tasks-0.4.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 20, 2026.
Transparency logA 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.