Gumloop Python Client
A Python client for the Gumloop API that makes it easy to run and monitor Gumloop flows, plus the gumloop CLI.
CLI
Install on macOS or Linux:
curl -fsSL https://gumloop.com/cli/install.sh | sh
The installer is fully self-contained under ~/.gumloop — it ships its own Python, never touches your system Python, and needs no sudo. Run gumloop --help to get started and update any time with:
gumloop update
SDK
To use the client as a library in your own Python project:
uv add 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)
Authenticate with a team API key
Team (workspace) API keys are scoped to a single team. Pass the team's ID and the acting member's user ID — every request is validated against that team and only reaches resources the team owns.
from gumloop import Gumloop
client = Gumloop(
api_key="your_team_api_key",
user_id="your_user_id", # must be a member of the team
team_id="your_team_id",
)
agents = client.agents.list() # scoped to the team
team_id can also be provided via the GUMLOOP_TEAM_ID environment variable.
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
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
File details
Details for the file gumloop-0.4.5.tar.gz.
File metadata
- Download URL: gumloop-0.4.5.tar.gz
- Upload date:
- Size: 223.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cc48ac01e2a70f34812f5a52eb39b13be0419925c09e34e0927e7d60498a137
|
|
| MD5 |
b3161728ff7e352c23cdad8b0303a99f
|
|
| BLAKE2b-256 |
79c4a0e9ae59ffd00b2dac24ef1a5e6f29265a1f1200adb922d9bcaecd4fb13f
|
File details
Details for the file gumloop-0.4.5-py3-none-any.whl.
File metadata
- Download URL: gumloop-0.4.5-py3-none-any.whl
- Upload date:
- Size: 101.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0a6b97d63c0da98a100388c40ae4fa94beedfe9b91d4cd0faf527fdbef524b9
|
|
| MD5 |
7959bcf601bd47db1af971a9401caf69
|
|
| BLAKE2b-256 |
580a704ed574b0ebd13e56d0d7f778e5ad24ee99d82c23ea78f6ffb2269ab14a
|