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

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

flowdapt_sdk-0.1.8-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file flowdapt_sdk-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: flowdapt_sdk-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.12 Linux/6.1.0-29-amd64

File hashes

Hashes for flowdapt_sdk-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bfab4e334effd8994e3b3c4f57958a4631b4ca3fb7fedd9e866d5e9dad85d1c0
MD5 8efd7dff74b9e69fdd0e4ac2d5f9841e
BLAKE2b-256 6d309464439f686874a9ef87aa1cd0163f12ca5013b0fe5e9249f8f1df0e0815

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