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

test-flight-optimizer-0.0.10003b3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

test_flight_optimizer-0.0.10003b3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file test-flight-optimizer-0.0.10003b3.tar.gz.

File metadata

  • Download URL: test-flight-optimizer-0.0.10003b3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for test-flight-optimizer-0.0.10003b3.tar.gz
Algorithm Hash digest
SHA256 fa4609544fd6639e6cc1f1c7f1e46f4a5e84798aaac7e8e163e7b8c2956d0013
MD5 c847e2a3427228c764b2b5bde64d4c58
BLAKE2b-256 99185627228a14ba269da7c9992037c708a549a7359abaa8c70090a53810ce29

See more details on using hashes here.

File details

Details for the file test_flight_optimizer-0.0.10003b3-py3-none-any.whl.

File metadata

  • Download URL: test_flight_optimizer-0.0.10003b3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for test_flight_optimizer-0.0.10003b3-py3-none-any.whl
Algorithm Hash digest
SHA256 1d7a39c798267996f73989301cde3fdc3edc166c8d141823b6abe789af59d1ed
MD5 6d7577b0b3c85aa997bb08100c67adf7
BLAKE2b-256 c95a10129b4c0bbc287fa7a80fe6479ee6534981f12de7ef8efc3774ab96968a

See more details on using hashes here.

Supported by

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