stapel-shop
Не опубликовано на PyPI. Установка из исходников: pip install git+https://github.com/usestapel/stapel-shop
Composite: catalog shop — categories + attributes + listings + reviews, with cross-domain glue projections.
Likes/favourites are NOT included yet:
stapel-engagementdoes not exist. They arrive as a MINOR bump of this composite once it does.
Assemble (one line)
pip install stapel-tools
stapel-assemble myshop --libs shop
cd myshop && make test
That expands shop through the STAPEL_LIBS requires
closure and wires every member module into INSTALLED_APPS,
requirements.txt, urls.py and CONFIG.MD, then runs the verify gates.
Manual wiring (no scaffold)
# settings.py
from stapel_shop import preset
INSTALLED_APPS = [
# ... django/stapel-core baseline (incl. stapel_core.django.projections)
"stapel_categories",
"stapel_listings",
"stapel_reviews",
"stapel_shop",
]
for _k, _v in preset.SETTINGS_DEFAULTS.items():
globals().setdefault(_k, _v)
# urls.py
from django.urls import include, path
urlpatterns = [
path("categories/", include("stapel_categories.urls")),
path("listings/", include("stapel_listings.urls")),
path("reviews/", include("stapel_reviews.urls")),
]
Config checklist (fill these, in the generated project's CONFIG.MD too)
| Key | Note |
|---|---|
STAPEL_REVIEWS["TARGET_TYPES"] |
prefilled by stapel_shop.preset.SETTINGS_DEFAULTS (targets listing); add can_review/can_moderate Functions to restrict |
STAPEL_LISTINGS["BASE_CURRENCY"] |
default USD — set your currency |
STAPEL_LISTINGS["DEFAULT_LISTING_TTL_DAYS"] |
default 30 |
STAPEL_REVIEWS["RATING_MIN"/"RATING_MAX"] |
defaults 1..5 |
Glue (what this package actually contains)
stapel_shop.projections.ListingReviewSummaryProjection— reviews→listings rating aggregate. Local mode (monolith): live reads throughreviews.aggregates_by_keys. Remote mode:ListingReviewSummarytable fed fromreviews.review.published/hiddenfacts.- Read it ONLY through
stapel_core.comm.projections.read("shop.listing_review_summary", keys=[...]). - Gap (stapel-reviews 0.1.0):
reviews.aggregates_by_keysandreviews.aggregates_exportare not shipped yet — reads/rebuild fail loudly until stapel-reviews adds them (declared here with the canonical names).
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_shop-0.1.5.tar.gz.
File metadata
- Download URL: stapel_shop-0.1.5.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
050dda728b146410194742b9324bfc196b1137150f4e76cbc3a197ee3b6224b3
|
|
| MD5 |
69f7dd1c237276379d73b3652d35b3a9
|
|
| BLAKE2b-256 |
afadc7396606a675e7e3c36e88d3c3246f797d20c1ce8970c6d894ade05b7773
|
Provenance
The following attestation bundles were made for stapel_shop-0.1.5.tar.gz:
Publisher:
publish.yml on usestapel/stapel-shop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stapel_shop-0.1.5.tar.gz -
Subject digest:
050dda728b146410194742b9324bfc196b1137150f4e76cbc3a197ee3b6224b3 - Sigstore transparency entry: 2329102759
- Sigstore integration time:
-
Permalink:
usestapel/stapel-shop@2ac683c545be259bdb614a14ad0f221053a798b4 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/usestapel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ac683c545be259bdb614a14ad0f221053a798b4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file stapel_shop-0.1.5-py3-none-any.whl.
File metadata
- Download URL: stapel_shop-0.1.5-py3-none-any.whl
- Upload date:
- Size: 14.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 |
5da7ad957365adb0bc89f8a7b51dc3a89a04102e1850d48da794266f37ead273
|
|
| MD5 |
008322ed0b945cb2ca6ca56095cfb43c
|
|
| BLAKE2b-256 |
0b4c52c2aa59a2474c9fbe211d7ceee85b927b4da249a0ce2135ecd8ce002aa7
|
Provenance
The following attestation bundles were made for stapel_shop-0.1.5-py3-none-any.whl:
Publisher:
publish.yml on usestapel/stapel-shop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stapel_shop-0.1.5-py3-none-any.whl -
Subject digest:
5da7ad957365adb0bc89f8a7b51dc3a89a04102e1850d48da794266f37ead273 - Sigstore transparency entry: 2329102829
- Sigstore integration time:
-
Permalink:
usestapel/stapel-shop@2ac683c545be259bdb614a14ad0f221053a798b4 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/usestapel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ac683c545be259bdb614a14ad0f221053a798b4 -
Trigger Event:
push
-
Statement type: