Skip to main content

Docling based wrapper for LangExtract

Project description

LangExtract Docling

LangExtract Docling is a lightweight wrapper around LangExtract that adds native support for processing PDF files via Docling.

Installation

pip install langextract-docling

Usage

import langextract_docling as lx

# Extract from plain text (same as LangExtract)
result = lx.extract(
    text_or_documents="Your document text here.",
    prompt_description="Extract entities",
    examples=[...]
)

# Extract from a local PDF
result = lx.extract(
    text_or_documents="path/to/document.pdf",
    prompt_description="Extract entities",
    examples=[...]
)

# Extract from a PDF URL
result = lx.extract(
    text_or_documents="https://example.com/document.pdf",
    prompt_description="Extract entities",
    examples=[...]
)

License

MIT License

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

langextract_docling-1.0.9a1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

langextract_docling-1.0.9a1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file langextract_docling-1.0.9a1.tar.gz.

File metadata

  • Download URL: langextract_docling-1.0.9a1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langextract_docling-1.0.9a1.tar.gz
Algorithm Hash digest
SHA256 9a925c0caedc5ddcc090dbed86b9a1cf013aa0374e6c7780942c3b7464d14d8c
MD5 07b209c512d92199a1f698db7c74d38e
BLAKE2b-256 c4bc01c9492e9bc196adfae2733be5cf78cf9505a3619f7e2cdf4351fabc3956

See more details on using hashes here.

Provenance

The following attestation bundles were made for langextract_docling-1.0.9a1.tar.gz:

Publisher: publish.yml on tijoseymathew/langextract-docling

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

File details

Details for the file langextract_docling-1.0.9a1-py3-none-any.whl.

File metadata

File hashes

Hashes for langextract_docling-1.0.9a1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcfacd335f4c3dca077a5856f890aae6c003c0c92a25a283a80814b39441c601
MD5 0d752ea77ad09fd90b56108684322929
BLAKE2b-256 13f92947b52611abf1a716001307ef15d2e2ca92749eb88072cb628a74ce8ac4

See more details on using hashes here.

Provenance

The following attestation bundles were made for langextract_docling-1.0.9a1-py3-none-any.whl:

Publisher: publish.yml on tijoseymathew/langextract-docling

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