Python client for IATA Codes Database REST API
Clone or download
Pull request Compare This branch is even with Otetz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
iata_codes
tests
.coveragerc
.gitignore
.travis.yml
LICENSE.txt
MANIFEST.in
README.rst
requirements.txt
requirements_test.txt
setup.cfg
setup.py

README.rst

iata_codes

Build Status codecov Coverage Status Code Health

Python client for IATA Codes Database REST API

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