Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • 0.1.7 protected
  • 0.1.6 protected
  • 0.1.5 protected
  • 0.1.4 protected
  • 0.1.3 protected
  • 0.1.2 protected
  • 0.1.1 protected
  • 0.1.0 protected
9 results

flowdapt-python-sdk

  • Clone with SSH
  • Clone with HTTPS
  • Flowdapt Python SDK

    GitLab Release (latest by SemVer) GitLab PyPI - Python Version

    This is the official Python SDK for the Flowdapt API. It provides a simple way to programmatically interact with Flowdapt in Python. It is asynchronous and uses httpx as the underlying HTTP client.

    Installation

    pip install flowdapt_sdk

    Usage

    import asyncio
    from flowdapt_sdk import FlowdaptSDK
    
    async def main():
        async with FlowdaptSDK(base_url="http://localhost:8080/") as client:
            print(await client.ping())
    
            workflows = await client.workflows.list_workflows(version="v1alpha1")
            print(workflows)
    
            workflow = await client.workflows.get_workflow("my-workflow", version="v1alpha1")
            print(workflow)
    
            result = await client.workflows.run_workflow(
                identifier="my-workflow",
                input={"x": 5},
                wait=True,
                namespace="default",
                version="v1alpha1"
            )
            print(result)