Um simples modulo para obter informacoes de um CEP
Project description
Py-Cep
Obtem informacoes de CEPs do Brasil
Pre requisitos
- Instalacao de qualquer versao do Python (http://www.python.org/download)
Instalacao das dependencias
$ pip install -r requirements.txt
Utilizacao
>>> from pycep import PyCep
>>> cep1 = PyCep('59104210')
>>> cep1.dadosCep
{'cep': '59104-210', 'logradouro': 'Rua Alvorada', 'complemento': '', 'bairro': 'Igapo', 'localidade': 'Natal', 'uf': 'RN', 'ibge': '2408102', 'gia': '', 'ddd': '84', 'siafi': '1761'}
>>> cep1.dadosCep['localidade']
'Natal'
>>> cep1.dadosCep['uf']
'RN'
>>> cep1.dadosCep.keys()
dict_keys(['cep', 'logradouro', 'complemento', 'bairro', 'localidade', 'uf', 'ibge', 'gia', 'ddd', 'siafi'])
>>> cep1.dadosCep.values()
dict_values(['59104-210', 'Rua Alvorada', '', 'Igapo', 'Natal', 'RN', '2408102', '', '84', '1761'])
>>>
Licenca
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
Py-Cep-1.0.5.tar.gz
(2.4 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 Py-Cep-1.0.5.tar.gz.
File metadata
- Download URL: Py-Cep-1.0.5.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1c7d599bcb55f118c9d94c37f76f2a77b052bd7b18eb432c6f8d321797e8ea3
|
|
| MD5 |
d620ba9c681638f87dfba125d23c244f
|
|
| BLAKE2b-256 |
8f15573ab4f41a37f8113a07d74885ba6788799dcc6d99b04197c87556c6a1d2
|
File details
Details for the file Py_Cep-1.0.5-py3-none-any.whl.
File metadata
- Download URL: Py_Cep-1.0.5-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a01f11a5b7b74b19d65dba5f8b9a24648407df5ccd9b4fb639e98df47332f84
|
|
| MD5 |
2183d4ae3ed00477a955758b546105c2
|
|
| BLAKE2b-256 |
7bdf5c9862f491b29ec3d17894183c9bec656dfda366458d83117d1149172766
|