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

Uploaded CPython 3.14Windows x86-64

kailash_enterprise-4.12.2-cp314-cp314-manylinux_2_28_x86_64.whl (19.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.12.2-cp314-cp314-manylinux_2_28_aarch64.whl (18.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.12.2-cp314-cp314-macosx_11_0_arm64.whl (16.7 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

kailash_enterprise-4.12.2-cp313-cp313-win_amd64.whl (18.0 MB view details)

Uploaded CPython 3.13Windows x86-64

kailash_enterprise-4.12.2-cp313-cp313-manylinux_2_28_x86_64.whl (19.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.12.2-cp313-cp313-manylinux_2_28_aarch64.whl (18.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.12.2-cp313-cp313-macosx_11_0_arm64.whl (16.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

kailash_enterprise-4.12.2-cp312-cp312-win_amd64.whl (18.0 MB view details)

Uploaded CPython 3.12Windows x86-64

kailash_enterprise-4.12.2-cp312-cp312-manylinux_2_28_x86_64.whl (19.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.12.2-cp312-cp312-manylinux_2_28_aarch64.whl (18.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.12.2-cp312-cp312-macosx_11_0_arm64.whl (16.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kailash_enterprise-4.12.2-cp311-cp311-win_amd64.whl (18.1 MB view details)

Uploaded CPython 3.11Windows x86-64

kailash_enterprise-4.12.2-cp311-cp311-manylinux_2_28_x86_64.whl (19.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.12.2-cp311-cp311-manylinux_2_28_aarch64.whl (18.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.12.2-cp311-cp311-macosx_11_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kailash_enterprise-4.12.2-cp310-cp310-win_amd64.whl (18.1 MB view details)

Uploaded CPython 3.10Windows x86-64

kailash_enterprise-4.12.2-cp310-cp310-manylinux_2_28_x86_64.whl (19.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.12.2-cp310-cp310-manylinux_2_28_aarch64.whl (18.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.12.2-cp310-cp310-macosx_11_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4b386b9a28d585bd8cbd98cd9a5fa00b6dc89934cc8bea3692661c008deae2b1
MD5 3cdef029300bc6b64c3e02e6c08acbc7
BLAKE2b-256 90996e47a5110c3c11a1420662d12cf9c94e54454e9c89b607ea5b182d104ef0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3938a16754b4dc9012f1ad2e575f9e6fd4184b5c8c82fab4bf82a6af363f0f55
MD5 bdfda5a2f4bb74d58d916c9204a5f784
BLAKE2b-256 16506e060cb0c4aea596f71aa2801441f8e1f996e3f38bcb833f82fc04e6319c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 344108c90bb51c811cc4aa0826adcdcaac1d0cd38a86caa5d25575334923339b
MD5 1e631c9db865de996f14b5b0ff9d9f45
BLAKE2b-256 206a49b636943d2063b8e6e72df0428c78f6a474f730d2d0c3e76d65f7921de8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 227213570dc9b1c5e3040aeded92695aabd791cc39f4430dee7cd682f9601658
MD5 abdd7970cc7d98a40889eb15968e51c6
BLAKE2b-256 dc11d9477c2c2ddf60aa6403e36017fbb987a7a46c3ed68275960afa28d2ac60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3794d6a8a970014b13a5f0f49f580ec325fd866c36a2c0cb8ea9306b36503c72
MD5 d992ad8853781b317c90be5bcfd2ed6c
BLAKE2b-256 094b19e251f2a03faae8158c81469c99f7d89e7a1211732829261bda81020972

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 569c5821ef8420b935206acc83950269fe031cbeb63c6f4719caef8d2642313e
MD5 18ddc5e66489721c9febfc64f8786441
BLAKE2b-256 b7e095e12758546721218aaf28f8d6f8950cf1bddf84871b637be2fa9c770080

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5e19a31facb4243737ff5f495d49a97d3b5a67d67a5ad9f010ff5f567cded056
MD5 2c9536eb82c7ed91c6508ced0591afff
BLAKE2b-256 40e3fde25dbcd8c64d04f3c7f02d66a34b2024e67227be6272981d4bfcc870ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 788f111e76bc7a2eaf07ed5b6a96ee8f3299b924fa97c9875a60b3ef5ed324f8
MD5 374884874619daf3e0632a27a94d9274
BLAKE2b-256 5b6e7971504f30b0d9609a8d98e2389b82ab7f55e773e55aa9d3bd4da2f36c69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1f696cb48e01a56751ee27634e84aae705dc42e5ddb38fe6d47f9e3ab6f87806
MD5 485e61ce65c2f498141d5258f5c2ec62
BLAKE2b-256 b3b8c04f5e7b5afc4ff32e3720743db24e9a437e3367a7f06f686a70045fee0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3a546ada563fd50620d543739f6d19433e3028742e5c4bd2778e76d0569ca7af
MD5 9dbfa1a15bce45665451a0061d5e6e1b
BLAKE2b-256 150ff3fc1fcfbf90dafbda07a9a3b3566537f617548fabb1b649e51cf0433a30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9b379400b6cf7031d1418436c10d5f51b2a8a82af8fc4893a3102d54dcfbfe56
MD5 2dcfee54cf9d86ea174864c274aa2f56
BLAKE2b-256 876abb7e6efbc8fab00fc4d59b09600db6b770214053e04855a571890812d2d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b204809ab96a2cee26aea51bce4421facf42aa95d00231a416391d73e428dbd4
MD5 592d8dd36b19b95ea2320a4cbba1d1d1
BLAKE2b-256 f8f67e584523f1face485669b3f6aeeb839fc613e74b30803ed12d59c7fdbeb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0d16586e1c9aaea9a38989cedb583a6832463b233141b35066ab43b98ab06edb
MD5 7b5dc57bc54093c91ecc2b5714934582
BLAKE2b-256 5f559fa7a837d0f19acd649d3a36303afba0fae178676b24b22a8c3c738f1ab2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fa90aa70aecf3fe2566d258bccf41065e2981e9bb6fa1b100ce27d52b2366776
MD5 389cdf262325cdeea50a3ebca06513de
BLAKE2b-256 21682a82ec3bbbb71d630c0a59567756d391122b8a3925aa26121982dea841a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 08500ad3b700e88f4729c5014cd3a460bda86cb316ac2eed93926fa8e04ea2a6
MD5 1953a3ecbed8fbef5959736837e63092
BLAKE2b-256 690e957e85301f166ccf0200e42f88d6c0730d75ae78a1c35adbb41f8df52eff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81e00a9053f61f9160f711086cec7953e435b31f9e04a0229a863653e5d748bc
MD5 426cc5c484e14ec6aa52900e8b6904e8
BLAKE2b-256 e51585a7f804ad8e036446b7792f1fa844de747cd8932b4f514a276ce956e71e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f0b25edb36008c3e240ba829b1df7e9ee10d6e724be7700458dcca7cd5d68b4a
MD5 7231ad0fa4edc872a3156fde22cfcd8e
BLAKE2b-256 5ac57145e9c92afc1b92e84cc8ad91ba2139378d0b72daf02c8f2f674e881ee9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9a9e549f87ee9604248cd86b76ff8fafdce4a0844f65af925e38a2433d8ee509
MD5 45239e1ded48ea00d4bc6e9055e713d2
BLAKE2b-256 a5f671dc18d97f3c607cab63d029d06a5151088e9c7b67a86bd87e4d883336f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f56aee0465e9fa0256067cfe57335e1e0651a1769c9ebeea0d639161680fe693
MD5 7e805cddcc431489bea14845c6c7c454
BLAKE2b-256 9d5ed31483923af1bf6c139a27619587518b93f2bf84f4d2ea493c636672f727

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa6d6903e6bf6d7521214694b5f2ea66590c3ab016e99d17353418285b941605
MD5 778331fef204ebfb1e478cbd63196292
BLAKE2b-256 2d2e9220259f4021a420343411c9a5b05e35211b785557717faebcc450a56373

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