Skip to main content

document-reader

Leitor de documentos em Python para extrair campos, baseado em expressões regulares.

Instalação

pip install document-reader

Uso

from document_reader import Document, Field


doc = Document("pdf_file.pdf")
doc.register_fields(
    Field(name="contract", regex=r"\d+/.*?/\d+", page=0),
    Field(name="nup", regex=r"\d{5}\.\d{6}/\d{4}-\d{2}", page=1),
)
data = doc.open()
print(data)

Metadata

Release files for document-reader 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for document-reader 0.0.6
File Size Uploaded Provenance
document_reader-0.0.6.tar.gz 3.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for document-reader 0.0.6
File Interpreter ABI Platform
document_reader-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / document_reader-0.0.6.tar.gz

Download URL document_reader-0.0.6.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ef2e47bce44e514875a79c24a93fbebaa23693a034f53df2e14ad8d26007f830
BLAKE2b-256 checksum
How to use checksums
de656cba17d93d49f7f39a849c950a38e5011cce09e19ff5389a12d0a56a968d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / document_reader-0.0.6-py3-none-any.whl

Download URL document_reader-0.0.6-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff7d0888b159f3b1a5e9b6f0f4909b8557722f5b3acc79fe48beb2920577347e
BLAKE2b-256 checksum
How to use checksums
de61c05a68fcfc42a34b52f976995c7ad5824c80b52a36e6f9407286e1000606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for document-reader 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page