Whizo
// PYTHON SDK \\

WhizoAI Python SDK

The official Python client for WhizoAI. Type-safe, async-ready, and built for production use.

pip install whizoai

Type Hints

Full type annotations for better IDE support and code completion.

Async Support

Native async/await support for high-performance applications.

Auto Retries

Built-in retry logic with exponential backoff for reliability.

Streaming

Stream results for long-running operations with generators.

Quick Start

Installation

pip install whizoai

Basic Usage

main.py
import whizoai

# Initialize client
client = whizoai.WhizoAI(api_key="your_api_key")

# Scrape a page
result = client.scrape("https://example.com")
print(result.markdown)

# Extract structured data
data = client.extract(
    url="https://shop.example.com",
    schema={"title": "string", "price": "number"}
)
print(data)

Async Usage

async_example.py
import asyncio
from whizoai import AsyncWhizoAI

async def main():
    client = AsyncWhizoAI(api_key="your_api_key")
    result = await client.scrape("https://example.com")
    print(result.markdown)

asyncio.run(main())

Ready to Start Building?

Install the SDK and make your first API call