Skip to main content

kernable-sdk

Event sourcing and CQRS with a Rust kernel and business logic in any language. This is the Python SDK: aggregates, read models, reactors, middleware and business processes in Python, run by the kernable kernel. The TypeScript, Python and Rust SDKs share one API.

pip install kernable-sdk        # Python 3.10 or newer; import it as `kernable`

Start a kernel (macOS and Linux):

curl -fsSL https://kernable.com/install.sh | sh
kernable start --dev            # a kernel on 127.0.0.1:7233, its UI on :7234, keys in this directory

A worker that decides on a cart's commands:

from kernable import Kernable, Rejected, domain

cart = domain("shop").aggregate("cart", {"items": 0})


@cart.apply("ItemAdded")
def _(state, data):
    state["items"] += data["qty"]


@cart.command("AddItem")
def _(state, data):
    if data["qty"] < 1:
        raise Rejected("At least one")
    return [{"type": "ItemAdded", "data": data}]


Kernable(key="app.key").worker(cart).run()

The getting-started guide goes on from here: a read model, a query that reads its own writes, the same in the other languages. Then build a shop in ten parts, and the Python reference.

kernable-sdk add kit copies the kits (tenancy, accounts, identities, groups, invitations and authorization) into your project as code you own: see Kits.

kernable is before 1.0: the protocol and the APIs may still change between 0.x releases. MIT license.

Developing this SDK

From the repository root, make py makes the venv and generates the gRPC stubs in kernable/v1/ (not checked in); make test and make check-sdks run the tests.

Metadata

Release files for kernable-sdk 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kernable-sdk 0.2.1
File Size Uploaded Provenance Actions
kernable_sdk-0.2.1.tar.gz 206.8 kB With provenance Details for kernable_sdk-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kernable-sdk 0.2.1
File Interpreter ABI Platform Actions
kernable_sdk-0.2.1-py3-none-any.whl Python 3 none any Details for kernable_sdk-0.2.1-py3-none-any.whl

Total release size: 415.1 kB

Release files / kernable_sdk-0.2.1.tar.gz

Download URL kernable_sdk-0.2.1.tar.gz
Size 206.8 kB
Tags Source
SHA-256 checksum
How to use checksums
66e1c88824214abf4680c90a59f35702ad416bc74f1cb98416b7026956a38882
BLAKE2b-256 checksum
How to use checksums
1a4ffbc05c40fb2742dbf1ec37ba57aae68a009243ea4a05ec3ff810f2bde746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / kernable_sdk-0.2.1-py3-none-any.whl

Download URL kernable_sdk-0.2.1-py3-none-any.whl
Size 208.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61f0dbc62d8c4cf7af6e9f0b9fc657f013c6ed937ff353b823405a3b4cf4c4b1
BLAKE2b-256 checksum
How to use checksums
8a3b5307bed6d63efef17f3f1c1fcb931c3e8bd2e3894e932b5088a7df0eed5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for kernable-sdk 0.2.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kernable_sdk-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

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