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.1.tar.gz (63.3 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.1-py3-none-any.whl (59.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cerebelum_sdk-0.3.1.tar.gz
  • Upload date:
  • Size: 63.3 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.1.tar.gz
Algorithm Hash digest
SHA256 cf0cd0d2a48d90e358fc80b8cf2571c44999e30a3cd7d48d37ff493dfa58660d
MD5 101043b944abeeac89e1425f16de13ba
BLAKE2b-256 b8571e439842533ae2b9c59495b9c86ce68057bce4d097a7906b779d16216d0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cerebelum_sdk-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 59.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08e45493b20c5a7ed04bba59035e7e328f8934308de34ab7b2a86953f9c6a86f
MD5 2d62721071a54a9bd237b8247e5561f7
BLAKE2b-256 427a384b94d0805607b5975a35c40915b3e7174dece1465106475d84a602513a

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