Skip to main content

Cerebelum Python SDK

Python SDK for Cerebelum — a deterministic workflow orchestration engine built on Elixir/OTP.

Install

pip install cerebelum-sdk

Or from source:

git clone https://github.com/ZeaCl/cerebelum-python.git
cd cerebelum-python
pip install -e .

Quick Start

from cerebelum import step, workflow

@step
def hello(inputs):
    name = inputs.get("name", "World")
    return f"Hello, {name}!"

@workflow
def my_workflow(wf):
    wf.timeline(hello)

# Execute locally (no engine needed)
result = my_workflow.execute({"name": "Carlos"})
print(result.final_result)  # "Hello, Carlos!"

Distributed Mode

Requires Cerebelum Engine running with gRPC enabled.

from cerebelum import DistributedExecutor

executor = DistributedExecutor(core_url="localhost:50051")
result = await executor.execute(my_workflow, {"name": "Carlos"})

Examples

See examples/ directory for complete tutorials.

License

MIT — see Cerebelum Engine for details.

Release files for cerebelum-sdk 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cerebelum-sdk 0.3.1
File Size Uploaded
cerebelum_sdk-0.3.1.tar.gz 63.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cerebelum-sdk 0.3.1
File Interpreter ABI Platform
cerebelum_sdk-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 122.3 kB

Release files / cerebelum_sdk-0.3.1.tar.gz

Download URL cerebelum_sdk-0.3.1.tar.gz
Size 63.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cf0cd0d2a48d90e358fc80b8cf2571c44999e30a3cd7d48d37ff493dfa58660d
BLAKE2b-256 checksum
How to use checksums
b8571e439842533ae2b9c59495b9c86ce68057bce4d097a7906b779d16216d0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / cerebelum_sdk-0.3.1-py3-none-any.whl

Download URL cerebelum_sdk-0.3.1-py3-none-any.whl
Size 59.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08e45493b20c5a7ed04bba59035e7e328f8934308de34ab7b2a86953f9c6a86f
BLAKE2b-256 checksum
How to use checksums
427a384b94d0805607b5975a35c40915b3e7174dece1465106475d84a602513a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page