Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

iso-3166-1

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iso-3166-1

ISO 3361-1 Country code package for Python

pipPyPI
Version
0.0.3
Maintainers
1

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>
   >>> Country.kr.alpha2
   KR
   >>> Country.kr.alpha3
   KOR
   >>> Country.kr.numeric
   410
   >>> Country.kr.english_short_name


Written by `Kang Hyojun`_.  Distributed under Public Domain.

.. _Kang Hyojun: http://github.com/admire93

Keywords

internationalization i18n country iso3166

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts