Skip to main content

Um leitor de documentos em Python para extrair campos, baseado em expressões regulares

Project description

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)

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

document_reader-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

document_reader-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file document_reader-0.0.3.tar.gz.

File metadata

  • Download URL: document_reader-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for document_reader-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cc092aeeb3960395c89a898fb3bd42a5092c4ee107af002b04208e7fd57f61e2
MD5 9268268b36205543ab0da6839b296bc6
BLAKE2b-256 b913f87f129a4709dac4642aab625a3a95597ea0b47a00b5dfc2f5205b34e634

See more details on using hashes here.

File details

Details for the file document_reader-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for document_reader-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 53af405482b0cec63fb00865013f704ed73c7aab04964bcf8ff64248f7aa6d44
MD5 d56b779cf80768201dc197ffafd1e24c
BLAKE2b-256 25a6f72809f57ffdbb3aa12c6be1f7d4b8b9e0290438b51e20bc02f3054134e2

See more details on using hashes here.

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