Gumloop Python Client
A Python client for the Gumloop API that makes it easy to run and monitor Gumloop flows.
Installation
pip install gumloop
Usage
from gumloop import GumloopClient
# Initialize the client
client = GumloopClient(
api_key="your_api_key",
user_id="your_user_id"
)
# Run a flow and wait for outputs
output = client.run_flow(
flow_id="your_flow_id",
inputs={
"recipient": "example@email.com",
"subject": "Hello",
"body": "World"
}
)
print(output)
Chat with an agent (streaming)
import asyncio
from gumloop import AsyncGumloop
async def main() -> None:
async with AsyncGumloop(access_token="your_access_token") as client:
agents = await client.agents.list()
agent = agents.agents[0]
async for event in client.sessions.stream(
agent.id,
input="Hello, what can you do?",
):
print(event)
asyncio.run(main())
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gumloop-0.4.0.tar.gz
(209.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gumloop-0.4.0-py3-none-any.whl
(93.5 kB
view details)
File details
Details for the file gumloop-0.4.0.tar.gz.
File metadata
- Download URL: gumloop-0.4.0.tar.gz
- Upload date:
- Size: 209.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bbdaea72e97d604a3f32056b7743256161aecfaa88ee8c18daac7987218acf3
|
|
| MD5 |
7d8726a45aac6d19b7cbbf785b5a88e7
|
|
| BLAKE2b-256 |
85fc3d4b4d74163abd9996c905747d8d75a30eb9951879a7cda3b9583f64c55e
|
File details
Details for the file gumloop-0.4.0-py3-none-any.whl.
File metadata
- Download URL: gumloop-0.4.0-py3-none-any.whl
- Upload date:
- Size: 93.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f435a1f9288877c481a3326f93c3eaec47ad9c8c50e85890c5bb860234a6cf19
|
|
| MD5 |
44d096f5553e2a4e87533aca25a804fe
|
|
| BLAKE2b-256 |
01a1e185e3718055a2a48267d3266e6a86ef34e7e9cd6fe520d30ad449592df7
|