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
admin provision_workspace, get_workspace, partner_usage

License

MIT

Metadata

Release files for fulkruma 0.2.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.2.0
File Size Uploaded Provenance Actions
fulkruma-0.2.0.tar.gz 20.4 kB Without provenance Details for fulkruma-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 37.5 kB

Release files / fulkruma-0.2.0.tar.gz

Download URL fulkruma-0.2.0.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
312a34a543b3c47e4ad803d033c0678d556a38ffdb3f305d5d35dfced1052dd1
BLAKE2b-256 checksum
How to use checksums
2ce4f2a6eed376d69d5754ebb8532d198b1f91aae2aff05c8044c192d3bc8a74
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.2.0-py3-none-any.whl

Download URL fulkruma-0.2.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
581c32f5b0bc67daea62abb367d24ba948173f95334d4c336997aab8cbfd4de7
BLAKE2b-256 checksum
How to use checksums
5b99fecb63713cdeda6e96eaad483f92d2985975b703fe336852f07bf0a57851
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.2.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