Skip to main content

Python SDK for Stepflow - includes API client and component server (worker) functionality.

Project description

stepflow-py

The official Python SDK for Stepflow - an orchestration engine for AI workflows.

Installation

pip install stepflow-py

Features

  • gRPC Client: Type-safe client for the Stepflow gRPC API
  • Worker Module: Build component servers that extend Stepflow functionality
  • Flow Builder: Programmatically create and manipulate workflows

Quick Start

Building a Worker (Component Server)

from stepflow_py.worker import StepflowServer, StepflowContext
import msgspec

class MyInput(msgspec.Struct):
    message: str

class MyOutput(msgspec.Struct):
    result: str

server = StepflowServer()

@server.component
async def my_component(input: MyInput, context: StepflowContext) -> MyOutput:
    return MyOutput(result=f"Processed: {input.message}")

if __name__ == "__main__":
    import asyncio
    asyncio.run(server.run())

Documentation

For full documentation, visit stepflow.org.

License

Apache License 2.0

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

stepflow_py-0.13.0.tar.gz (158.3 kB view details)

Uploaded Source

Built Distribution

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

stepflow_py-0.13.0-py3-none-any.whl (189.7 kB view details)

Uploaded Python 3

File details

Details for the file stepflow_py-0.13.0.tar.gz.

File metadata

  • Download URL: stepflow_py-0.13.0.tar.gz
  • Upload date:
  • Size: 158.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stepflow_py-0.13.0.tar.gz
Algorithm Hash digest
SHA256 31545dc8c53859a47af68da19bb7640fe09dafa06966c6fb08d6ecee4604edf6
MD5 a4f64de497c333ca564e999057d46ed0
BLAKE2b-256 f0aff0310f2f35acf8debc76bbd27a3fcf59bb272c8b571af017c01c67789c46

See more details on using hashes here.

Provenance

The following attestation bundles were made for stepflow_py-0.13.0.tar.gz:

Publisher: release_python.yml on stepflow-ai/stepflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stepflow_py-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: stepflow_py-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 189.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stepflow_py-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6321be278d5900f63c02b55bb316c2ffa1a1d105a4048991f94fd6f668550a78
MD5 35f3a387ed7ed29f984c2ecd4ad01aab
BLAKE2b-256 90791c40e8bbaf1f77c3b4cbdca2d470756acba61bba1f25e0514182e251d540

See more details on using hashes here.

Provenance

The following attestation bundles were made for stepflow_py-0.13.0-py3-none-any.whl:

Publisher: release_python.yml on stepflow-ai/stepflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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