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.6.0.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
irp-0.6.0-py3-none-any.whl
(3.8 kB
view details)
File details
Details for the file irp-0.6.0.tar.gz.
File metadata
- Download URL: irp-0.6.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b003344cdf39ce0bcdcee07b9e985ce7b6f088d55b2b96c160a471b492d31da
|
|
| MD5 |
c41d8bcf9f2987fa59259731a797a3d7
|
|
| BLAKE2b-256 |
b1a4a74ebbad3fc2f8f1fb447ea05af03dc33152577a352f2860be67890d064b
|
File details
Details for the file irp-0.6.0-py3-none-any.whl.
File metadata
- Download URL: irp-0.6.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fe0507c7eb15c073ccef6ce0ea90d7cf9f5e64538f0a3f01b5ac01947fa68f2
|
|
| MD5 |
b7f203f1313a1c6c626103587a0f00fe
|
|
| BLAKE2b-256 |
048c570984abc93d980dab9c016212c7d283d23e3b79d231ea0cd3e3a9d439f8
|