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.1.tar.gz
(126.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.1-py3-none-any.whl
(53.3 kB
view details)
File details
Details for the file gumloop-0.3.1.tar.gz.
File metadata
- Download URL: gumloop-0.3.1.tar.gz
- Upload date:
- Size: 126.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee0990794b89bda8751b3b479b12b603e1c2c8c8da513ece2f8baeeaa5cf7d8c
|
|
| MD5 |
92a85745b27279b23cede3f99ac3e279
|
|
| BLAKE2b-256 |
2eac3c40891fe4e78d1019966471f89313b673f772b427293b4e6fb3f397b376
|
File details
Details for the file gumloop-0.3.1-py3-none-any.whl.
File metadata
- Download URL: gumloop-0.3.1-py3-none-any.whl
- Upload date:
- Size: 53.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be0642cf30332504613134df33a199319c287fe63be17e9de435e9ee7380352d
|
|
| MD5 |
cb1fbb25a3923b8cc03572109cd0320b
|
|
| BLAKE2b-256 |
89528a8a64463859658c4f95434a6716c1864c237905007f86b553fcbdbd6b08
|