Skip to main content

Python SDK for Cascades workflow orchestration

Project description

Cascades SDK (Python)

PyPI package for the Cascades workflow orchestration control plane.

Install

pip install cascades-sdk

Quick start

from cascades_sdk import task, flow, CascadesClient, wait_for_completion
from cascades_sdk.compiler import build_dag_from_flow

@task
def add(a: int, b: int) -> int:
    return a + b

@flow
def math_flow(a: int, b: int):
    return add(a, b)

dag = build_dag_from_flow(math_flow, {"a": 1, "b": 2})

client = CascadesClient(base_url="http://localhost:3000", api_key="your_api_key")
flow_id = client.register_flow("math_flow", dag)
run_id = client.trigger_flow(flow_id, {"a": 1, "b": 2})
result = wait_for_completion(client, run_id)
print(result.get("result"))

What this SDK provides

  • @task and @flow decorators
  • Deterministic DAG capture/compilation
  • Thin HTTP API client for flow registration and runs
  • Polling helpers (sync + async)

Publish to PyPI

python -m build
python -m twine check dist/*
python -m twine upload dist/*

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

cascades_sdk-0.2.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

cascades_sdk-0.2.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file cascades_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: cascades_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for cascades_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 779a1d35ea8ef35ca5895ea0e8c8563746d2e6d790d581cbb01f7ed233d86a34
MD5 407fcb0d84beaca73a66772c9446f403
BLAKE2b-256 24dc0e3a389bf845994aad7dd887c7c2172572c7a306ed793c7a7ef77a440ee7

See more details on using hashes here.

File details

Details for the file cascades_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cascades_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for cascades_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8455a52fb7726a124dd57d9fdce1e30250c9bed7837ae143bc5d0c7a710c22b
MD5 2dd48786a6ae02cc32a9b1284e50a8ad
BLAKE2b-256 33177b663b28fdc36b45f715bd65b8f564dbb7e84bb5b2aa93ccc59f852fda83

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