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.2
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.2.tar.gz | 9.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flowra_sdk-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.9 kB
Release files / flowra_sdk-0.1.2.tar.gz
| Download URL | flowra_sdk-0.1.2.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
915c28c5f9d02feb9c6c90f653c9d4ed0f88a49787b999611e7416d147011ece
|
|
BLAKE2b-256 checksum How to use checksums |
32f4093541e029f075f6aba7e02d4b8c307238e9f3080ab97a80909638136f1a
|
| 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.2-py3-none-any.whl
| Download URL | flowra_sdk-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c3dc927312e3a76eeafa2bfb74a10e514c7698c29ff32a9d9c7c30fe0f85af0
|
|
BLAKE2b-256 checksum How to use checksums |
b13f29bf49d9cdccbcca4e1085545aa525e6f02fc8f919f1bb5bbc0f5030155f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|