python的巴西基本词汇

brasil.vocab的Python项目详细描述


Overview

此包旨在为python提供与巴西相关的基本词汇表 开发商

它是用巴西葡萄牙语写的。

bug跟踪器和代码库可以在GitHub

Vocabularies available

Geographic information

  • 国家(巴西葡萄牙语为ISO 3166)
  • 州(巴西州)
  • 城市(巴西城市,按州组织)
  • 城市(巴西城市)

Telecom information

  • 区号(地理代码a.k.a ddd)
  • 非地理代码(0x00前缀)
  • 代码(地理+非地理代码)

Requirements

  • Python 2.4

Installation

在python包上安装:

easy_install brasil.vocab

将其添加到安装需要在另一个python包中(在setup.py中):

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

Basic usage

安装后,我们只需导入并使用:

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

Sponsoring

本产品的开发由:

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]

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在数据库中插入行时自动发送电子邮件?   从进程输出读取的Java问题   java质疑StyledDocument和JTextPane之间的关系,以及接口的正确使用   java错误getPlayer(args[0]);   java如何使Spring引导在重新打包的WAR中包含清单文件?   Java中的除法与模   java使用2d数组和JfreeChart制作散点图   java扩展SonarQube FindBugs插件和自定义FindBugs插件   javaspring:hibernate+ehcache   具有不正确的equals和HashCode实现的java HashMap   java Jaspersoft报告网。旧金山。jasperreports。发动机例外:net。旧金山。jasperreports。发动机填满JRepressionEvalException:计算表达式时出错   java如果输入与其变量不匹配,如何添加错误   在java中使用简单数组[]实现队列   无法启动上下文路径/hsx上的java FAIL应用程序