Listings and catalog for the Stapel framework
Project description
stapel-listings
Listings and catalog vertical for the Stapel framework — composable Django apps that deploy as a monolith or as microservices without changing module code.
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).
Install
pip install stapel-listings
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
Project details
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.5.tar.gz.
File metadata
- Download URL: stapel_listings-0.3.5.tar.gz
- Upload date:
- Size: 42.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2a7748d220f0b1e62e6ffa061854f8f74dff56ba885102a89543ca6c9e1db9d
|
|
| MD5 |
7e239d709c400011fb38231e5d4e61b0
|
|
| BLAKE2b-256 |
b957913da3b8537259ddb7bd5790ba547ec6005c0163d8dc3abb4c97d4f2389e
|
Provenance
The following attestation bundles were made for stapel_listings-0.3.5.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.5.tar.gz -
Subject digest:
a2a7748d220f0b1e62e6ffa061854f8f74dff56ba885102a89543ca6c9e1db9d - Sigstore transparency entry: 2215163152
- Sigstore integration time:
-
Permalink:
usestapel/stapel-listings@b1d49e8ca7474685d0a6a3c2edf134b4960897a6 -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/usestapel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b1d49e8ca7474685d0a6a3c2edf134b4960897a6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file stapel_listings-0.3.5-py3-none-any.whl.
File metadata
- Download URL: stapel_listings-0.3.5-py3-none-any.whl
- Upload date:
- Size: 43.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c51c026be128c76a57202d3e1906c762b00f8bf3926def4026f88e1e0a42a75
|
|
| MD5 |
12189f81e7197e13592dfcfe0d8dc184
|
|
| BLAKE2b-256 |
c650db9c63842263642090644df22b4f60e6dd5cdedc2ab2f02c0b1085599f1c
|
Provenance
The following attestation bundles were made for stapel_listings-0.3.5-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.5-py3-none-any.whl -
Subject digest:
3c51c026be128c76a57202d3e1906c762b00f8bf3926def4026f88e1e0a42a75 - Sigstore transparency entry: 2215163239
- Sigstore integration time:
-
Permalink:
usestapel/stapel-listings@b1d49e8ca7474685d0a6a3c2edf134b4960897a6 -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/usestapel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b1d49e8ca7474685d0a6a3c2edf134b4960897a6 -
Trigger Event:
push
-
Statement type: