stapel-listings
Listings and catalog vertical: a Listing core (owner, opaque category, typed attribute values, price + price_base, inventory) with a draft/publish lifecycle, an independent moderation status, a value-validation pipeline delegated to stapel-attributes against a category schema fetched over comm, a publish service, and first-class favorites.
Part of the Stapel framework — composable Django apps that deploy as a monolith or as microservices without changing module code.
Install
pip install stapel-listings
At a glance
| Fact | Value |
|---|---|
| Version | 0.3.8 |
| Python | >=3.11 (3.11, 3.12, 3.13, 3.14) |
| Django | djangorestframework>=3.14 |
| HTTP operations | 16 |
| Config axes | 2 |
| Usage surface | 7 |
| Extension points | 4 |
| Fleet dependencies | stapel-attributes · stapel-categories (optional) · stapel-core |
Documentation
capabilities.json · llms.txt (for agents)
What this is
Listing is the marketplace core: an owner, an opaque category, typed
attribute values, a two-machine lifecycle + moderation status, a publish
pipeline, and first-class favorites. It consumes stapel-categories (feature
schema, over comm) and stapel-attributes (value validation), and stays
decoupled from search, moderation and currencies (see the boundaries below).
Quick start
INSTALLED_APPS = [
# ...
"stapel_listings",
]
# urls.py
path("listings/", include("stapel_listings.urls"))
Requires a categories.features comm Function provider (stapel-categories) for
value validation against a category's schema.
Settings
All configuration lives in the STAPEL_LISTINGS namespace (dict setting, flat
setting, or env var — resolved lazily). Full table with seam semantics in
MODULE.md.
| Key | Default | Meaning |
|---|---|---|
CATEGORY_FEATURES_FUNCTION |
"categories.features" |
comm Function resolving a category's feature schema. |
PRICE_BASE_CONVERTER |
identity | Dotted-path (amount, currency, base) -> Decimal. |
AUTO_APPROVE_ON_PUBLISH |
False |
Publish immediately when no moderation module is installed. |
REQUIRE_IMAGE_ON_PUBLISH |
True |
Require ≥1 image to publish. |
DEFAULT_LISTING_TTL_DAYS |
30 |
Days until a published listing expires. |
comm surface
Emits (Actions): listing.submitted (moderation boundary),
listing.published / listing.updated / listing.removed (search boundary).
Consumes: category.changed, moderation.completed, user.deleted.
Provides Function: listings.status. Calls: categories.features.
Boundaries: search/filtering is a separate stapel-search module fed by
the listing.* events (this module builds features_search but exposes no
search endpoints); moderation is a separate stapel-moderation module
(this module emits listing.submitted and applies moderation.completed, it
runs no moderation pipeline).
Extension points
See MODULE.md — the agent-facing map of every fork-free seam (settings, serializer seams, comm surface, GDPR provider).
Development
pip install -e . && pip install pytest pytest-django ruff
./setup-hooks.sh
pytest tests/
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stapel_listings-0.3.8.tar.gz.
File metadata
- Download URL: stapel_listings-0.3.8.tar.gz
- Upload date:
- Size: 51.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47c8a045daf3bd037805808450ac163424dee7d9410660756b496156b282086c
|
|
| MD5 |
ab3f3c0e4f8656eae5895af2b1280dc7
|
|
| BLAKE2b-256 |
a7965e9b5e5c99e307a4486e1d8ab068a9d6b2fee6e48ec26fc563014190f6f9
|
Provenance
The following attestation bundles were made for stapel_listings-0.3.8.tar.gz:
Publisher:
publish.yml on usestapel/stapel-listings
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stapel_listings-0.3.8.tar.gz -
Subject digest:
47c8a045daf3bd037805808450ac163424dee7d9410660756b496156b282086c - Sigstore transparency entry: 2477764704
- Sigstore integration time:
-
Permalink:
usestapel/stapel-listings@7e7fe58ef937ba70c38b9d8cdf79b12f00e07c1c -
Branch / Tag:
refs/tags/v0.3.8 - Owner: https://github.com/usestapel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7e7fe58ef937ba70c38b9d8cdf79b12f00e07c1c -
Trigger Event:
push
-
Statement type:
File details
Details for the file stapel_listings-0.3.8-py3-none-any.whl.
File metadata
- Download URL: stapel_listings-0.3.8-py3-none-any.whl
- Upload date:
- Size: 52.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33150870ee2009491b00df51e84fd8d1677115af128e0a840ab259bedbae6b0b
|
|
| MD5 |
f6f9319fc547b2cb1117a130246398d4
|
|
| BLAKE2b-256 |
fc74d49d2a347a546a169483160740d55389dfcf9d7a4addcdde487f764ba089
|
Provenance
The following attestation bundles were made for stapel_listings-0.3.8-py3-none-any.whl:
Publisher:
publish.yml on usestapel/stapel-listings
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stapel_listings-0.3.8-py3-none-any.whl -
Subject digest:
33150870ee2009491b00df51e84fd8d1677115af128e0a840ab259bedbae6b0b - Sigstore transparency entry: 2477764782
- Sigstore integration time:
-
Permalink:
usestapel/stapel-listings@7e7fe58ef937ba70c38b9d8cdf79b12f00e07c1c -
Branch / Tag:
refs/tags/v0.3.8 - Owner: https://github.com/usestapel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7e7fe58ef937ba70c38b9d8cdf79b12f00e07c1c -
Trigger Event:
push
-
Statement type: