pypncp — Cliente Python assíncrono para a API de Consulta do PNCP
Project description
pypncp
Cliente Python assíncrono para a API de Consulta do PNCP — Portal Nacional de Contratações Públicas.
from pypncp import PNCPClient
async with PNCPClient() as client:
async for p in client.precos.buscar_precos(
q="dipirona",
tipos_documento="edital",
uf="SP",
):
print(f"{p['descricao']} | {p['fornecedor']} | R$ {p['valor_unitario']}")
uv add pypncp
Documentação completa em docs/:
| Seção | Descrição |
|---|---|
| Quickstart | Instalação, exemplos básicos, FastAPI |
| Paginação | list_all*, prefetch, workers concorrentes |
| Recursos | |
| Contratos | Consulta de contratos |
| Contratações | Licitações, publicações, propostas |
| Atas | Atas de registro de preço |
| Busca no catálogo | Busca full-text em todo o PNCP |
| Preços homologados | Pipeline busca → itens → preços |
| Modelos | Todos os campos e tipos |
| Erros | Hierarquia de exceções, retry automático |
| Contribuindo | Setup, testes, lint |
Documentação oficial: Swagger da API PNCP
Licença: MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypncp-1.1.1.tar.gz.
File metadata
- Download URL: pypncp-1.1.1.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae725fb0666aa76e829b0016c0b8f41374bda80d7e2ad77df03f6b715368e5db
|
|
| MD5 |
e78c7a662fe339d34393e999721bea5f
|
|
| BLAKE2b-256 |
54c42a49393927476b1f6ab10cf17398b2160e6b942caa2b09acddb72bdfd019
|
Provenance
The following attestation bundles were made for pypncp-1.1.1.tar.gz:
Publisher:
ci.yml on gabrielgz0/pypncp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pypncp-1.1.1.tar.gz -
Subject digest:
ae725fb0666aa76e829b0016c0b8f41374bda80d7e2ad77df03f6b715368e5db - Sigstore transparency entry: 1592604873
- Sigstore integration time:
-
Permalink:
gabrielgz0/pypncp@9977c54641193e3df5105e7cb76b0203910a8a7d -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/gabrielgz0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@9977c54641193e3df5105e7cb76b0203910a8a7d -
Trigger Event:
release
-
Statement type:
File details
Details for the file pypncp-1.1.1-py3-none-any.whl.
File metadata
- Download URL: pypncp-1.1.1-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39eaf8d221cad3c1bc8f52f9c8135870bab49aca0475acf8150ec5d20b0339f7
|
|
| MD5 |
eae186abd3d3c6deb963525d7afb9f3d
|
|
| BLAKE2b-256 |
87088567698b050aaf22db1868129fb6761a834e64427260c8245071261a7750
|
Provenance
The following attestation bundles were made for pypncp-1.1.1-py3-none-any.whl:
Publisher:
ci.yml on gabrielgz0/pypncp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pypncp-1.1.1-py3-none-any.whl -
Subject digest:
39eaf8d221cad3c1bc8f52f9c8135870bab49aca0475acf8150ec5d20b0339f7 - Sigstore transparency entry: 1592604906
- Sigstore integration time:
-
Permalink:
gabrielgz0/pypncp@9977c54641193e3df5105e7cb76b0203910a8a7d -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/gabrielgz0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@9977c54641193e3df5105e7cb76b0203910a8a7d -
Trigger Event:
release
-
Statement type: