Skip to main content

Package that searches for the cheapest airplane flights per kilometer.

Project description

flight-optimizer

Command Line Interface (CLI) that searches for the cheapest airplane flights per kilometer.

Installation:

pip install flight-optimizer

requires python >= 3.6

Usage:

$ flight_optimizer --from paris --to "new york" --to londo --to moscow --all-destinations --explain-result

Output:

From Paris, Paris Orly:
To New York, John F. Kennedy International              $381 / 5834 km       = $0.07 per km
To London, Heathrow                                     $340 / 367 km        = $0.93 per km
To Moscow, Domodedovo International                     currently there is no any flights.

Explanation and suggestions:
City "londo" was misspelled. It was assumed as "London" in United Kingdom.
Maybe you meant next options: "East London" in South Africa, "Londolozi Private Game Reserve" in South Africa, "London" in Canada, "New London" in United States

Options:

  -f, --from TEXT         Departure City  [required]

  -t, --to TEXT           Destination City (can be multiple)  [required]

  -a, --all-destinations  Shows flights for every destination. 
                          (default - shows only the best destination)

  -e, --explain-result    If entered cities were misspelled, then it explains
                          what cities were searched and suggests correct city
                          name options

Credits

Developed by Erik Duisheev

Inspired by B12

Project details


Download files

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

Source Distribution

flight-optimizer-0.2.0.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

flight_optimizer-0.2.0-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

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