Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Geopolitical Entities, Names and Codes (GENC)

Project Description

Genc provides the information in the Geopolitical Entities, Names and Codes (GENC) standard as a Python distribution.


$ pip install genc


>>> import genc
>>> genc.region_by_alpha3('DEU')
Region(alpha3='DEU', alpha2='DE', numeric='276', name='Germany',
       uppername='GERMANY', fullname='Federal Republic of Germany')

>>> genc.region_by_alpha2('DE').name

>>> genc.region_by_name('germany').alpha2

>>> genc.region_by_name('unknown region') is None

>>> for region in genc.REGIONS:
...     # do something
...     pass


genc is offered under the Apache License 2.0.


0.2 (2015-09-22)

  • Ensure that all attributes are proper Unicode.
  • Add a JSON version of the subdivision data.

0.1 (2015-09-04)

  • Initial release.

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(17.7 kB) Copy SHA256 Hash SHA256
Source None Sep 22, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers