Skip to main content

Kailash Enterprise — high-performance Rust-powered workflow engine, drop-in replacement for kailash

Project description

Kailash Enterprise

High-performance Rust-powered workflow engine — a drop-in replacement for the kailash Python SDK.

Installation

pip install kailash-enterprise

Replaces pip install kailash. Existing code works without changes.

Usage

# Existing kailash code — no changes needed
from kailash.runtime import LocalRuntime
from kailash.workflow.builder import WorkflowBuilder

builder = WorkflowBuilder()
builder.add_node("NoOpNode", "step1")
workflow = builder.build()

runtime = LocalRuntime()
results, run_id = runtime.execute(workflow)

Why Enterprise?

  • 22–261x faster execution via compiled Rust engine
  • 100–300x less memory than the pure Python SDK
  • Same API — zero migration effort
  • Binary-only — source code stays protected

Compatibility

Full backward compatibility with kailash v0.12. The legacy API emits deprecation warnings to guide migration to the new v2 API.

New v2 API:

import kailash

reg = kailash.NodeRegistry()
builder = kailash.WorkflowBuilder()
builder.add_node("NoOpNode", "step1")
workflow = builder.build(reg)

runtime = kailash.Runtime(reg)
result = runtime.execute(workflow)
# result["results"], result["run_id"], result["metadata"]

Domain event bus (kailash.events)

A pluggable publish/subscribe event bus for cross-service domain events, with structured envelopes (correlation/causation tracking, schema version, JSON payload). Distinct from kailash.EventBus (which is the Nexus lifecycle broadcast bus and is unchanged).

from kailash.events import EventBus, DomainEvent

bus = EventBus()
received = []
bus.subscribe("orders", lambda e: received.append(e))

event = DomainEvent(
    "order.created", "orders", "checkout-service", {"order_id": 42}
).with_correlation("44444444-4444-4444-8444-444444444444")
bus.publish(event)

time.sleep(0.05)

Each subscriber receives a dict with the event's fields (id, event_type, topic, actor, schema_version, correlation_id, causation_id, timestamp, payload, metadata).

Choosing an event-bus backend

kailash.events ships two backends. They are not unified — the choice is a deployment-topology decision, not a convenience toggle:

Backend Delivery scope Durability When to use
InMemoryEventBus Same Python process ONLY None Dev / test / single-process. EventBus is an alias for this.
NatsEventBus Cross-process, cross-host At-least-once Multi-process / multi-service production (requires a NATS JetStream broker).

Cross-process divergence is deliberate and silent if mis-chosen: a subscriber registered in one process on InMemoryEventBus will NEVER see events published from a different process — that is a no-delivery, not a degraded delivery. Pick NatsEventBus whenever publisher and subscriber are not the same OS process:

import os
from kailash.events import NatsEventBus, DomainEvent

# URL threaded in explicitly — the binding never reads the environment
# itself. TLS is required by default; allow_plaintext=True is only for a
# localhost test broker.
bus = NatsEventBus(os.environ["KAILASH_NATS_URL"])
bus.subscribe("kailash.events.acme.orders.created", lambda e: ...)
bus.publish(
    DomainEvent("order.created", "kailash.events.acme.orders.created",
                "checkout-service", {"order_id": 42})
)
bus.shutdown()

NatsEventBus delivers at-least-once via JetStream durable consumers; subjects MUST live under kailash.events.<tenant>.<domain>.<event> (the broker's stream captures that subtree for tenant-isolated routing).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

kailash_enterprise-4.16.1-cp314-cp314-win_amd64.whl (18.0 MB view details)

Uploaded CPython 3.14Windows x86-64

kailash_enterprise-4.16.1-cp314-cp314-manylinux_2_28_x86_64.whl (19.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.16.1-cp314-cp314-manylinux_2_28_aarch64.whl (18.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.16.1-cp314-cp314-macosx_11_0_arm64.whl (16.8 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

kailash_enterprise-4.16.1-cp313-cp313-win_amd64.whl (18.1 MB view details)

Uploaded CPython 3.13Windows x86-64

kailash_enterprise-4.16.1-cp313-cp313-manylinux_2_28_x86_64.whl (19.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.16.1-cp313-cp313-manylinux_2_28_aarch64.whl (18.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.16.1-cp313-cp313-macosx_11_0_arm64.whl (16.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

kailash_enterprise-4.16.1-cp312-cp312-win_amd64.whl (18.1 MB view details)

Uploaded CPython 3.12Windows x86-64

kailash_enterprise-4.16.1-cp312-cp312-manylinux_2_28_x86_64.whl (19.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.16.1-cp312-cp312-manylinux_2_28_aarch64.whl (18.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.16.1-cp312-cp312-macosx_11_0_arm64.whl (16.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kailash_enterprise-4.16.1-cp311-cp311-win_amd64.whl (18.2 MB view details)

Uploaded CPython 3.11Windows x86-64

kailash_enterprise-4.16.1-cp311-cp311-manylinux_2_28_x86_64.whl (19.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.16.1-cp311-cp311-manylinux_2_28_aarch64.whl (18.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.16.1-cp311-cp311-macosx_11_0_arm64.whl (17.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kailash_enterprise-4.16.1-cp310-cp310-win_amd64.whl (18.2 MB view details)

Uploaded CPython 3.10Windows x86-64

kailash_enterprise-4.16.1-cp310-cp310-manylinux_2_28_x86_64.whl (19.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.16.1-cp310-cp310-manylinux_2_28_aarch64.whl (18.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.16.1-cp310-cp310-macosx_11_0_arm64.whl (17.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file kailash_enterprise-4.16.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3b4bdb77b63d3c284457745d62e19f100873cb4ad0f4e141551ee98cb3188f6d
MD5 e554155bebf6bcda8cacd06afbecd129
BLAKE2b-256 bbee4bac1f554561d32f43ea7541a1aa5945c3a493c5c5dcd349e14c123855e4

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8391cafb22ec20c350b89b492ec5805a57a285fa37ae3f467bd3c25df639c59d
MD5 c2d81e508c18f45dc29da21673e2edc7
BLAKE2b-256 143313108035b184d8007a726af82ab31f4c0cd5c5b5ccc859fef11702beb557

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 170bf649b36edf2c346ddb68e457086e899772fc4e2d4cb9bf6227953924d486
MD5 8ef839c05c3cd6597c86a922fcf5e513
BLAKE2b-256 dea6b3dd3386c8e3109751126e9a75048366de44289127fc7426187912e6ba00

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fe27a456e576a7bafe16943257797503901175a5a488c409422bb03c17dcaa9
MD5 8c80e657432396d163f726f5b41f32a9
BLAKE2b-256 bf490a34ab3778165ab46e64c8b9555b9d1cc685a7cc40f4ea197206d249c1b3

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 df7bf664bed0985de0d565873c67b601e1efbe0ef6d496fcd5ba6b3653f9f243
MD5 4e3a904742454ca5b62d36dc7cff1633
BLAKE2b-256 fe850001ad0e9eb326dc6f9193ab3fa36e0a7b0b550047ad0ecd4d0cfdab4518

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4f8258d9c275df9d8a752b93f0b0cf87c265621cd4c294399734d827a116c5fe
MD5 8bcc5098c0c616ffa59b2bcecc3b5b0a
BLAKE2b-256 8de895e633a650d80b40cc7af8bab8dc6f3b943350a8bea18c1e572c77d28cbf

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1741da84d5d0ffff97fe6ddbc349d75047b495f7aac9a54d8f5978ee83eb9d76
MD5 ac7717295f9fd2761c3305b4900e56d5
BLAKE2b-256 84f9cf02e694273e66437efca4bc8681f15a292b40c5828f4eb31796e82a27ef

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8554ee05d1941bd70ae4bd5c17c06a8f6571b8a2a2c79b4196dadc0295886f5c
MD5 d39db24cb38e613ac84108a8b92a5c56
BLAKE2b-256 b996dd8dd693991dd33f61062102c78838920474eac36a5cfb051efebfbab438

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c666fe4b094c3c8c082e156fad2a01c4be3f591160d48e0789300813d016fc28
MD5 3f6f9001679e37989e6c72d4c82858ed
BLAKE2b-256 d418844e635a4351b937cd1f918aa636d7c7f47ea76dae96ef5bdc1d87aa44e8

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9a81df24f333e07e5426fb832f0f97b9288f497552634de528e467b95300feb7
MD5 96b2314f6c070c83103df50fafebeea4
BLAKE2b-256 fa3b545f2ff0cf25ac0b992d5ef9154b065de2183328d2ccec3bbd4f61d8457b

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 70a37cdb0224112ba8ed9aefcabc3f08b9a7b39500c918149145dfcb56281ebc
MD5 5f999411cc169f3a0fc32255024d9c60
BLAKE2b-256 2c5b468ab6f0bf687a75d9dfab84a1e97e53736bb31bdd428442938a6c22b491

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e597939699e1badfeee7c06888bef55fc8010284a24617f9d24fabb8838233a
MD5 063bfe8ecd5ec0c1463ba3d7342079d6
BLAKE2b-256 0341e446a09904d0c1774693bc3ddaac3b7d36cdb390da8a626e7e7e94a99f97

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c86d3aa15f4138d1cff3db29a8c0dcd404c1caf5e46c231944c858d74d38e893
MD5 ebb1775e293723b810416ff073bd57c3
BLAKE2b-256 2e44962820ec1af25ea5df3f50e20c908a6cf28e47014677ccf18d7e015feee3

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8b37a61f65e626aff0ba7538f417b802f060474d292ffa287572f0010093c3f7
MD5 6088cb768f72ba652ffbbc9d0ba7480a
BLAKE2b-256 e15a9e224db00e6253c8d778db9fd0cd0d21e409104a27ba495366755e82cf59

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 54d6272afcd80856bbabdef55d0f5e2e9a7381d3d7d65b529ba37c4e32667e5c
MD5 c12567deff00a3f65b6ee2507c7c33c7
BLAKE2b-256 0b5e728bf8a9bf8962b7c02fa5bb553d08e4e9cf2638cdae006abee60b06e8f9

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d4af1c085d9d46658b7492c214668a014c5bc1af14c737786ebe7fb55ac32be
MD5 e4c2db11315b45b2c4b80bbdf0819aec
BLAKE2b-256 eb7886cbb0492a15d6123bcab38c180a95b8d37893418f52613325b65de09f59

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eab7569fea657bfd4d2b083e2ac9100a50de7bb2326ed29336171f684b890198
MD5 e7290a0fb1110105afda59614cca2bee
BLAKE2b-256 8d084f16967b061009e152158068ad4c08c95ed6a2a7e7c0fe517e8b3815bd8a

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c6270ff1b258f37f30d213354ff9f6dab327e52005891b18780ab8e6211808ab
MD5 52893af023f67cfe6e3f295012f53814
BLAKE2b-256 35bddca7cf565f99f42da6c3804ac4120361c75bc2f3c57b3236f0d641e3b01c

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 489c689e2a98cd877a01fcd1ce0fe087e5c7d35600aea366829ebcdb03930e4b
MD5 ee277c51d666865fe95652d2e8445911
BLAKE2b-256 97061cf66d6a99ef4d104a0bd055d59b2c186d0b3caf0f0a76345460673942ed

See more details on using hashes here.

File details

Details for the file kailash_enterprise-4.16.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.16.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30048b096c2d42a17f7f3f7ca1abe3bcbeab58df1a27d14020e679a15f27ec6d
MD5 86e03d17db40072bc3ada8bb83659b86
BLAKE2b-256 d29ea7bd27531fe1dcd9e150866ab4d39c052ca3816c6d407c7801d4b82d0ba2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page