Skip to main content

stapel-feed

CI coverage pypi downloads python license llms.txt

Posts, comments, reactions and feeds for a community. Members post plain-text updates with up to ten uploaded pictures, public or for followers; others comment (flat, no threads) and react (one reaction per user per target, toggled, counted on the target in the same transaction). Four anchor-paginated reads: home (followed authors and own posts), public, one author's posts, one post with its comments. Following and blocks are read from profiles through one comm Function (profiles.social_graph); when it cannot be asked, home and public answer 503 rather than show a blocked author. Moderation takes a post or comment down through the moderation.completed verdict; GDPR erasure is a hard delete with counters recomputed.

Part of the Stapel framework — composable Django apps that deploy as a monolith or as microservices without changing module code.

Install

pip install stapel-feed

At a glance

Fact Value
Version 0.1.0
Python >=3.11 (3.11, 3.12, 3.13, 3.14)
HTTP operations 11
Config axes 2
Usage surface 2
Extension points 6
Error codes 54
Documented flows 3
Fleet dependencies stapel-cdn (optional) · stapel-core · stapel-moderation (optional) · stapel-notifications (optional) · stapel-profiles

Documentation

Errors: English · Español · Русский · OpenAPI · capabilities.json · llms.txt (for agents)

What this is

Posts, comments, reactions and feeds for a Stapel community. Members post plain-text updates with a few pictures; others comment and react; everyone reads a home feed of the people they follow, a public feed, one author's posts and one post with its comments. Following and blocks stay in stapel-profiles and are read through one comm Function — the feed never imports a sibling module.

Quick start

INSTALLED_APPS = [
    # ...
    "stapel_profiles",   # profiles.social_graph (>=0.23), profiles.public_cards
    "stapel_feed",
]

# urls.py
path("feed/api/", include("stapel_feed.urls"))   # -> /feed/api/v1/...

# Optional
STAPEL_FEED = {
    "PUBLIC_READ": True,            # anonymous visitors read public surfaces
    "WRITE_REQUIRES_ACCOUNT": True, # guests may not post, comment or react
    "REACTION_KINDS": ("like", "heart"),
}

Concepts

  • Post — body ≤ 2000 plain characters, ≤ 10 opaque CDN refs (<kind>/<hash>), public or followers. The author edits it within EDIT_WINDOW_MINUTES (15) and deletes it any time (soft).
  • Comment — flat, ≤ 1000 characters; deleted by its author or the post's author. The post author is notified (feed.comment_received).
  • Reaction — one per user per target, toggled with PUT reactions/ (or set with active); counts move in the same transaction, recomputed from the rows under a row lock, so two writers cannot lose an update.
  • Reads — home/ (followed authors + own), public/, authors/<id>/posts/, posts/<id>/ and its comments/; all anchor-paginated. Followers-only posts reach followers only; blocked authors are hidden in both directions; hidden answers like absent (404).
  • The 503 rule — when profiles.social_graph cannot be asked, home/ and members' public/ answer error.503.social_graph_unavailable rather than show a blocked author. One author's page and one post degrade to public-only content.
  • Moderation — post and comment target types read feed.moderation_content; a rejecting verdict hides the target (the author sees blocked).
  • GDPR — erasure hard-deletes the person's posts, comments and reactions and recomputes the counters they touched.

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-feed 0.1.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 stapel-feed 0.1.0
File Size Uploaded Provenance Actions
stapel_feed-0.1.0.tar.gz 67.6 kB With provenance Details for stapel_feed-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stapel-feed 0.1.0
File Interpreter ABI Platform Actions
stapel_feed-0.1.0-py3-none-any.whl Python 3 none any Details for stapel_feed-0.1.0-py3-none-any.whl

Total release size: 131.4 kB

Release files / stapel_feed-0.1.0.tar.gz

Download URL stapel_feed-0.1.0.tar.gz
Size 67.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ed1a86db0a087b402e2679aa82ff31fcc6be9f6950cde281f04c6c670d146f15
BLAKE2b-256 checksum
How to use checksums
d7f889a53fa299499830f2e15edd8373bcabcf350ceb802e5a7ef8a1d1b88721
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 27, 2026.

Transparency log

Release files / stapel_feed-0.1.0-py3-none-any.whl

Download URL stapel_feed-0.1.0-py3-none-any.whl
Size 63.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c11a33fc12fd212de38415cea1d2b0037b8a86efea1279026c6cefea22762e9c
BLAKE2b-256 checksum
How to use checksums
044e4a5ee799239b449db56e422a9bd675b8143183a6d77fa948b464478435d1
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 27, 2026.

Transparency log

Security for stapel-feed 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.

Select from 2 files

Attestation for stapel_feed-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 27, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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