Flight Tables: Arrivals and Departures Parsing Toolkit
What is It?
Flight Tables lets you save public Arrivals and Departures infomation to a standardised CSV file.
Current version is for Heathrow Airport.
Installation
$ pip install flight_tables
Command Line Execution
Save yesterday's Arrivals and Departures to CSV:
python -m flight_tables.main
If you want to specify a date, add "yyyy-mm-dd" to the command. It will only work for the past few days, where data is still available from the airport API.
Script Execution
Run the script below, but replace "yyyy-mm-dd" with the date you want. It will only work for the past few days, where data is still available from the airport API.
from flight_tables.flight_tables import FlightTables
# Save Arrivals CSV
FlightTables.arrivals_csv("yyyy-mm-dd")
# Save Departures CSV
FlightTables.departures_csv("yyyy-mm-dd")
CSV Output Format
The output is a csv with these columns:
| flight_id | origin | destination | status | scheduled_datetime | actual_datetime | delay_mins | code_share |
|---|---|---|---|---|---|---|---|
| BA028 | HKG | LHR | Landed | 03/04/2020 05:30 | 03/04/2020 05:39 | 9 | No |
| VA5341 | HKG | LHR | Landed | 03/04/2020 05:30 | 03/04/2020 05:29 | -1 | Alt-Code |
| BA064 | NBO | LHR | Cancelled | 03/04/2020 06:20 | Main-Code | ||
| ... |
Output is saved to your working directory.
Test Suite
Documentation here
Background:
The initial motivation was to analyse flight punctuality. When you google for this most results are not detailed enough to compare one flight ID against another.
Metadata
Release files for flight-tables 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flight_tables-1.0.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flight_tables-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / flight_tables-1.0.tar.gz
| Download URL | flight_tables-1.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9af8477596b24d727659be36e4d8283325fa65b9f1a9574026f416afb01fc85e
|
|
BLAKE2b-256 checksum How to use checksums |
047885ad002fab667987844cc398c275f526e54bf3102c2ad1ec0eecb4157dc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.0
|
Release files / flight_tables-1.0-py3-none-any.whl
| Download URL | flight_tables-1.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5be3c406d746237a04dec07e47dbc02d5d4395210320b851ccf2e47050c944c6
|
|
BLAKE2b-256 checksum How to use checksums |
d62ff8b6632e00bcfd789bc616b96876a4b1adeab6d762a79d21b181d80ff79b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.0
|