Python SDK for Flowdapt
Project description
Flowdapt Python SDK
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
File details
Details for the file flowdapt_sdk-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: flowdapt_sdk-0.1.7-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.1.0-17-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb89bca8d00cb0d951016f1ab39640b778d09530bb15eb576d5fad2a8d8f7df2 |
|
MD5 | badf4eeeffdcb6ef331c70892aea000f |
|
BLAKE2b-256 | 3b95643a8f899e47ac2e80ff1595c56ead27dce3a680b5d438b0060cf5d2282f |