Python client for the Gumloop API
Project description
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())
Project details
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.3.0.tar.gz
(123.8 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.3.0-py3-none-any.whl
(51.4 kB
view details)
File details
Details for the file gumloop-0.3.0.tar.gz.
File metadata
- Download URL: gumloop-0.3.0.tar.gz
- Upload date:
- Size: 123.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"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 |
b2491eaae850033e88922f98d6173fe0a4c5e5f5d482facd80422eab0553e709
|
|
| MD5 |
c5e92970da0eaa764133e6fdeafc202b
|
|
| BLAKE2b-256 |
d57c062ef5746b39c37cf7001fea30bb7ef32806f3086a0e668a5c27cee9c88a
|
File details
Details for the file gumloop-0.3.0-py3-none-any.whl.
File metadata
- Download URL: gumloop-0.3.0-py3-none-any.whl
- Upload date:
- Size: 51.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"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 |
9fc4f0923c06a93ebf65c945e82b958a60f8412bbbf4a9ffff54a9181abcd964
|
|
| MD5 |
1d8e10757a1cfe002753439bad95edf6
|
|
| BLAKE2b-256 |
f3336216959c696d1762df1ebd03607bc3d55621a117fcc42970b9c93b079dec
|