https://github.com/spoqa/iso-3166-1
ISO 3166-1 country codes
https://github.com/spoqa/iso-3166-1
country-codes enum i18n iso3166 python
Last synced: about 1 year ago
JSON representation
ISO 3166-1 country codes
- Host: GitHub
- URL: https://github.com/spoqa/iso-3166-1
- Owner: spoqa
- Created: 2015-08-19T11:19:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T09:31:31.000Z (over 10 years ago)
- Last Synced: 2025-06-28T11:12:21.772Z (about 1 year ago)
- Topics: country-codes, enum, i18n, iso3166, python
- Language: Python
- Homepage: https://pypi.python.org/pypi/iso-3166-1
- Size: 10.7 KB
- Stars: 20
- Watchers: 29
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
ISO 3166-1
~~~~~~~~~~~~
.. image:: https://badge.fury.io/py/iso-3166-1.svg
:target: http://badge.fury.io/py/iso-3166-1
.. image:: https://travis-ci.org/spoqa/iso-3166-1.svg
:target: https://travis-ci.org/spoqa/iso-3166-1
define codes for the names of countries as a enum_ it supports python2.7, 3.3
with enum34_ of course support python3.4 as well.
.. _enum: https://docs.python.org/3/library/enum.html
.. _enum34: https://pypi.python.org/pypi/enum34
.. code-block::
>>> from iso3166 import Country
>>> Country.kr
>>> Country.kr.alpha2
KR
>>> Country.kr.alpha3
KOR
>>> Country.kr.numeric
410
>>> Country.kr.english_short_name
Korea (Republic of)
Written by `Kang Hyojun`_. Distributed under Public Domain.
.. _Kang Hyojun: http://github.com/admire93