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

Uploaded CPython 3.14Windows x86-64

kailash_enterprise-4.12.0-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.0-cp314-cp314-manylinux_2_28_aarch64.whl (18.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

kailash_enterprise-4.12.0-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.0-cp313-cp313-manylinux_2_28_aarch64.whl (18.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

kailash_enterprise-4.12.0-cp312-cp312-manylinux_2_28_x86_64.whl (19.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

kailash_enterprise-4.12.0-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.0-cp311-cp311-manylinux_2_28_aarch64.whl (18.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

kailash_enterprise-4.12.0-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.0-cp310-cp310-manylinux_2_28_aarch64.whl (18.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

kailash_enterprise-4.12.0-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.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 765652d9b6b9ba660ae9b395c8bb10cb7ab72b13819977d60e21e5b5009d7d9c
MD5 d4a0aa1ed61abaa997e4d5da9ecd7b2e
BLAKE2b-256 816bc8c26a9f8d9f2610fc1c25005b41fddec8ea1db758f53d8655005507b6f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 052f8262b2b4856b1e468e9e0b7db2c5fe64c5a8390e5bdd9dd6ebd4b87ac9a5
MD5 d1b422b52cb5676587f9614fc0580f29
BLAKE2b-256 05b49718b33eb19a65940da6c1b86391129e2827b765f69cad135ae7e00fb275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 605c6fb62893eeeee36f0095db37809784e108a978d4bc72ba41153e546f38bf
MD5 c41930d704f12fe5a74d356afaa4c11f
BLAKE2b-256 ef2c54d1524538b0ef2950e5cdf5e70d37f8465d512024c9ee5e9dd3eb742c80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ae74f70eff81cb2576437ee4fd6f1605e95381b6cb82fb4f38b3c5fe2781320
MD5 7efb43d94c19443bae5dd24950c844ea
BLAKE2b-256 b309eb0021ebe7fba3e2e024175055e556ab074829de1af97c3efb6251fe5133

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ab2b4be2a652166f42311dd00c6eb679a10fc494a81accdf9a614029b923bea3
MD5 ffd8d981d29737880086612b61cc0223
BLAKE2b-256 82a30bf2ebce88520edf2a5e32b6fb79d0bb37637c1437a97061024587f7673c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cbe296212709ce84c58a6e79cf6882e9763012a05d7d7d879c480f673fb6c84f
MD5 4a2e5dcaa83a39af20cccb02b2df7278
BLAKE2b-256 0b2112c9011e9ce006294884bae117f281d4d041d2d3dfe97b7484600c0cf23f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c8243fcf48f9448882afb8e84a69b144296853b9987d7bde236fc1e8fb2bda2f
MD5 fb3f08794008777e7a2c71e06020b6f4
BLAKE2b-256 8b8a4dc94087216f5770162a9b9213c85ea3045203f4e059cdf844a105c84591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7517060d9ed7404ef72ad01623a8aebfeeff1e34d7e0b4fd25486b5b52130a74
MD5 ce5ea0df8b6954ce77fca8c16e830c8a
BLAKE2b-256 5c8fecbc8b79e117043622aedf5fd2c3a288aabffec6eebbe5a8194fc3b7c123

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a3cca1bbb352f4b16bb955deaef7adf114015a286c629702e1b76906be77c7f5
MD5 42ac25bbaf0d123b199f796c03e60a55
BLAKE2b-256 997f77cafbda4ce22ccb49d896be9888961965e7b89936e96a390b95013b9608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3c23db105016a2c2a8a988dbbcaafe4b82c993bec534be76277f6b806c6e8568
MD5 15fb6be336ebbb4837a622bfe821668e
BLAKE2b-256 3da06c2560f1e4b84ccd989010b25430722d2a07ff00ca093755068a90e91674

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 287b420fdfb003e64f6d228312e329faf1453f8c2856cf4699a0daaa368f771e
MD5 48c55bbc64b1268650869e5862d9580b
BLAKE2b-256 791320aa5523e4cbfbabb1c8be42ae516da3391b5dd35015784704f6c1605f36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01273addf7dff920c37244d03cb743c02f579a6f4c5a5701520af29e32317fcd
MD5 4295298a1dcbd57c7eda75b6533258e0
BLAKE2b-256 661ea1196b643fcbe881e35cc0b9436b7ee91345e7d2925a0a73f99474db1117

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4c715e1cc32fc97f28771d20cfafce6b1b0a64507cf58c025fbff15ca2ec410e
MD5 6bfd55587bbfc7eae4b6762fee8583b2
BLAKE2b-256 4d565e812d4148c7881ad3dbfb1024b9ee7d6ea2a59e164fa83bb60612d2b4e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3a15ba93f82328dc39d8a2751808a6444801f65280ae342f538c4c112a116da1
MD5 54cc9a84823c3af9723754b0dc43c440
BLAKE2b-256 4f33ac0fcc1f345f221bddfcac3d19dd05c27734732f1e5a8abc549fe721ec48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b5718c6bdfd6ed45202da3c9302e86ea3b814347f8a6f9c995cedade8fcad2a7
MD5 19d21e05962647324894e5f336dcc697
BLAKE2b-256 d91a3ad49bec4a0f88731be077b50f8e0b46a37d1d64a9729eb07d838c6ff0ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ae88fe323ba4ecd0d958947f1befc7b0592bd271fcd26b2a2933c705c14c9d7
MD5 e26c96b76c7b463900b8dd20d4e4dc39
BLAKE2b-256 06f0b5ff9f4e7e8fd779fe8f679a6e8a328dd2851dac94be758c16fe9653d582

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e244c959d7b4d2a0597c613938fc17578fb1b37bf9ee10e0f578dc7519598905
MD5 e634b59745a8683d228c7f48597bb237
BLAKE2b-256 7f83d03cb659cf9077e959003d1f5242877d0bb5b9cdb6824ac58e56467e4756

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cd26e97cea691c74733077a1dda2246f0d4b36edff7058f4b0f01982f2f49e81
MD5 d5c02eccbbf9c48ac091d7a3c4e59b32
BLAKE2b-256 73a7cdce859791ef9348f4c1f8b70ab917258558d40ca439f59c590ff322ab06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c36aab2c0deca3300c4fb8b623e613d48845a3a12ca2ef1b122da60f55ab20d2
MD5 54997bd1985e2a366bae4a8a4036b31d
BLAKE2b-256 0e55b5a981eefef1ba869b7580843b3c8f153e4096d17794f1efac58c7076b0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kailash_enterprise-4.12.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c90d893332780ffb02cd5368f5e9d630ab4ae319892510c60f42fac862bd156
MD5 605fa4977350eb0a36913d8d9f227057
BLAKE2b-256 e421ea501c42041b37ac7f7d8dbc59a1eda3710ac3fed1e13f0412d4509bfbcc

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