Skip to main content

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

cerebelum_sdk-0.3.0.tar.gz (63.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cerebelum_sdk-0.3.0-py3-none-any.whl (58.7 kB view details)

Uploaded Python 3

File details

Details for the file cerebelum_sdk-0.3.0.tar.gz.

File metadata

  • Download URL: cerebelum_sdk-0.3.0.tar.gz
  • Upload date:
  • Size: 63.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for cerebelum_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1197f6f16ba9924570305fc31b99c769c36e5d996cbffdf07ce3f181cd960e97
MD5 15424691e3d06e887915818b02fbf8fe
BLAKE2b-256 92cb90c48a8ba14115577b2134771246c89fbfc0dbb75c012c511479259732d3

See more details on using hashes here.

File details

Details for the file cerebelum_sdk-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cerebelum_sdk-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 58.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for cerebelum_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33bd860ebf8541b9c5cd1d277aa81ef5b7fdb236c8ab7cbf821c0c6ddd332b0b
MD5 12a13b6cb0511e6633ee9b3448bb044b
BLAKE2b-256 64b538da8335dafbdd62add01ef4a988fa4ebb91faaa38c328871e648e3bcdc4

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