Metadata-Version: 2.1
Name: genc
Version: 0.2
Summary: Geopolitical Entities, Names and Codes (GENC)
Home-page: https://github.com/hannosch/genc
Author: Hanno Schlichting
Author-email: hanno@hannosch.eu
License: Apache 2.0
Keywords: country region codes names
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: Implementation :: CPython
License-File: LICENSE

====
Genc
====

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

Installation
============

::

  $ pip install genc


Usage
=====

::

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

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

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

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


License
=======

``genc`` is offered under the Apache License 2.0.


Changelog
=========

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.


