Skip to main content

Basic Brazilian vocabularies for Python

Project description


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)


  • Python 2.4


Installing on your Python packages:

easy_install brasil.vocab

Adding it to install_requires in another Python package (in

    # -*- Extra requirements: -*-

Basic usage

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

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


Development of this product was sponsored by :


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


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]

Project details

Download files

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

Files for brasil.vocab, version 0.8
Filename, size File type Python version Upload date Hashes
Filename, size brasil.vocab-0.8.tar.gz (165.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page