Skip to main content

pypncp — Cliente Python assíncrono para a API de Consulta do PNCP

Project description

pypncp

CI PyPI Python Version License Coverage

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

pypncp-1.2.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

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

pypncp-1.2.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file pypncp-1.2.0.tar.gz.

File metadata

  • Download URL: pypncp-1.2.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pypncp-1.2.0.tar.gz
Algorithm Hash digest
SHA256 768992b5e5aaf47c8d93e64541c16d119b4e706d1cec93a9ee0d679efabd7340
MD5 bcc2ff7abd7a578d63d492124b4c2862
BLAKE2b-256 505bd197281c399adc28e6c834af624a53e49fd3e84c8cba3747113c59d07453

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypncp-1.2.0.tar.gz:

Publisher: ci.yml on gabrielgz0/pypncp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pypncp-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: pypncp-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pypncp-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bff68335fe3f6a668ed91944c35fdb4ed3edb903b1c946b9a2c07b8a4cebafd7
MD5 b1d53f2dfb0f79fbd07569cc1ad24eed
BLAKE2b-256 15d81af6e6b3bad51048ab25a9468ac34e3153741e2595a49504061fde3f37ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypncp-1.2.0-py3-none-any.whl:

Publisher: ci.yml on gabrielgz0/pypncp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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