Skip to main content

CEP-BR

Biblioteca em Python para acesso à base de CEP dos Correios do Brasil

Inicialmente inspirada no postmon[1], a proposta era deixa-la mais simples e modular. Entretanto o projeto postmon utiliza uma url de busca dos site dos Correios do Brasil. Sua disponibilidade esta diretamente associada a disponibilidade dessa url.

A nova versão utiliza a API[2] de consulta a CEP do Correio Control da Aviso[3]

Notas de versão

Puramente em Python. Somente bibliotecas da standard lib. Código otimizado Resultado em JSON nativo

Modo de uso

>>> from cepbr import CEP
>>> c = CEP()
>>> c.get_cep('01154030')
{u'bairro': u'Barra Funda', u'uf': u'SP', u'logradouro': u'Rua Margarida', u'localidade': u'S\xe3o Paulo', u'cep': '01154030'}
>>>
>>> c.get_cep('05437001')
{u'bairro': u'Sumarezinho', u'uf': u'SP', u'logradouro': u'Rua Heitor Penteado', u'localidade': u'S\xe3o Paulo', u'cep': u'05437001'}
>>>

Testes

Doctests

python -m doctest cep_doctest.rst -v

Contribuições

Lucas Magnum (Doctests e Refactoring)

Contato

Mauro Navarro Baraldi (mauro.baraldi@gmail.com) github & twitter

Metadata

Release files for CEPBR 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CEPBR 0.1.0
File Size Uploaded Provenance Actions
CEPBR-0.1.0.tar.gz 2.1 kB Without provenance Details for CEPBR-0.1.0.tar.gz

Release files / CEPBR-0.1.0.tar.gz

Download URL CEPBR-0.1.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a4a071ef41016674c1deabad735fafdfc054887ddd52b6dba07036e573a3e76c
BLAKE2b-256 checksum
How to use checksums
21a02c9846e9ff59c983050e9f0eba81cecba4ffac90901243fdf69045369a2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for CEPBR 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page