Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.
/ iata_codes Public archive

Python client for IATA Codes Database REST API

License

Notifications You must be signed in to change notification settings

Otetz/iata_codes

Repository files navigation

iata_codes

Build Status codecov Coverage Status Code Health

Python client for IATA Codes Database REST API

!!! Project closed !!!

IATA closed old API and now sell database at its own website: https://www.iata.org/en/services/codes/.

Features

  • Search city by IATA code
  • Search cities by country code
  • Search IATA code by name of the city

Installation

Install iata_codes package from PyPi:

pip install iata_codes

Getting started

Make sure to include this line in the beginning of your file:

from iata_codes import IATACodesClient

Set your API Key:

client = IATACodesClient('YOUR_API_KEY')

Make queries:

print(client.get(code='MOW'))
print(client.get(country_code='RU'))
print(client.get(name='Moscow'))

Links