flowra
Python SDK for the Flowra API. Stdlib only (no extra runtime deps). Requires Python 3.10+.
Install
PyPI name is flowra-sdk. Import stays flowra. Do not pip install flowra — that package is unrelated.
pip install flowra-sdk
From this repo:
pip install -e "./python"
Quickstart
import os
from flowra import Flowra
flowra = Flowra(api_key=os.environ["FLOWRA_API_KEY"])
profile = flowra.get_profile()
tools = flowra.tools.list(limit=10)
run = flowra.workflows.run("WORKFLOW_ID", {"input": {"message": "hello"}})
Act as an external user:
user_client = flowra.as_user("customer_42")
user_client.connections.create_link({"authConfigId": "..."})
Namespaces
tools, toolkits, skills, workflows, connections, auth_configs, users, triggers, chat, files, knowledge, database, sandbox, mcp, llm, browser, usage
Method names are snake_case mirrors of the TypeScript facade (e.g. create_link, set_active, ingest_url).
Chat streaming and usage
from flowra import Flowra
flowra = Flowra(api_key="...")
for event in flowra.chat.stream(thread_id, {"input": {"messages": [...]}}, as_events=True):
if event["event"] == "usage":
print(event["data"])
balance = flowra.usage.balance()
ledger = flowra.usage.list(threadId="...")
Files
flowra.files.upload("document", "/path/to/file.pdf")
content = flowra.files.download(file_id) # bytes
Escape hatch
flowra.request("GET", "/api/v1/toolkits", query={"limit": 5})
HTTP failures raise FlowraAPIError (status_code, body).
Release files for flowra-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flowra_sdk-0.1.1.tar.gz | 9.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flowra_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.9 kB
Release files / flowra_sdk-0.1.1.tar.gz
| Download URL | flowra_sdk-0.1.1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
562d9a9c3531647b5b31f28bb004777c49e577305b3413a6f6b00166e78555e0
|
|
BLAKE2b-256 checksum How to use checksums |
4bcd1568ffa1c6eeef685a29b457b3a1caf07b4a7f4013aeb1e16ce124af24e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / flowra_sdk-0.1.1-py3-none-any.whl
| Download URL | flowra_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2d154dd18534b438fd3f992e4264f53cdbe9a57d5bcafc1fe091102a3a153d5
|
|
BLAKE2b-256 checksum How to use checksums |
0df6266a9a20938823a6a9abc19f4e5c5a9ba4e62dcb85f0db52b44e68b11fc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|