Unofficial Creem.io Python SDK
A comfy python wrapper around the Creem REST API.
Will hopefully be official at some point.
Installing
Requires Python 3.11+.
pip install creem
For development, install from the repo with test tooling:
pip install -e ".[dev]"
Quickstart
Grab your API key from the dashboard, then:
from creem import Creem
creem = Creem() # reads CREEM_API_KEY from the environment
Test keys (creem_test_...) automatically target the sandbox at test-api.creem.io — no config needed. Live keys (creem_...) hit production.
Sell something. Create a checkout session and send your customer to the hosted payment page:
checkout = creem.checkouts.create({
"product_id": "prod_abc123",
"success_url": "https://yourapp.com/success",
"metadata": {"userId": "user_123"}, # flows through to webhooks
})
print(checkout["checkout_url"]) # redirect the customer here
Know when it's paid. Handle the checkout.completed (one-time) and subscription.paid (recurring) webhooks to grant access — the payloads carry your metadata back.
Keep customers happy. Cancel at period end, not instantly:
creem.subscriptions.cancel("sub_abc123", {"mode": "scheduled"})
Every response is a typed dict with full field hints. When the API complains, you get a CreemAPIError carrying the trace_id — include it when contacting support.
API Reference
See the full reference in API_REFERENCE
Documentation for Agents
Coming soon: a dedicated guide that explains the SDK for AI agents and automation workflows. Until then, agents should read API_REFERENCE.md — it covers every endpoint, webhook, and error.
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 creem-0.1.1.tar.gz.
File metadata
- Download URL: creem-0.1.1.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
107fd7f8f49181451f9468c1ab9ba81707e8dbca4a16644a91a234b7f112c8a3
|
|
| MD5 |
c7846022eb19ba703096ae5a2550a44b
|
|
| BLAKE2b-256 |
87dbcfd7711e360b7055bd6157ad25177c805567729347e574396a7572781b0e
|
Provenance
The following attestation bundles were made for creem-0.1.1.tar.gz:
Publisher:
publish.yml on AJ-Gonzalez/creem-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
creem-0.1.1.tar.gz -
Subject digest:
107fd7f8f49181451f9468c1ab9ba81707e8dbca4a16644a91a234b7f112c8a3 - Sigstore transparency entry: 2380304602
- Sigstore integration time:
-
Permalink:
AJ-Gonzalez/creem-python@ad07b7ee0d16021f0d6f9cc38f96bf26e12bf14d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/AJ-Gonzalez
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ad07b7ee0d16021f0d6f9cc38f96bf26e12bf14d -
Trigger Event:
push
-
Statement type:
File details
Details for the file creem-0.1.1-py3-none-any.whl.
File metadata
- Download URL: creem-0.1.1-py3-none-any.whl
- Upload date:
- Size: 26.7 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 |
7e13b11901038098fdd70a44e3e63854d8b8252b624c0f2ce9044b75ee4a4dc8
|
|
| MD5 |
76b9d3aa8f60b8524b8d529f38fff827
|
|
| BLAKE2b-256 |
fa116f316f2dfe15dcffe3a4a1d08954443cf7cc1a95d2b93004e041e621b829
|
Provenance
The following attestation bundles were made for creem-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on AJ-Gonzalez/creem-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
creem-0.1.1-py3-none-any.whl -
Subject digest:
7e13b11901038098fdd70a44e3e63854d8b8252b624c0f2ce9044b75ee4a4dc8 - Sigstore transparency entry: 2380304710
- Sigstore integration time:
-
Permalink:
AJ-Gonzalez/creem-python@ad07b7ee0d16021f0d6f9cc38f96bf26e12bf14d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/AJ-Gonzalez
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ad07b7ee0d16021f0d6f9cc38f96bf26e12bf14d -
Trigger Event:
push
-
Statement type: