automaited Python API library
The automaited Python library provides convenient access to the automaited REST API from any Python 3.10+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx.
Installation
[!IMPORTANT] The document extraction service is currently in a closed beta.
# install from PyPI
pip install automaited
Usage
Define the target model you want to populate and pass it with the PDF that you want to process into the .extract_model() method. Here is an example:
from datetime import date
from pydantic import Field, BaseModel
from automaited import DocExtClient
# from automaited import AsyncDocExtClient
class Article(BaseModel):
article_number: str = Field(..., description="Typically alphabetical or alphanumerical.")
description: str = Field(..., description="Description of the item.")
quantity: float = Field(..., description="Number of pieces.")
class PurchaseOrder(BaseModel):
customer_name: str = Field(..., description="Examples: Kaladent Inc., Henkel GmbH")
order_number: str = Field(..., description="The purchase order number.")
order_date: date = Field(..., description="The purchase order date.")
items: list[Article] = Field(default_factory=list, description="List of all ordered articles.")
client = DocExtClient(API_KEY="TEST_BETA:you@company.com") # Replace the email with yours. As soon as we are out of beta you will receive a proper API key for production.
result: PurchaseOrder = client.extract_model(PurchaseOrder, "./po.pdf") # automaited.dev/samples
print(result)
You can download a sample PDF here: automaited.dev/samples If you want to learn more about how to define target models, just take a look at the pydantic docs
Metadata
Release files for automaited 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| automaited-0.1.4.tar.gz | 201.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| automaited-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 209.7 kB
Release files / automaited-0.1.4.tar.gz
| Download URL | automaited-0.1.4.tar.gz |
|---|---|
| Size | 201.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e3b27bb5729cd2d50810061c514974bb49efb9e3caf1799f013995b99ef8399
|
|
BLAKE2b-256 checksum How to use checksums |
35cfdac27c90b1e25bce8bc8b07aa43457a94a0d9e1d0b2ad3e83d44d6669195
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.25
|
Release files / automaited-0.1.4-py3-none-any.whl
| Download URL | automaited-0.1.4-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7175702ff2dc322db5c545f2e0d0d4c7d78de88ced926d0f77e85f7b05b37910
|
|
BLAKE2b-256 checksum How to use checksums |
db1a6ee72d1e8991b99a8779283ebd18fd2a00925ef17f4f6c3ed11c582a4542
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.25
|