Skip to main content

Extract structured data from documents, images, audio, and video using LLMs

Project description

openextract

Extract structured data from documents, images, audio, and video using LLMs.

Installation

uv add openextract

Or

pip install openextract

Usage

from pydantic import BaseModel
from openextract import extract

class PdfInfo(BaseModel):
    summary: str
    language: str

result = extract(
    schema=PdfInfo,
    model="openai:gpt-5.4",
    input_file="https://example.com/document.pdf",
    instructions="return a 2 sentence summary and the primary language of the document",
)
print(result)

Changelog

See CHANGELOG.md for release history.

Contributing

See CONTRIBUTING.md for development setup and guidelines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openextract-0.3.1.tar.gz (530.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openextract-0.3.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file openextract-0.3.1.tar.gz.

File metadata

  • Download URL: openextract-0.3.1.tar.gz
  • Upload date:
  • Size: 530.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openextract-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4d054c0d77f0112d144dbd22e824824e279212c7625d2d59b51bd534194dce7d
MD5 5a592694d0667cea75f7f88294427854
BLAKE2b-256 8c893aa6cbb48191ca1a3f552ad9f7a1668a0aa955d980d2b1a1f28006c8a446

See more details on using hashes here.

Provenance

The following attestation bundles were made for openextract-0.3.1.tar.gz:

Publisher: release.yml on Mellow-Artificial-Intelligence/openextract

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openextract-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: openextract-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openextract-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a82c7ec600800b39c200af79efbc0f25690d19d222e26a427183c554604b381
MD5 482805ae304dd07d1c0722bd8d916867
BLAKE2b-256 fd2a6398d555052da64176064f5bd572562dbf95c7170936ec7ae78e2e6c6f77

See more details on using hashes here.

Provenance

The following attestation bundles were made for openextract-0.3.1-py3-none-any.whl:

Publisher: release.yml on Mellow-Artificial-Intelligence/openextract

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page