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

Uploaded Python 3

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

Hashes for pypncp-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ae725fb0666aa76e829b0016c0b8f41374bda80d7e2ad77df03f6b715368e5db
MD5 e78c7a662fe339d34393e999721bea5f
BLAKE2b-256 54c42a49393927476b1f6ab10cf17398b2160e6b942caa2b09acddb72bdfd019

See more details on using hashes here.

Provenance

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

Hashes for pypncp-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39eaf8d221cad3c1bc8f52f9c8135870bab49aca0475acf8150ec5d20b0339f7
MD5 eae186abd3d3c6deb963525d7afb9f3d
BLAKE2b-256 87088567698b050aaf22db1868129fb6761a834e64427260c8245071261a7750

See more details on using hashes here.

Provenance

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