Skip to main content

Python SDK for Flowdapt

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

flowdapt_sdk-0.1.6-py3-none-any.whl (21.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page