PNCP
Ferramenta Python para facilitar pesquisas ao Portal Nacional de Contratações Públicas (PNCP).
Instalação
Requer Python 3.12+. Recomenda-se instalar via pip ou uv:
pip install pncp
# ou
uv add pncp
Exemplo de Uso
from pncp.instrumentos_convocatorios import Busca
busca = Busca()
camara_dos_deputados = busca.listar_orgaos().filtrar(
lambda o: "camara dos deputados" in o.nome.lower()
)
aviso_de_dispensa = busca.listar_instrumentos_convocatorios().filtrar(
lambda i: "aviso" in i.nome.lower()
)
busca.preencher(
orgaos=camara_dos_deputados, instrumentos_convocatorios=aviso_de_dispensa, anos=[2025]
)
print(busca.resultados)
if busca.resultados:
resultado = busca.resultados[0]
contratacao = resultado.detalhar()
itens = contratacao.listar_itens()
for item in itens:
print(item)
Funcionalidades
- Pesquisa órgãos e instrumentos convocatórios do PNCP
- Filtragem flexível por nome e atributos
- Detalhamento de contratações e itens
Metadata
Release files for pncp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pncp-0.1.1.tar.gz | 94.9 kB | Without provenance | Details for pncp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pncp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pncp-0.1.1-py3-none-any.whl |
Total release size: 102.2 kB
Release files / pncp-0.1.1.tar.gz
| Download URL | pncp-0.1.1.tar.gz |
|---|---|
| Size | 94.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d606be92ef4995caa5e6417d3a18462ada641ec9cb6ea20b37d0d8acfa2b831
|
|
BLAKE2b-256 checksum How to use checksums |
18f00ec2fa07b19de4ae30a446a30f9b8f34c1994fef1eec95c740f84458d09c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.1
|
Release files / pncp-0.1.1-py3-none-any.whl
| Download URL | pncp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a414cd805e1cb510ad260e6eeca42c5873caad86d1be34f1ca07562af7f60e99
|
|
BLAKE2b-256 checksum How to use checksums |
669604ae7e889e5baaa12d36b91a54a06252b3b69373dbe6ceb249ecb8368d28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.1
|
Security for pncp 0.1.1
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.