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'
NOTE We’re ATM bypassing iatacodes.org 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.
Source Distribution
irp-0.4.0.tar.gz
(2.0 kB
view details)
Built Distribution
irp-0.4.0-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file irp-0.4.0.tar.gz
.
File metadata
- Download URL: irp-0.4.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
04290cfd230a43a605be9bee3bd29bffd8adc87cfdedb4c1e4850dae4f345f1d
|
|
MD5 |
2cac3d40ea504758562ce53c86a2f7b7
|
|
BLAKE2b-256 |
16ffc81b5eb468e6be0d58a62914b316684a2c99a6cd8a3d4c602551565c7ec3
|
File details
Details for the file irp-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: irp-0.4.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4b5cedab49aec590ba01527a70e591fac9448434633accb4c9280348cd7ab4f0
|
|
MD5 |
a6399825d6704c67e910788e13c277f4
|
|
BLAKE2b-256 |
f6af196a4a2236acfa6e982f537207b4570c0c33b76914a3efe66ae17e0503d2
|