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.3.5.tar.gz
(134.7 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.5-py3-none-any.whl
(58.6 kB
view details)
File details
Details for the file gumloop-0.3.5.tar.gz.
File metadata
- Download URL: gumloop-0.3.5.tar.gz
- Upload date:
- Size: 134.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21ec6166998579073b673c3465f37fc7a14d361225b1133b1e9c008ee78e2a3f
|
|
| MD5 |
f0acaf3a9452726938976a2cf025ccf3
|
|
| BLAKE2b-256 |
b4dbfc0c7979a56548c8f7b5b4d273d8bd37283c75358d656e9834a9d1e650e3
|
File details
Details for the file gumloop-0.3.5-py3-none-any.whl.
File metadata
- Download URL: gumloop-0.3.5-py3-none-any.whl
- Upload date:
- Size: 58.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12eb191486b28eefc7a9671c8ce2257e661726d3cccbb04485c97ffacf93323b
|
|
| MD5 |
3941bea16bd7f2bdf5722c6de403963d
|
|
| BLAKE2b-256 |
41f7e4229e7136203d71b94bee2eff48a8f6935a87c6ddc9ca2779de786792d1
|