Skip to content

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

Notifications You must be signed in to change notification settings

simplesconsultoria/brasil.vocab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brazilian Vocabularies

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

  • Countries (ISO 3166 in Brazilian Portuguese)
  • States (Brazilian states)
  • Regions (Brazilian regions, organized by federal units and vice-versa)
  • Cities (Brazilian cities, organized by state)
  • Cities (Brazilian cities)
  • 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 setup.py):

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

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')

Development of this product was sponsored by :

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages