Flyline Client Libraray
Project description
flyline_python
Flyline Python Library
Install
pip install flyline
Getting Started
import asyncio
from flyline import FlylineClient
async def main():
key = 'test_***'
async with FlylineClient(key=key) as client:
data = {
"cabin_class": "economy",
"slices": [
{
"departure": {"code": "DFW", "date": "2021-06-12"},
"arrival": {"code": "LAX"}
}
],
"passengers": [{"age": 27}],
}
seat_map = await client.get_airfares(data=data)
print(seat_map)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Endpoints
AirFare API
client.get_airfares()
AirAttribute API
client.get_airattributes_by_flight_number()
client.get_airattributes_by_route()
AirSchedule API
client.get_schedules_by_flight_number()
client.get_schedules_by_route()
AirSeatMap API
client.get_seat_map()
AirResources API
client.get_aircrafts()
client.get_aircraft()
client.get_airlines()
client.get_airline()
client.get_airports()
client.get_airport()
client.get_airports_by_city()
client.get_cities()
client.get_city()
client.get_cabin_class_mapping()
client.get_seat_types()
client.get_seat_layouts()
client.get_foods()
client.get_beverages()
client.get_entertainments()
client.get_wifis()
client.get_powers()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flyline-0.1.3.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flyline-0.1.3.tar.gz.
File metadata
- Download URL: flyline-0.1.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
434c4511edc19cd88d1f3072d338274fb4f633ef88010607c98d57200b2e6553
|
|
| MD5 |
178395ccea7ca153217a6ee773f457fb
|
|
| BLAKE2b-256 |
ac086a894038adfb67139903fa67c2cb7dfa098722e5c1cd3fed8c3ebabe75a9
|
File details
Details for the file flyline-0.1.3-py3-none-any.whl.
File metadata
- Download URL: flyline-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddcdee0132338b36a3a775f5d8bd095932cf6c78066bee46f30155eaccbc24d1
|
|
| MD5 |
f47201e0897d4022b8b88e0207d1b6c4
|
|
| BLAKE2b-256 |
3d2b014478f678550a334535fece0c6d228d3013cfbabac5d44f8d439b74f061
|