Python SDK for Cerebelum workflow orchestration engine
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cerebelum_sdk-0.1.0.tar.gz.
File metadata
- Download URL: cerebelum_sdk-0.1.0.tar.gz
- Upload date:
- Size: 60.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6c85dbb531b2557b0067d24adecc12c0c68d14629f0a8c742198e24cbc04cbd
|
|
| MD5 |
56059ddbb41b49115d4da486abf77147
|
|
| BLAKE2b-256 |
06f64729b65e430ffa0921499f5082f191f63888a88f0acd2776be6452dcf483
|
File details
Details for the file cerebelum_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cerebelum_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 55.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe4669dc33f79a80e68a83c3525e8ace991aa43de1825c7b20d5585ddcb03899
|
|
| MD5 |
31f44f262372e2db66c3dc7f66456073
|
|
| BLAKE2b-256 |
da4fe573060eae0839a72cb665e0994b83a98ce38aeb2c6c1826b133fd30304d
|