Skip to main content

REST API Client for IATA Codes database

Project description

Build Status codecov Coverage Status

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'))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for iata_codes, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size iata_codes-0.0.5-py2.py3-none-any.whl (4.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size iata_codes-0.0.5.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page