Skip to main content

SDK Python

Cliente oficial síncrono e assíncrono, Python 3.10+ e httpx, licença Apache-2.0. Sem telemetria. O cliente assíncrono aceita cancelamento normal de tasks asyncio.

As versões distribuídas pelo PyPI são instaladas com python -m pip install docmatch. Confira o estado da publicação antes da primeira instalação. Para usar este checkout, rode python -m pip install -e sdks/python dentro de um ambiente virtual.

Crie uma chave em Minha conta → Acesso à API com uploads:write, runs:write e runs:read. Configure DM_API_BASE_URL=https://docmatch.com.br e DOCMATCH_API_KEY no ambiente do servidor. O método run aprova o limite da estimativa e pode consumir créditos.

from docmatch import Client
import os
from pathlib import Path
client = Client(os.environ['DM_API_BASE_URL'], os.environ['DOCMATCH_API_KEY'])
file = client.upload('dados.csv', Path('dados.csv').read_bytes(), 'text/csv')
input = client.input([file['id']])
quote = client.estimate(input)
# Apresente quote['cap_credits'] e obtenha aprovação.
run = client.run(quote, input)
result = client.wait(run['id'], timeout=600)
Path('corrigido.xlsx').write_bytes(client.export(result['id']))

AsyncClient oferece as mesmas operações com await. Veja contrato e limites e instruções de publicação.

Metadata

Release files for docmatch 0.1.0

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

Source distribution (sdist)

Source distribution for docmatch 0.1.0
File Size Uploaded Provenance Actions
docmatch-0.1.0.tar.gz 10.4 kB Without provenance Details for docmatch-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docmatch 0.1.0
File Interpreter ABI Platform Actions
docmatch-0.1.0-py3-none-any.whl Python 3 none any Details for docmatch-0.1.0-py3-none-any.whl

Total release size: 19.8 kB

Release files / docmatch-0.1.0.tar.gz

Download URL docmatch-0.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
59830143e1cf31bf8cf71b481b3a9b43d3159187997bc3f480a7ea5009b7901e
BLAKE2b-256 checksum
How to use checksums
c7b2088aeaa228c56f6a42af87000245df0a6de5cae54ef001b873d3a8681ca7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / docmatch-0.1.0-py3-none-any.whl

Download URL docmatch-0.1.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f63078f4717ba9c6e2166b5e50cd0d04b83f1034a5c6af5d52eb8701efa67b5
BLAKE2b-256 checksum
How to use checksums
c669736560e2a741f1292a888590bd45c674535329058bf8260528a21317d10f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for docmatch 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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