Skip to main content

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)

Source distribution for irp 0.6.0
File Size Uploaded
irp-0.6.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for irp 0.6.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page