Skip to main content

Save (Heathrow) Airport Arrivals and Departures to CSV.

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

flight_tables-1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

flight_tables-1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file flight_tables-1.0.tar.gz.

File metadata

  • Download URL: flight_tables-1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for flight_tables-1.0.tar.gz
Algorithm Hash digest
SHA256 9af8477596b24d727659be36e4d8283325fa65b9f1a9574026f416afb01fc85e
MD5 e2c915f2007e82b36f08af8d2d2e894b
BLAKE2b-256 047885ad002fab667987844cc398c275f526e54bf3102c2ad1ec0eecb4157dc8

See more details on using hashes here.

File details

Details for the file flight_tables-1.0-py3-none-any.whl.

File metadata

  • Download URL: flight_tables-1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for flight_tables-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5be3c406d746237a04dec07e47dbc02d5d4395210320b851ccf2e47050c944c6
MD5 613d6b58689ee9311580470490422c9f
BLAKE2b-256 d62ff8b6632e00bcfd789bc616b96876a4b1adeab6d762a79d21b181d80ff79b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page