Skip to content

iatacodes/python-sdk

 
 

Repository files navigation

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

About

Python client for AirLabs API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%