stapel-posts
Short posts in a scope (a workspace, a tenant): an optional title, plain text, optional pictures with a chosen cover. What a post is comes from its KIND (an open registry): who may write it (a capability the host's scope provider answers, or any member), whether it needs a title, who reads it (the whole scope, or the author and processors only), and an optional LIFECYCLE — states, allowed transitions, who may move a post, a due time — with an append-only history and an overdue flag. Announcements, resident requests and helpdesk tickets are kinds, not modules. Discussion is a chat room about the post opened through stapel-chat's chat.open_subject_room by name; posts.subject_cards renders its header. Moderation takes a post down through moderation.completed; GDPR erasure deletes the person's posts and blanks their id on others' history.
Part of the Stapel framework — composable Django apps that deploy as a monolith or as microservices without changing module code.
Install
pip install stapel-posts
At a glance
| Fact | Value |
|---|---|
| Version | 0.1.0 |
| Python | >=3.11 (3.11, 3.12, 3.13, 3.14) |
| HTTP operations | 8 |
| Config axes | 1 |
| Usage surface | 4 |
| Extension points | 6 |
| Error codes | 58 |
| Documented flows | 2 |
| Fleet dependencies | stapel-cdn (optional) · stapel-chat (optional) · stapel-core · stapel-moderation (optional) · stapel-notifications (optional) · stapel-profiles (optional) |
Documentation
Errors: English · Español · Русский · OpenAPI · capabilities.json · llms.txt (for agents)
What this is
Short posts for a Stapel space: an announcement from the board, a request from a resident, a helpdesk ticket, a note. A post has an optional title, plain text and optional pictures with a chosen cover. What a post IS comes from its kind — who may write it, whether it needs a title, who reads it and whether it has a lifecycle (statuses a processor moves it through, with a history and a due time). Discussion is a chat room about the post, opened through stapel-chat by name; this module never imports a sibling.
Quick start
INSTALLED_APPS = [
# ...
"stapel_chat", # optional: discussions (chat >= 0.13.0)
"stapel_posts",
]
# urls.py
path("posts/api/", include("stapel_posts.urls")) # -> /posts/api/v1/...
STAPEL_POSTS = {
"SCOPE_PROVIDER": "myapp.posts_scope.WorkspaceScope",
"KINDS": {
"news": {"write_capability": "posts.news.write", "title": "required"},
"appeal": {"lifecycle": "appeal", "title": "required", "author_edits": "initial"},
},
"LIFECYCLES": {
"appeal": {
"initial": "new",
"states": {"new": {"label": "appeal.new"},
"in_progress": {"label": "appeal.in_progress"},
"resolved": {"label": "appeal.resolved", "terminal": True},
"rejected": {"label": "appeal.rejected", "terminal": True}},
"transitions": {"new": ["in_progress", "rejected"],
"in_progress": ["resolved", "rejected"]},
"transition_capability": "posts.appeal.process",
"due_hours": 72,
},
},
}
# In the chat: STAPEL_CHAT["SUBJECT_TYPES"] = {"post": {"card_function": "posts.subject_cards"}}
Concepts
- Post —
scope_key,kind, optionaltitle(≤ 200),body(≤MAX_BODY_LENGTH), orderedimages(opaque CDN refs, may be empty), optionalcover(one of the images). Soft-deleted by its author or a holder of the kind'smoderate_capability. - Kind —
KINDSmerges over the built-inpost(any member writes, title optional, no lifecycle).read: authorkeeps a kind's posts to their author and its processors. - Lifecycle — data, not code:
initial,states,transitions,transition_capability,due_hours. Every move writes aPostStateChangerow (never edited) and emitsposts.post.state_changed;overdueis derived (due_atpast and not terminal), not a state. - Scope — the host's
SCOPE_PROVIDERanswers which scope a request is in, whether the caller reads it and which capabilities they hold. - Discussion —
POST posts/<id>/discussion/askschat.open_subject_roomfor THE room about the post; nothing is stored on the post.
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-posts 0.1.0
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_posts-0.1.0.tar.gz | 60.3 kB | With provenance | Details for stapel_posts-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stapel_posts-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for stapel_posts-0.1.0-py3-none-any.whl |
Total release size: 121.4 kB
Release files / stapel_posts-0.1.0.tar.gz
| Download URL | stapel_posts-0.1.0.tar.gz |
|---|---|
| Size | 60.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
571341e770d961b70d8677fbdb0c8ef6c6c218c2bd00adfe7a1b321663ce5b11
|
|
BLAKE2b-256 checksum How to use checksums |
c48a6b58bd27e2ae7c56b1c4d63e7fb408147ac9d5f776ca4dcd928cd24554d8
|
| 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 29, 2026.
Transparency logRelease files / stapel_posts-0.1.0-py3-none-any.whl
| Download URL | stapel_posts-0.1.0-py3-none-any.whl |
|---|---|
| Size | 61.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57a44886151f071b0e7f5b13d9766e83926d947dafc1eed2b7a5cdba060c0404
|
|
BLAKE2b-256 checksum How to use checksums |
d4db37ba9c3917fb70de5d6d60dcc53dadbb7d1c9e42e988e12c15c4f42919a4
|
| 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 29, 2026.
Transparency logSecurity for stapel-posts 0.1.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.
Attestation for stapel_posts-0.1.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 29, 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.