Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

easy_zipcode is a lightweight python app for retrieving brazilian address from a zip code

Project Description

easyzipcode é uma lib Python usada para retornar informações de um determinado endereço a partir do CEP, com dados provenientes do webservice easyzipcode.io

Para instalar o easyzipcode, faça o download zip através do github:

https://github.com/stored/easy_zipcode

Feito o download, descompacte-o no diretório de seu projeto e digite o seguinte comando:

python setup.py install

Você também pode instalar através do pacote pip:

pip install easy_zipcode

Usando no terminal:

>>> from easy_zipcode import EasyZipCode
>>> print EasyZipCode.get_zipcode('14415000', token='3850de3a-2422-482...')
{"city": "Patroc\u00ednio Paulista", "ibge": "3536307", "area": "", "complement": "", "address": "", "zip_code": "14415000"}

No arquivo settings.py de seu projeto, adicione a app easyzipcode e o token gerado:

EASY_ZIPCODE_TOKEN = '3850de3a-2422-482d-92fc-d1a48a71eba1'

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    ...
    'easy_zipcode',
    ...
)

Adicione a seguinte linha no arquivo urls.py do seu projeto:

urlpatterns = patterns('',
    ...
    url(r'^easyzipcode/', include(easy_zipcode.urls())),
)
Release History

Release History

This version
History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
easy_zipcode-0.1.7.tar.gz (2.8 kB) Copy SHA256 Checksum SHA256 Source Jun 16, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting