IRP
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.
Release files for irp 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| irp-0.6.0.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| irp-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / irp-0.6.0.tar.gz
| Download URL | irp-0.6.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b003344cdf39ce0bcdcee07b9e985ce7b6f088d55b2b96c160a471b492d31da
|
|
BLAKE2b-256 checksum How to use checksums |
b1a4a74ebbad3fc2f8f1fb447ea05af03dc33152577a352f2860be67890d064b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / irp-0.6.0-py3-none-any.whl
| Download URL | irp-0.6.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1fe0507c7eb15c073ccef6ce0ea90d7cf9f5e64538f0a3f01b5ac01947fa68f2
|
|
BLAKE2b-256 checksum How to use checksums |
048c570984abc93d980dab9c016212c7d283d23e3b79d231ea0cd3e3a9d439f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |