Installation
Get started with the Reducto Python SDK by installing the package and configuring your API key.Install from PyPI
Get your API key
Sign up for an account at Reducto and obtain your API key from the dashboard.
Configure your API key
We recommend using python-dotenv to manage your API key securely.First, install python-dotenv:Then create a
.env file in your project root:Optional: Install with aiohttp
For improved concurrency performance with async operations, you can install Reducto with aiohttp support:The aiohttp backend provides better concurrency performance for async operations compared to the default httpx backend.
Environment Configuration
The SDK supports the following environment variables:| Variable | Description | Default |
|---|---|---|
REDUCTO_API_KEY | Your Reducto API key | Required |
REDUCTO_BASE_URL | Custom base URL for API requests | https://api.reducto.ai |
REDUCTO_LOG | Logging level (info or debug) | None |
Requirements
- Python version: 3.9 or higher
- Dependencies: Automatically installed with the package
Next Steps
Quick Start
Parse your first document
API Reference
Explore the full API