Skip to main content

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.4.tar.gz (133.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gumloop-0.3.4-py3-none-any.whl (58.0 kB view details)

Uploaded Python 3

File details

Details for the file gumloop-0.3.4.tar.gz.

File metadata

  • Download URL: gumloop-0.3.4.tar.gz
  • Upload date:
  • Size: 133.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

Hashes for gumloop-0.3.4.tar.gz
Algorithm Hash digest
SHA256 a7495147ba7db05a20044e8edbbdb858cbd0144be9e3a149bc3f8152bbefa1fc
MD5 2b24ea7fdd231e076d94b32142f0ac8f
BLAKE2b-256 f48cccb578c3338ca8e9ea0f8b927813044c4a94deed2964791b65439e314225

See more details on using hashes here.

File details

Details for the file gumloop-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: gumloop-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 58.0 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

Hashes for gumloop-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0046a523eda325b5645a8264a8b4472715bb93712d40d2874963a21b11776419
MD5 474fcd9ccb65c716cad3fee5a0804018
BLAKE2b-256 bfb25db00ec90cdfc4226dced63259a4e63297706476c85998486befb8a1e350

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.0

2 files

0.3.5

2 files

This release

0.3.4 This release

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page