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.4.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.4.tar.gz.
File metadata
- Download URL: flyline-0.1.4.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 |
889c62231d15a0df7f0290dd9aafc05b5140ea43fc7ebce321661e8ec1c50f84
|
|
| MD5 |
2861d780ac59bbfe251048901fae8f54
|
|
| BLAKE2b-256 |
951b526386e7ad46af8291a447e8c139d7d22f78e1158584b9f4c218d24c7cdb
|
File details
Details for the file flyline-0.1.4-py3-none-any.whl.
File metadata
- Download URL: flyline-0.1.4-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 |
06335921ec32c54ebf061285563df3ebd131aeb7121e55caab99e411e37c0b50
|
|
| MD5 |
e9beb5b514b258b50a6469b9a3513b7f
|
|
| BLAKE2b-256 |
7f25e1cf2d01d812577df4c02649eaa8d3f0fd36256aa11093c0e6d6df7650cc
|