Skip to main content

Self contained UIC 920-14 country definitions

Project description

Author:

Neil Albrock

Version:
0.1.0

UIC 920-14 defines numeric country codes for use in international rail data exchange. python-uic920 is a self contained module that converts between these codes and the corresponding ISO-3166-1 alpha-2 code, allowing for quick cross-referencing. UIC country names are also supplied for reference.

Installation

$ pip install uic920

Usage

>>> from uic920 import countries
>>>
>>> countries.get(70)
Country(name=u'United Kingdom of Great Britain and Northern Ireland', iso='GB', uic='70')
>>> countries.get('es')
Country(name=u'Spain', iso='ES', uic='71')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uic920-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page