The Aurelio Platform SDK is a Python library (version 0.0.19) that simplifies interaction with the Aurelio Platform for document processing tasks. It enables developers to extract text from various sources (PDFs, URLs), intelligently chunk content, and generate embeddings. The library focuses on abstracting the complexities of AI-powered document pipelines, offering both synchronous and asynchronous clients. Its release cadence appears to be active with regular updates and feature enhancements.
pip install aurelio-sdkVerified import paths — ran on the pinned version, not inferred.
Initializes the AurelioClient with an API key from environment variables and demonstrates how to extract text from a URL. It also includes error handling and checks for the extraction status. Remember to replace the URL or use `extract_file` for local documents.
Replace `quality='high'` with `model='docling-base'` or `quality='low'` with `model='aurelio-base'`.
Set the `wait` parameter to an appropriate timeout value for synchronous calls, or use the `AsyncAurelioClient` with explicit polling logic for more control over long-running tasks. Always check `response.status`.
Use `AsyncAurelioClient` and `await` calls within an `async def` function for better performance when dealing with many concurrent requests or large file processing.
Set the environment variable `export AURELIO_API_KEY="your_api_key_here"` or pass the key directly: `client = AurelioClient(api_key="your_api_key_here")`.
Install the package using pip: `pip install aurelio-sdk`. Ensure your virtual environment is activated if you are using one.
Update your code to use the new model names, e.g., `model='aurelio-base'` or `model='docling-base'` instead of `quality='low'` or `quality='high'`.