Skip to main content

mycommerce-platform

mycommerce-platform is the small, dependency-free Python client for the MyCommerce Cloudflare Worker gateway. It gives Python applications one stable base URL while the gateway routes requests to the Shop API, Cart API, and Go Purchase service.

Install

pip install mycommerce-platform

Usage

from mycommerce import MyCommerceClient

client = MyCommerceClient(
    "https://mycommerce-api-gateway.<your-subdomain>.workers.dev",
    token="optional-jwt-token",
)

print(client.health())
products = client.shop("api/v1/shop/")
cart = client.cart("cart/v1/")
payment = client.purchase("create", method="POST", payload={"sessionId": "session-123"})

The package only uses Python's standard library. It does not contain Stripe, database, Django, or Cloudflare credentials. Authentication is supplied through the optional bearer token and service authorization remains a gateway/backend responsibility.

Development

cd packages/mycommerce-platform
python -m venv .venv
. .venv/bin/activate
python -m pip install -U pip pytest
pytest
python -m build

The package is published from GitHub Actions when a mycommerce-platform-v* tag is pushed. Configure a PyPI Trusted Publisher for this GitHub repository before creating the first release.

Metadata

Release files for mycommerce-platform 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 mycommerce-platform 0.1.0
File Size Uploaded Provenance Actions
mycommerce_platform-0.1.0.tar.gz 3.6 kB Without provenance Details for mycommerce_platform-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mycommerce-platform 0.1.0
File Interpreter ABI Platform Actions
mycommerce_platform-0.1.0-py3-none-any.whl Python 3 none any Details for mycommerce_platform-0.1.0-py3-none-any.whl

Total release size: 6.9 kB

Release files / mycommerce_platform-0.1.0.tar.gz

Download URL mycommerce_platform-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5e3f1d7ce52cde36e1f7e0e54acf94f299bf7a691650b74cdd75483f46d9a3ba
BLAKE2b-256 checksum
How to use checksums
bc59c02ce6d5d73076c68c58acbfe3d3829c7c42c08892cd4235a9f916979767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL mycommerce_platform-0.1.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a200d03b86163272d70520eb57b3f95c21b7d2c4ce388bd08dcf6fd38ffb499
BLAKE2b-256 checksum
How to use checksums
5f1a305bc5081f5bde3b1052c2fe77809b84b603a07a767a6602ed64763adff2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for mycommerce-platform 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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 No 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