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

Uploaded CPython 3.14Windows x86-64

kailash_enterprise-4.15.0-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.15.0-cp314-cp314-manylinux_2_28_aarch64.whl (18.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

kailash_enterprise-4.15.0-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.15.0-cp313-cp313-manylinux_2_28_aarch64.whl (18.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

kailash_enterprise-4.15.0-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.15.0-cp312-cp312-manylinux_2_28_aarch64.whl (18.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

kailash_enterprise-4.15.0-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.15.0-cp311-cp311-manylinux_2_28_aarch64.whl (18.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

kailash_enterprise-4.15.0-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.15.0-cp310-cp310-manylinux_2_28_aarch64.whl (18.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.15.0-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.15.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 9b77d09eda957a5af0795d28f7f97e7e178a31e1a642c8c181dee3355f8d0c87
MD5 793c123f2496c6333fe64e2689184229
BLAKE2b-256 e02a6f7c20cf668712caca06822bff70efa9532dd4b37f63549927e52b8a0473

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 97b5e62bcd98e62b63f77f19c17b46e4d527002aa2d9d291d6a3a5544cedb2d6
MD5 04a19a804da00d350a7b37335dc71983
BLAKE2b-256 a4079c0ee5920b660fa845adf7d2ba6b9029cd72ece05f483dbca4294f5ce120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6483545d256fa4dc6e03d577cbb0731369d76fa5759fd88b60ecacaee207eea1
MD5 796852000f77e223980b82edc2ca15b6
BLAKE2b-256 92a17825bf5dc11e69012bffa8741202adbeb7f45264ce232772650c69619dc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d6bb32b764a354e2aa4291c804528b188b3d046afb088fbe41c085d5c06180c
MD5 f6aba26e548bc2bcd40f258d6ace8e18
BLAKE2b-256 5d248e07aa4b85314193d74bec46dbbb4c2e26f37f6e8cc614f5891dc284cbcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 120f7696098c87a9160a8880e6e0ae00da3c8548da22f7f3070874700ee044b3
MD5 a113afe4c7bb1b5aac110fbf1da2a7c9
BLAKE2b-256 03e3f9f341a88c256af3cb764e9754f0647f3b82c6bcef330184711ffc2527ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2a9abc2bcb385d4f8bff652430ad167ad46aa7073dc67ffe8cfbd84860108cc3
MD5 6f2dde5104f6cb1620dd8b4cfb3a7d0e
BLAKE2b-256 8cac42c55979150b6064515d8934c16ff56b7453c746806f784c4306a4d466a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cf3f2741c545ddade10988dfea32df6b45fc982de06ed37aed80a9be15b36384
MD5 214a51c2bc31b9ac7061cd640dcf5441
BLAKE2b-256 2f10326a65bee23a30b87994bd767e873a77ef288627b1dd4ac011b9a08111c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b92ddfd09e593bcb98eb648c1d0c2d903a6477c4c2b3c6ee5147ac316eea4672
MD5 5c7a2f271d171957fbc01734400d5274
BLAKE2b-256 e2d68134a75b42e50f5aec2eacab229ce378c896dffc6a7f0b5c736d123ea9d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d1e5eb0530510e393cf38ab23a65e8f5c7ce4d6de6fe3dd890bd801c66f3ec31
MD5 d860804efc88dee9925aa5410318c63f
BLAKE2b-256 f43495647cbb9ec68cf4ca9e91a1b5a57fc354e45e459a5ec7f5ba2cff46a7bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 65b7eef445d70dcc5b1b680785a6b74f1ed947e7eeeeb9d5c5aa104c63fab5dd
MD5 081f46ba2e55aa7f0dbad8c2b95a19bc
BLAKE2b-256 514612cb46c133ff45e1502c2b3dc820cbe7d06cc77ff96d80ea73f3f0ef7085

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 674bcfc26e883d355ab0fd02d4ea565d11f475b4592e8e1a7c899d7d5def33af
MD5 886443d40f98b8ced996dddcc5f6ecbd
BLAKE2b-256 1a5c17ee1ce8dfb67ba29e349dfa4f56d6a42b39d8f32dfaf1342ba3d4b5c449

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9435ec564855fc653bd746649859f0fba2daa0e695d745d68b0c72dea22992c4
MD5 e41848081b0f306ca6790b0921d58c0e
BLAKE2b-256 86a3b942cde286fb396cc45d803320fcebdcd1356c5841657b33b70381cf17cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 47bfce4739e6b20a9ed3a202dc600d72c21a273bae7fed2c584a2ba483b3a50e
MD5 4700ece0dac5b8212a0400274624a513
BLAKE2b-256 a2ce15c8d2010ed45a844ac37df74aabc6534134537b89403ae5a02aa75a9dc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c88a32db798dd4850a72cb950ec4209d33da0b3bdb053d31dccd339c62be24e2
MD5 d42016cfbcd871cc50631644c8f2597b
BLAKE2b-256 45b8d43f83383574b8eb11f29d9dc6bfafd414b287327ffeaab29fdb1572abbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 07552b56027af9ff1e83891ca0a4985b1020d036a199f50b7a26e2536161cfd5
MD5 6008b065608c8136e239b12e39d3dcab
BLAKE2b-256 427c47bc9b5fbd739465b68cfbaacbcd78e5015d0fe15d639ed50bd01d64cae5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d442d178db63022f59bfbbc77823128221f2b97dbb3eda1b1128388f85214e0
MD5 4682f7ab9dd51b87da37fd45ad1fdb28
BLAKE2b-256 920f9b887354840952ad20d8fbb41f16ac37163c4763f7a161cf0d3fe9d21ef0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c4c7bf5c50dce9d297cf93c406b2abb62a93b379e7854476e61840abceae31b5
MD5 790a2943f3733d891429aaf588b4e72c
BLAKE2b-256 e94c935ff49a49b8040384b706a09ad33b21a54044a3e983b1e8d8ec6a536316

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 125e51ac4e48f9f8f415afe0ec450923162fa3c08dc463c994761dc6cf1fea0b
MD5 e037cc3aa660ec7e17050cb3c230b80a
BLAKE2b-256 28133522edce52f3300d7715745569385eaf355f1e9281f98026066d7fe7159c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 61ef6840289804970e139b75925e4a1126c7fad1ee4d1959a57304cddf52c9b8
MD5 1dd37b608706390ff1c63d5455891f46
BLAKE2b-256 eb6337d3c587b28963ecebc299249f04e00a20c9f0af71779fa1cd29973ff36b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.15.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 209ec78568db98126d0406b5a0f6d1d8ae9a1e9331a38bd8c71a3f22d0c10926
MD5 dbe377eaca7c5f7dc8b4592f29389601
BLAKE2b-256 aa89bd90a0d3e00e1acaeef24e3e12a3554926096f2a81afc3505049488d10c0

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