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.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.
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.2.zip
(17.7 kB
view details)
File details
Details for the file genc-0.2.zip.
File metadata
- Download URL: genc-0.2.zip
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf568548cd9c30e2a059110eeb33cecc7fb74875cf10e5c897caf6bc762b6221
|
|
| MD5 |
bdc7a3deadc6016c10bc40f2349fdd0b
|
|
| BLAKE2b-256 |
68f695a1ae829a2a7081aa7bc23828eb30e3a33b4e660c66ad7403dfe1a565c5
|