Consulte CEPs via WebService dos correios
Project description
Endereco
To install
pip install endereco
To import the library
from endereco import Endereco
Defining the CEP, UF, CIDADE, BAIRRO or ENDERECO
data = Endereco('59082310')
or address
data = Endereco('rua buzius')
Get Mensagem
print(data.mensagem())
Get number of register
print(data.total())
Get all address
print(data.resultados())
All functions of address
print(data.resultados()[0]['uf'])
print(data.resultados()[0]['localidade'])
print(data.resultados()[0]['locNoSem'])
print(data.resultados()[0]['locNu'])
print(data.resultados()[0]['localidadeSubordinada'])
print(data.resultados()[0]['logradouroDNEC'])
print(data.resultados()[0]['logradouroTextoAdicional'])
print(data.resultados()[0]['logradouroTexto'])
print(data.resultados()[0]['baiNu'])
print(data.resultados()[0]['nomeUnidade'])
print(data.resultados()[0]['cep'])
print(data.resultados()[0]['tipoCep'])
print(data.resultados()[0]['numeroLocalidade'])
print(data.resultados()[0]['situacao'])
print(data.resultados()[0]['faixasCaixaPostal'])
print(data.resultados()[0]['faixasCep'])
Links
See my GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
endereco-0.0.6.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file endereco-0.0.6.tar.gz.
File metadata
- Download URL: endereco-0.0.6.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e2461acc30dc22177cc4a202557000b71cf3a3b1e96508484eaf7a156476eff
|
|
| MD5 |
9b9fdbe360ddf90527152396cac06b53
|
|
| BLAKE2b-256 |
0ecd25fc85c6c61cf7213618f3c5e0767073596aa9cec3fba6eabe932ae0fc6b
|
File details
Details for the file endereco-0.0.6-py3-none-any.whl.
File metadata
- Download URL: endereco-0.0.6-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a0d664713336c98eab24deb212769fe05e60528c8977f0777bcde9829b5168
|
|
| MD5 |
96044d95a81d1c192e1391fcf621372f
|
|
| BLAKE2b-256 |
d99cae2c08c0bfc77a15502a4e75257978e60be47c041b848931d44542de2199
|