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.1.tar.gz (25.2 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.1-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypncp-1.2.1.tar.gz
  • Upload date:
  • Size: 25.2 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.1.tar.gz
Algorithm Hash digest
SHA256 d9f077fb1aed3b2dc6ab93eb300b2ef305083a18fefb5492a30b43dc48d0fbee
MD5 79305acf4450fcf4f40704857d66ecfc
BLAKE2b-256 c5b14c897db664319117e4b3f89da11de53adc77e24865f9ac38ba6c4d235a21

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pypncp-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c27c97c3c7250573de78ae17e7b06eabd84365303a93bfa432bd7f90e9827cb5
MD5 f2dfbd776e35378bddd765c46583e955
BLAKE2b-256 e04ed256b60087351dedd4090a54f1b5365899e1c73c158bb30458849415355c

See more details on using hashes here.

Provenance

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