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.21.0-cp314-cp314-win_amd64.whl (18.1 MB view details)

Uploaded CPython 3.14Windows x86-64

kailash_enterprise-4.21.0-cp314-cp314-manylinux_2_28_x86_64.whl (19.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.21.0-cp314-cp314-macosx_11_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

kailash_enterprise-4.21.0-cp313-cp313-win_amd64.whl (18.2 MB view details)

Uploaded CPython 3.13Windows x86-64

kailash_enterprise-4.21.0-cp313-cp313-manylinux_2_28_x86_64.whl (19.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.21.0-cp313-cp313-manylinux_2_28_aarch64.whl (18.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.21.0-cp313-cp313-macosx_11_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

kailash_enterprise-4.21.0-cp312-cp312-win_amd64.whl (18.2 MB view details)

Uploaded CPython 3.12Windows x86-64

kailash_enterprise-4.21.0-cp312-cp312-manylinux_2_28_x86_64.whl (19.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.21.0-cp312-cp312-manylinux_2_28_aarch64.whl (18.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.21.0-cp312-cp312-macosx_11_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kailash_enterprise-4.21.0-cp311-cp311-win_amd64.whl (18.3 MB view details)

Uploaded CPython 3.11Windows x86-64

kailash_enterprise-4.21.0-cp311-cp311-manylinux_2_28_x86_64.whl (19.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.21.0-cp311-cp311-manylinux_2_28_aarch64.whl (18.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.21.0-cp311-cp311-macosx_11_0_arm64.whl (17.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kailash_enterprise-4.21.0-cp310-cp310-win_amd64.whl (18.3 MB view details)

Uploaded CPython 3.10Windows x86-64

kailash_enterprise-4.21.0-cp310-cp310-manylinux_2_28_x86_64.whl (19.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.21.0-cp310-cp310-macosx_11_0_arm64.whl (17.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 93a48c61e22af3b478a0cc49fa76006c4d593bc8953a85a2c45385e05fced568
MD5 1c05fb7ff66887591ec0a0293b8ba6d9
BLAKE2b-256 b1942f296409c45f2f4e7884e60dc1dc61c6b7947e42eb75bb908ee86dae0406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9b5274f4fb3683937a5da2647e389991132d50b8eb41b7a7137f05c8d70b1061
MD5 f9fb5ac0ecf5229a4d2da37bd55e8627
BLAKE2b-256 b37b5c8c97f81424de8a32bba26a78e11aa5986e8305ecbab26e073b085106e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7aa7116db6cd37977e73979a3389bbfbf297e3e1bb72fa34a27eac401928fec2
MD5 8aa78c237f28e51cec0e8a1dda13b270
BLAKE2b-256 1c29fb791aa640cb15223491ce64b2b1b23b075b5c2c1324cda44ebe2b1cb685

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a46a97078440f281151469b38bd8885504b469e827499bfd1ef01b73c81f3471
MD5 9476179f0e0635cb714530b9f9182507
BLAKE2b-256 b77218c93d4bc3872d0654e5e0bd456bf9110b4163bcd53f2647dfe717f8b73a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f53d1e46c4a5bb97618ad759748f14e890e96d0806e3ffe120c403c7c9837fec
MD5 25fb4b3409ace54aad570f696dee7723
BLAKE2b-256 7b6ed6fe83a49d66d7c30aa35557199d525bd7e4d42189d48c230c72fa2d6e1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6f232873335807c1d15d36693872b75b2943c6ef6b5780769fc4b9b54755e68e
MD5 014214f52aceb8371e7a3766dd08e476
BLAKE2b-256 0266c0639ae1dd5273ddb2e0ef64ba05f847a50775480a9f952fa856163e56ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 539f707f3e90e4cd2f542558f743fb3ac9909225780a6ac9a3f84d5ca52137f2
MD5 c496f12b77da413dc28221d010fa0c15
BLAKE2b-256 066c09fb9dc87fbc2f089887ce3a2fa3996baffa7855b181bf7dfc058a3baf69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9668f14c4c92e281ca8afa7ff34017711ae462d64b07b46ceb1736287d8ec26
MD5 80cbb72b0b53aab849848879bc6524c8
BLAKE2b-256 d1d4ec23329d872b66a6f02260c970c2c697633c0ac07fb576a9bbc7692aa6c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5087cf643bc51f992a57f50a0617b61fa0e7016bfa396e651ed7eecfad66d7f7
MD5 39dc86fd3835b7a28e1e479b0582aaae
BLAKE2b-256 c00d9de8c47f2c7901d498bbe6832e012083b77a8f16ca41bd20e9534831e6dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a501b7d97e15c4651cd2f722ecbbdd5a6d85470b7a46dcf87b34e811b108d1c
MD5 ac4ce802573cc7a2764635062754239d
BLAKE2b-256 350f5abbea5b3d894e4a9bd135d8088539897b3eaf32f4bb04397af096aff023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8cd337bba79763f3b54c0297a4663ae4c77713a8527c1cde2a7ed45322615d91
MD5 57d70e89e374b95c802fdef261735809
BLAKE2b-256 f514af2ff78ad24b86660456a5a9e027cbd99f9724c28614ea509a56f36eb25f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a350d4ad321d61f29f1d971f002dcc27b25f59138c29746cdf94f73235afa74
MD5 704d0977b9f2f12c6fbf34a67335e0ff
BLAKE2b-256 27bab1f2585d2984ddce467611333b276ae9078a25b8ade567662d8bfff1c045

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 83243b241a4ab8c2fc5e6d336a57de0c76d8425a337b70baf5b2dd93eff325ff
MD5 ab125972904e3a7cfef1422a1f521132
BLAKE2b-256 2a5254cb3be3836a528f1930a56ce6fbea9cf53f1f91b717d0f31902ce9da8c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8310fdc58da23e9414e4f13e9437007fa46584b3b968cd3a624e0c24d1ddaa3b
MD5 905b888ed6f27b02fe74e75591f6c6fb
BLAKE2b-256 885332b0e0447884ca88e155147dd3475f327b72c4bf231e9c9db60729200bf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 eaf4c7bd3844717cc16c89f76d36030e00ce68df36d88a9459159820797e4449
MD5 c07caf13477dc9d1df8a7a0ac5a74dd2
BLAKE2b-256 acdfab252273ecc7e185069416545a752408169dd3750266aa3da91c8dc29711

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60e484a1ade4b6ed6229cdda850a607c90873a9784b86edb5771aed9b1a5ab22
MD5 abe1866292b0e961bab3dc4ea5982bfa
BLAKE2b-256 a91a7a406369595d2e826310d2215ff328d07619926792c86a4d7cdd3e5642f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2c597b3fcc2cd18ec03cfde2b46c4be145f688936b9d38e8584981e0e688cf8f
MD5 c799229271219a3d79f9e06043ee10e1
BLAKE2b-256 f3fefd6a1b4ebafb371d8457036f2d954f3127e383298a5e4180011a9e226014

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2deaf68552bd34d852a584ada90ff171048ad61d2fcdfbb1bef999bb395f116e
MD5 f16295d3fe57fcdd3f7392911049ba01
BLAKE2b-256 72bef7658fce804b3fe27cc2d544dff5ec09487174ab4ed5e423069d8d0f3911

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bda6637eb8f0be1a2311860a0f1ef4e12a318f94a20ea16199d3a670d8ea54b8
MD5 a0a6b8cae5c242fdd4128fea2185a332
BLAKE2b-256 9d9cbac4e3307b07d978adbc2923745d70fce9c15c71d5d9bea828da2d6411b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.21.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39704f5cf6821f9b86ee407fab42328c05cb6a6b7dfec4c568b1d64b91ee4f63
MD5 8685c2268fa313c32ab0c9bb4e345d96
BLAKE2b-256 7cee1ff00d098f193f400f0f0dda5a54cf659af056e5076bb090fee6dc70d981

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