Skip to main content

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

creem-0.1.1.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

creem-0.1.1-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

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

Hashes for creem-0.1.1.tar.gz
Algorithm Hash digest
SHA256 107fd7f8f49181451f9468c1ab9ba81707e8dbca4a16644a91a234b7f112c8a3
MD5 c7846022eb19ba703096ae5a2550a44b
BLAKE2b-256 87dbcfd7711e360b7055bd6157ad25177c805567729347e574396a7572781b0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for creem-0.1.1.tar.gz:

Publisher: publish.yml on AJ-Gonzalez/creem-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for creem-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e13b11901038098fdd70a44e3e63854d8b8252b624c0f2ce9044b75ee4a4dc8
MD5 76b9d3aa8f60b8524b8d529f38fff827
BLAKE2b-256 fa116f316f2dfe15dcffe3a4a1d08954443cf7cc1a95d2b93004e041e621b829

See more details on using hashes here.

Provenance

The following attestation bundles were made for creem-0.1.1-py3-none-any.whl:

Publisher: publish.yml on AJ-Gonzalez/creem-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page