Skip to main content

Um simples modulo para obter informacoes de um CEP

Project description

Py-Cep

PyPI version PyPi Downloads Python License

Alerts Quality

Obtem informacoes de CEPs do Brasil

Pre requisitos

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


Licenca 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

Py-Cep-1.0.5.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Py_Cep-1.0.5-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for Py-Cep-1.0.5.tar.gz
Algorithm Hash digest
SHA256 a1c7d599bcb55f118c9d94c37f76f2a77b052bd7b18eb432c6f8d321797e8ea3
MD5 d620ba9c681638f87dfba125d23c244f
BLAKE2b-256 8f15573ab4f41a37f8113a07d74885ba6788799dcc6d99b04197c87556c6a1d2

See more details on using hashes here.

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

Hashes for Py_Cep-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1a01f11a5b7b74b19d65dba5f8b9a24648407df5ccd9b4fb639e98df47332f84
MD5 2183d4ae3ed00477a955758b546105c2
BLAKE2b-256 7bdf5c9862f491b29ec3d17894183c9bec656dfda366458d83117d1149172766

See more details on using hashes here.

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