Self-contained ISO 3166-1 country definitions.
Project description
- Version:
- 0.5
ISO 3166-1 defines two-letter, three-letter, and three-digit country codes. python-iso3166 is a self-contained module that converts between these codes and the corresponding country name.
Installation
$ pip install iso3166
Usage
>>> from iso3166 import countries >>> >>> countries.get('us') Country(name=u'United States', alpha2='US', alpha3='USA', numeric='840') >>> countries.get('ala') Country(name=u'\xc5land Islands', alpha2='AX', alpha3='ALA', numeric='248') >>> countries.get(8) Country(name=u'Albania', alpha2='AL', alpha3='ALB', numeric='008')
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
iso3166-0.5.tar.gz
(7.0 kB
view details)
File details
Details for the file iso3166-0.5.tar.gz
.
File metadata
- Download URL: iso3166-0.5.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e02cc89563822aa96679ce96f48e178d58a3b6d13b30284e33b60719083c8d4 |
|
MD5 | 3c06c1987a2944968304ac3b1279d64a |
|
BLAKE2b-256 | 1edb4e6f29bf5504a84fcc140d5ababe3b1c596859dec8b06d3022f6658d336e |