Skip to main content
The official Python SDK for Poof provides a clean, Pythonic interface with full type hints and both sync and async support.

Installation

Requirements: Python 3.8+

Quick Start

Authentication

The SDK looks for your API key in this order:
  1. Passed directly: Poof(api_key="...")
  2. Environment variable: POOF_API_KEY

Usage Examples

From File Path

From Bytes

From URL

With Options

Async Support

For async applications, use AsyncPoof:

Parallel Processing

Result Object

The remove() method returns a Result object:

Account Info

Check your credit balance:

Error Handling

Retry with Backoff

Configuration

Type Hints

The SDK is fully typed. Enable strict type checking in your IDE for the best experience: