Skip to main content

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.

Metadata

Release files for irp 0.4.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.4.0
File Size Uploaded
irp-0.4.0.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for irp 0.4.0
File Interpreter ABI Platform
irp-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / irp-0.4.0.tar.gz

Download URL irp-0.4.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
04290cfd230a43a605be9bee3bd29bffd8adc87cfdedb4c1e4850dae4f345f1d
BLAKE2b-256 checksum
How to use checksums
16ffc81b5eb468e6be0d58a62914b316684a2c99a6cd8a3d4c602551565c7ec3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / irp-0.4.0-py3-none-any.whl

Download URL irp-0.4.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b5cedab49aec590ba01527a70e591fac9448434633accb4c9280348cd7ab4f0
BLAKE2b-256 checksum
How to use checksums
f6af196a4a2236acfa6e982f537207b4570c0c33b76914a3efe66ae17e0503d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.6.0

2 release files

0.5.0

2 release files

This release

0.4.0 This release

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