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 de Consulta

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.1.0.tar.gz (23.5 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.1.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pypncp-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b3b9f8b1d9a1360aa41e08198716e5a141de88b9c400ef7ea9ba5063c0c5e04e
MD5 d8fbcdac30c0f375e09bb24a5d145b8c
BLAKE2b-256 cd60379ad61819d5e30ca89b910d7cd780eb7362b47b04600fc3e4c9e147baa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypncp-1.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: pypncp-1.1.0-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

Hashes for pypncp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4868325e1b80f1bbb22735b203a9b923566f63f75d40c95e5eed6ae827997c2b
MD5 b33d467e015fc8ed2c7107f041834592
BLAKE2b-256 1858a1778ec70cf993f812a6583553cc6b604c2d45b8e15c39984436e1cb24c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypncp-1.1.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