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.3.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.3.0
File Size Uploaded Provenance Actions
fulkruma-0.3.0.tar.gz 22.0 kB Without provenance Details for fulkruma-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 39.5 kB

Release files / fulkruma-0.3.0.tar.gz

Download URL fulkruma-0.3.0.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9dad0462bf7f9e4eee2c9c582692165e55e31355efe97be0fc8090b90595d7e7
BLAKE2b-256 checksum
How to use checksums
5ca0161cd93269cc0ddfbcb365eed593b2c03c2d45209af341548cebdeeba3d5
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.3.0-py3-none-any.whl

Download URL fulkruma-0.3.0-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ae0d47e568e6ae63dca7a4dfa749cb124b20c9d8938bbc3f76c86336bb9694f
BLAKE2b-256 checksum
How to use checksums
db4dafe496198693783b04c40bb0aea31ac5bbf34568f0b6c17b456ca049596e
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.3.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