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 iatacodes.org $ 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'
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
irp-0.3.0.tar.gz
(1.9 kB
view hashes)
Built Distribution
irp-0.3.0-py3-none-any.whl
(3.1 kB
view hashes)