Skip to main content

Gets possible airports for city names!

Project description

AIRPort city name resolver. And back.

This is how you use it:

$ pip install irp
$ export IATACODES_API_KEY="..."  # Get it for free at
$ ipython

In [1]: from irp import get_airports, get_name

In [2]: list(get_airports('Portland'))
Out[2]: [('PDX', 'US'), ('PTJ', 'AU'), ('PWM', 'US')]

In [3]: list(get_airports('Portland, US'))
Out[3]: [('PDX', 'US'), ('PWM', 'US')]

In [4]: list(get_airports('PDX'))
Out[4]: [('PDX', 'US')]

In [5]: list(get_airports('Isiro'))
Out[5]: [('IRP', 'CD')]

In [6]: get_name('IRP')
Out[6]: 'Isiro'

NOTE We’re ATM bypassing SSL verification. If you don’t want this, patch it, it’s probably easy but we needed a hotfix.

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 irp, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size irp-0.6.0-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size irp-0.6.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page