Skip to main content

storlaunch (Python SDK)

Official Python SDK for Storlaunch — full parity with the Node SDK (@forjio/storlaunch-node).

Install

pip install storlaunch

Quick start

from storlaunch import StorlaunchClient

client = StorlaunchClient(
    key_id="AKIASTOR...",
    secret="...",
    base_url="https://storlaunch.com",  # default
)

# Platform-level call
products = client.storefront.products.list({"limit": 20})

# Partner scoped (Pattern 2 partner billing)
merchant = client.for_merchant("acc_xyz")
orders = merchant.payment.checkout_sessions.list()

Auth (HMAC SHA-256)

Every request is signed locally with key_id + secret. The signed string is METHOD\nPATH\nTIMESTAMP\nSHA256(body)[\nIDEMPOTENCY_KEY]. The resulting hex digest is sent as

Authorization: Storlaunch-HMAC-SHA256 keyId=<key_id>, scope=*, signature=<hex>
X-Storlaunch-Timestamp: <unix_seconds>

for_merchant("acc_xyz") returns a new client that adds X-Storlaunch-On-Behalf-Of: acc_xyz to every request — used for Pattern 2 (Shopify-Apps-style) partner billing where the platform admin key acts on behalf of a customer workspace.

Idempotency

Unsafe mutations (create checkout session, pay invoice, issue license, adjust inventory, request payout, etc.) auto-generate an Idempotency-Key: idem_<uuid> header. To pin one yourself, drop down to client.request(...).

Webhooks

from storlaunch import verify_webhook

raw = request.get_data()  # bytes — DO NOT re-serialise JSON
sig = request.headers.get("X-Storlaunch-Signature", "")
if not verify_webhook(raw, sig, secret):
    abort(400)

Resource surface

Namespace Methods
payment checkout_sessions, plans, subscriptions, invoices, receipts, customers, plugipay_settings, portal_sessions, webhook_endpoints, webhook_events
storefront products (+files), licenses, deliveries, public
account profile, pixels, abandoned_cart, feeds, blog, referrals, api_keys, audit_log, domains
top-level analytics, billing, modules, manual_orders, onboarding, shipping, inventory, ledger, reports, payouts, discount_codes, inbound_webhooks, buyer

For anything not yet typed, use client.passthrough(method, path, body).

Errors

All API failures raise StorlaunchError(status, code, message, request_id). Transport failures (DNS, connect refused, timeout) raise the same class with status=0 and code in {"timeout", "network_error", "invalid_response"}.

Dev

python3.12 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/pytest -q

Metadata

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

Built distribution (wheel)

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

Total release size: 24.3 kB

Release files / storlaunch-0.1.0.tar.gz

Download URL storlaunch-0.1.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b6c9b59fd9fdb3c79d6f42e8af8f5b88f97d93a7e45868f21085cf5e9f181cb1
BLAKE2b-256 checksum
How to use checksums
44e827a309d58aa3e8c53e7ce2070bc380ca51adb2f70eb813989a98da33b2f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

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

Download URL storlaunch-0.1.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2a04acffbcfd60b9bf0c07ed7938d21159be45b27cff7c6376568ff7738a35d
BLAKE2b-256 checksum
How to use checksums
9e3966522a9b6e70291f0c1da34408cf44d5dc0d1fb5ae9b77c0da97e53d4021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for storlaunch 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