Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install brasil.vocab

How to install brasil.vocab

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install brasil.vocab
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.8 Available View build log
0.7 Available View build log
0.6 Available View build log
Windows (64-bit)
0.8 Available View build log
0.7 Available View build log
0.6 Available View build log
Mac OS X (10.5+)
0.8 Available View build log
0.7 Available View build log
0.6 Available View build log
Linux (32-bit)
0.8 Available View build log
0.7 Available View build log
0.6 Available View build log
Linux (64-bit)
0.8 Available View build log
0.7 Available View build log
0.6 Available View build log
 
License
GPL
Dependencies
Lastest release
version 0.8 on Dec 21st, 2011

Overview

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

It's written in Brazilian Portuguese.

Bug tracker and code repository can be found at GitHub

Vocabularies available

Geographic information
  • Countries (ISO 3166 in Brazilian Portuguese)
  • States (Brazilian states)
  • Cities (Brazilian cities, organized by state)
  • Cities (Brazilian cities)
Telecom information
  • Area codes (Geographic Codes a.k.a DDD)
  • Non Geographic Codes (0x00 prefixes)
  • Codes (Geographic + Non Geographic 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.8 (2011-12-20)
  • Added tests [ericof]
  • Added codes vocabulary to telecom (cng + ddd)[ericof]
  • Added cng vocabulary to telecom [ericof]
  • DDD vocabulary now do not provide cng prefixes (0x00) [ericof]
0.7 (2011-05-26)
  • Fixing typo in Cities vocabulary [erico_andrei]
0.6 (2011-05-25)
  • Fixing Cities vocabularies [erico_andrei]
0.5 (2011-05-24)
  • Countries [erico_andrei]
  • Brazilian States and Cities [lepri]
  • Initial implementation [erico_andrei]
  • Area Codes [erico_andrei]

Subscribe to package updates

Last updated Dec 21st, 2011

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.