Skip to main content

Official Python SDK for RunBlob AI generation platform — async-first, high-throughput, production-grade

Project description

RunBlob Python SDK

Official async-first Python SDK for the RunBlob AI generation platform.

Install

pip install runblob

Quick Start

import asyncio
from runblob import RunBlob

async def main():
    async with RunBlob(api_key="rb_...") as client:
        # Generate and wait for result
        result = await client.nanobanana.generate_and_wait(
            prompt="A cute orange cat on a windowsill",
            model="pro",
            quality="4k",
        )
        print(result.result_image_url)

asyncio.run(main())

Features

  • Async-first with httpx + HTTP/2
  • Connection pooling (100 concurrent connections)
  • Automatic retry with exponential backoff
  • Circuit breaker for cascading failure protection
  • Client-side rate limiting (token bucket)
  • TTL cache for GET requests
  • Auto-polling with generate_and_wait()
  • Batch generation support
  • Webhook verification
  • Full type hints (py.typed, Pydantic v2)

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

runblob-0.1.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

runblob-0.1.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file runblob-0.1.0.tar.gz.

File metadata

  • Download URL: runblob-0.1.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for runblob-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6b68e0d46090e69aec6ac772d0496b39a448b330b8c128fc4e27695def3bcbd7
MD5 8f8049df859dc544f30fc6542633e22a
BLAKE2b-256 b969d5a7658b106ddce74ef5acd5f6e5b23cd2ab66e4155c17270e970b1b3ac3

See more details on using hashes here.

File details

Details for the file runblob-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: runblob-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for runblob-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f951d8296f38ff13946444ddee10d6068b22bba208186338b730a1517e3f2002
MD5 4e4b3c838dbc51a4b247e3901f547ce9
BLAKE2b-256 01c6c43dd15264533fecedd479012936e8e3256925dfddd1959e677d074f6ebb

See more details on using hashes here.

Supported by

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