Skip to main content

Basic Brazilian vocabularies for Python

Project description

Brazilian Vocabularies

Overview

This package aims to provide basic vocabularies related to Brazil for Python developers.

It’s written in Brazilian Portuguese.

Vocabularies available

Geographic information

  • Countries (ISO 3166 in Brazilian Portuguese)

  • States (Brazilian states)

  • Cities (Brazilian cities, organized by state)

Telecom information

  • Area codes

Requirements

  • Python 2.4

Installation

Installing on your Python packages:

easy_install brasil.vocab

Adding it to install_requires in another Python package (in setup.py):

install_requires=[
    'setuptools',
    # -*- Extra requirements: -*-
    'brasil.vocab'
],

Basic usage

After installing it we just need to import it and use:

>>> from brasil.vocab.geo import uf
>>> len(uf)
27
>>> print uf[0]
('AC', u'Acre')

Sponsoring

Development of this product was sponsored by :

Credits

  • Simples Consultoria (products at simplesconsultoria dot com dot br) - Implementation

Changelog

0.5 (2011-05-24)

  • Countries [erico_andrei]

  • Brazilian States and Cities [lepri]

  • Initial implementation [erico_andrei]

  • Area Codes [erico_andrei]

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

brasil.vocab-0.5.tar.gz (93.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page