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.
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.1 (2015-09-04)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
genc-0.1.zip
(17.4 kB
view details)
File details
Details for the file genc-0.1.zip.
File metadata
- Download URL: genc-0.1.zip
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8581eb3e0217f513d65fb2f693a029c874cf8a62afca25d65f138000af44005d
|
|
| MD5 |
1badc524a6822a8417d6121aaf480e35
|
|
| BLAKE2b-256 |
4cc28cbf7681229d174f1ba8c64c6cb62ae75c1f8699b6f47264275e986a38b3
|