Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Converts international vehicle license codes to 3-letter ISO3166-1 alpha-3 country codes

Project description

International Vehicle Registration Codes to ISO3166 3-letter Country code converter

Standalone license plate country code converter. Based on a International Vehicle Registration Code, i.e., 'D' for Germany, it will return 'DEU' as 3-letter ISO3166-1 alpha-3 code.

You may want to use ISO166 Python lib to get the Country's name or numeric code.

Installation

$ pip install ivrc2country

Usage

>>> import ivrc2country
>>> ivrc2country.ivrcodes.get('D')
IVRCode(ivrc='D', iso3166='DEU')

>>> ivrc2country.ivrc_by_iso3166.get('DEU')
IVRCode(ivrc='D', iso3166='DEU')

Get political name of the issuing country

>>> import ivrc2country
>>> import iso3166
>>> r = ivrc2country.ivrcodes.get('D')
>>> iso3166.countries_by_alpha3.get(r.iso3166)
Country(name='Germany', alpha2='DE', alpha3='DEU', numeric='276', apolitical_name='Germany')

Keywords

  • Länderkennzeichen nach ISO3166-1 Ländercode Konverter
  • Autokennzeichen Land
  • license plate country converter
  • distinguishing signs used on vehicles in international traffic

Project details


Download files

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

Files for ivrc2country, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size ivrc2country-0.1.2-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ivrc2country-0.1.2.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page