Skip to main content

fulkruma (Python)

Official Python SDK for Fulkruma — stock, warehouses, shipping, licenses, deliveries. Mirrors the Node SDK (@forjio/fulkruma-node) API surface 1:1.

Install

pip install fulkruma

Quickstart

from fulkruma import FulkrumaClient

client = FulkrumaClient(
    key_id="AKIAFULK...",
    secret="sk_...",
    base_url="https://fulkruma.com",          # default
)

# Create a warehouse
wh = client.warehouses.create({"name": "Jakarta DC", "city": "Jakarta"})

# Adjust stock
client.stock.adjust({
    "variantId": "var_1",
    "warehouseId": wh["warehouse"]["id"],
    "delta": 50,
    "reason": "initial_stock",
})

# List shipments
shipments = client.shipments.list(status="in_transit")

Platform-admin scope

Keys with the fulkruma:platform:admin scope can operate against any merchant via the X-Fulkruma-On-Behalf-Of header. Either pass it on the client:

admin = FulkrumaClient(key_id="...", secret="...", on_behalf_of="acc_merchant")

…or scope a single call:

client.shipments.list(on_behalf_of="acc_merchant")

for_merchant(account_id) returns a cloned client locked to one merchant.

Webhook verification

from fulkruma import verify_webhook

# Flask
@app.post("/webhooks/fulkruma")
def hook():
    raw = request.get_data()  # bytes — verify the raw body, NOT parsed JSON
    sig = request.headers.get("Fulkruma-Signature", "")
    event = verify_webhook(raw_body=raw, signature=sig, secret=os.environ["WHSEC"])
    # event["type"], event["data"], etc.
    return "", 204

Resource namespaces

Namespace Methods
products create, get, list, update, archive, add_variant, update_variant, archive_variant
warehouses create, list, update, archive
stock levels, movements, reservations, adjust
addresses list, create, delete
shipments list, get, create
shipping couriers, origin, set_origin, rates
licenses list, issue, revoke, activate, deactivate, validate
deliveries list, get, create
api_keys list, create, revoke
audit_log list
billing plans, current_plan, subscription, usage, invoices, checkout, cancel
integrations status
stats overview
webhooks list_endpoints, create_endpoint, update_endpoint, delete_endpoint, list_events, get_event, retry_event
admin provision_workspace, get_workspace, partner_usage

License

MIT

Metadata

Release files for fulkruma 0.4.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 fulkruma 0.4.0
File Size Uploaded Provenance Actions
fulkruma-0.4.0.tar.gz 22.3 kB Without provenance Details for fulkruma-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 39.9 kB

Release files / fulkruma-0.4.0.tar.gz

Download URL fulkruma-0.4.0.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b96e2f2c32d39ae324569e4eaa39e4fe84fd536d2b0595886f5a95d94dd4509e
BLAKE2b-256 checksum
How to use checksums
401a619390b273d7a88c899b42b728fdca3aae8b5a52a64ba21c8521f8937949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / fulkruma-0.4.0-py3-none-any.whl

Download URL fulkruma-0.4.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a894ca0f1b69c563a52c1ba34e5356c852707419441e89e453cc81a50cfd0aa
BLAKE2b-256 checksum
How to use checksums
396cf90b7fae1f474388b7bf1a4126179f07a8c0fa8c60124d943ffd866d47ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for fulkruma 0.4.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.

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