Skip to content

neilalbrock/python-uic920

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-uic920 - Standalone UIC 920-14 country definitions

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')

About

Standalone UIC 920-14 country definitions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages