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

Uploaded CPython 3.14Windows x86-64

kailash_enterprise-4.4.0-cp314-cp314-manylinux_2_28_x86_64.whl (18.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.4.0-cp314-cp314-manylinux_2_28_aarch64.whl (17.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.4.0-cp314-cp314-macosx_11_0_arm64.whl (16.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

kailash_enterprise-4.4.0-cp313-cp313-win_amd64.whl (17.7 MB view details)

Uploaded CPython 3.13Windows x86-64

kailash_enterprise-4.4.0-cp313-cp313-manylinux_2_28_x86_64.whl (18.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.4.0-cp313-cp313-manylinux_2_28_aarch64.whl (17.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.4.0-cp313-cp313-macosx_11_0_arm64.whl (16.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

kailash_enterprise-4.4.0-cp312-cp312-win_amd64.whl (17.7 MB view details)

Uploaded CPython 3.12Windows x86-64

kailash_enterprise-4.4.0-cp312-cp312-manylinux_2_28_x86_64.whl (18.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.4.0-cp312-cp312-manylinux_2_28_aarch64.whl (17.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.4.0-cp312-cp312-macosx_11_0_arm64.whl (16.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kailash_enterprise-4.4.0-cp311-cp311-win_amd64.whl (17.7 MB view details)

Uploaded CPython 3.11Windows x86-64

kailash_enterprise-4.4.0-cp311-cp311-manylinux_2_28_x86_64.whl (19.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.4.0-cp311-cp311-manylinux_2_28_aarch64.whl (17.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.4.0-cp311-cp311-macosx_11_0_arm64.whl (16.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kailash_enterprise-4.4.0-cp310-cp310-win_amd64.whl (17.7 MB view details)

Uploaded CPython 3.10Windows x86-64

kailash_enterprise-4.4.0-cp310-cp310-manylinux_2_28_x86_64.whl (19.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

kailash_enterprise-4.4.0-cp310-cp310-manylinux_2_28_aarch64.whl (17.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.4.0-cp310-cp310-macosx_11_0_arm64.whl (16.5 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 69648c45a61e521d247ca8f6a47876c1de165f09874b8b1eb689c2df93cbbef2
MD5 973ee6f7d3a11370e5adb51ad73b4ae3
BLAKE2b-256 1368ff009793efb6439f9023c715c52097cbb971c6b3f7e758d3838096311505

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dcbba28da44093d56b19b125f58c1524929c7759ecbd2307c62c5e3b3de8a7eb
MD5 a7ff406d9e2099228d710e0c248efc83
BLAKE2b-256 11185ddad5d65dea424e76d9de8a1df89d51d8b8e709dcdddf1dba59f9248db2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5b63689dd3c4cb812d95520a30fadf8242b90f78c458511f0b05509dffaa8038
MD5 6a610f25cb02c94aec8e216b829bdbdb
BLAKE2b-256 b46a26fa1c31015630f6828c1d3471c6fe6e4f161709f278f315519382973d45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c20bd77f2426aee36e7449542d2e890636a02c816a8d23b6722646c88e03f58
MD5 82948897063454d3b4572e765f8932e5
BLAKE2b-256 ed06240192a49ff167732ebade7c60fc86641b334cee84acf5c2d37969ee858c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1b0580f08e4cf38802dcd260ed54d22051c211a72da413745243a2c87af264af
MD5 2867c451298a0309bfe117a8fc78c098
BLAKE2b-256 c81ce5cf239273d16d8f7abcaa1f1565a160fbd206117c085e251becc267e2eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ce7918ef5c5f4ea12c270cf1881c9feaafe9aa539e73ae5c13c0a6b79dec56d2
MD5 e663174651b7347263a144323eee3d22
BLAKE2b-256 7e67e4b7fb56fbd0363a22ef4386dbdfdb6d20b4d88065ddfcf1610cc59bc5b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d8b894a1dce3c65ad8c56cb5df46c7e081a4c8c05f935c6ac8ba39e7b7175c9e
MD5 f2f665fbd43372e0acc5e2a523374957
BLAKE2b-256 2cffdf4cd198307b00b3b6987de6ae6991e3c5ddc6bcdbfffdb8f548427d123e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a3415aaa22d4e7c011e41a671ad8d25afb16f4d8ae7d2d7b165aa1316470152
MD5 24ae8ac57fd54cdc0fb252a40231bc3f
BLAKE2b-256 33b9a1b3b30d883517e3bfff7fcaddc834852116c7261929621bdcd517138b4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ad4dadd4cc48649fb579e6c8378fb75eb4c68f8975884f0b20ab30416d4902d3
MD5 f121a5e07cdccf3b4ada1562a12e6383
BLAKE2b-256 1a44eac3dc49d43410b0f5a70f7f2aeaa0b1237da5712a80d1f3b0e68ed7c673

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c0760922b32c581bbf0e02267fc4d9232c56d75cae248e00e5fbeaa272f00489
MD5 3fa8d5654647ad99af9412eb8e7f84d5
BLAKE2b-256 e10026666b0315917c75bef3a551d4a5bbc536a43c7c0c8ba605985e431a5c7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6fbae0ac6981bcbc5eada9d82f252f0a4c3db4ab7857f7a237a484a0ba3d9d38
MD5 ecd49e7ff9c828ad68f0cb9bb85a7761
BLAKE2b-256 db8645b61db3c0a7da9751f8e740a87e8724987ae5eb8b0c4f229c5dad9414c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc93f3e36d2fc0a2c7dd5961dd37e3aa3e7c145506d8689a1d67252f13205eb9
MD5 71f313d6ff6c6520c2e8d44e76001dd0
BLAKE2b-256 424a113e007ddafb5a9e5bf82798285834dfe9bc4247604cf4109972e1e0b160

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1bf0e26c3c767fd656cdf4f787e27aeef2933977d18d30ee4886e1978ca2edb1
MD5 7cb40382bc2bd148c3430b34b7d2eccb
BLAKE2b-256 6acf602620dd339bbb99261a88ccc1fc9cb220b281f02eb4c5df17e8f2c3d95e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c870c70fbd2eb6828583564e440a392bb81db37430097e432dc33e64765affd3
MD5 1d5e64f418bcf462b52394197b64b0d4
BLAKE2b-256 22a4d397f76d12c704371dc51e8d6984090b73a888791cc46d97fca099cc0179

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3e7b8b47ac1942fa66c917beef50776b491886665d31c0a6f03cdf92ceeedb5e
MD5 e72d015b61b9387ce02f28d1d7da563b
BLAKE2b-256 eed11ee9910189fa4fcddc83bea3f2a06f3671e5a51c674706e374b16034aa6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eec31ae4b8cb08e32455130d6898fe84811aeeeeab94e54669cda3dd63cc82f3
MD5 5ed141d00a93a629707cb189e009d772
BLAKE2b-256 5919c6f24a1f15a34f4518b1a50a55077a0a8d6934da002decc585e0cabbc23c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d0f53b91ca833f7d4a2ee73df46c70bc82230dd83962e52eaec64d1845b459ac
MD5 3fe2373b01de24d8a007457394b69158
BLAKE2b-256 af243984c76e8c59891ed52b8e059bd04882945505cde7ad8dca5b8d335d73c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2e7652e42c3158cd102821befba3ccaa7c500810a9ed61328cbaa81905b2e015
MD5 c6f4848fb523c56d4ddbcb9d32077b3e
BLAKE2b-256 c254183a4289a3706ee438945c1f2c16d0f4a8269549de55f4f82aa38ba2c51e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 81f0372f90d20e8de1db9effa5190469cbe9cb873d39a8fbcfbfbdfba2834898
MD5 4474c5a0951664bd37d7fbb69386f6be
BLAKE2b-256 d23d3841efd0e9f8ffd68cd2d048ae0417a844dbf9a4b95cf84c682b85e0b00a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ee0ff65e726610eb7fbc96a811e3cfeca3c84b23e27cbf10ceec2ff41b52cff
MD5 6516616c885a920f5c0a1189c4ce104f
BLAKE2b-256 a19d1649eeb827a1ede5cd17ed51ff5d6b7ffbbc20f9e18311b86f4a51615435

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