Skip to content

Gitlab.com Mirror - Please open issues and pull requests over there

License

Notifications You must be signed in to change notification settings

emergentmethods/flowdapt-python-sdk

Repository files navigation

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)

About

Gitlab.com Mirror - Please open issues and pull requests over there

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages