flight-optimizer-0.2.0
توضیحات
Package that searches for the cheapest airplane flights per kilometer.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flight-optimizer-0.2.0 |
| نام | flight-optimizer |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Erik Duisheev |
| ایمیل نویسنده | erik.duisheev@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/flight-optimizer/ |
| مجوز | UNLICENSE |
# flight-optimizer
**Command Line Interface (CLI)** that searches for the cheapest airplane flights per kilometer.
### Installation:
```Shell
pip install flight-optimizer
```
requires python >= 3.6
### Usage:
```Shell
$ flight_optimizer --from paris --to "new york" --to londo --to moscow --all-destinations --explain-result
```
### Output:
```Shell
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:
```Shell
-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](https://www.b12.io/about)
نیازمندی
| مقدار | نام |
|---|---|
| ==7.1.2 | click |
| ==5.4.3 | pytest |
| ==3.1.1 | pytest-mock |
| ==0.6 | dataclasses |
| ==2.24.0 | requests |
| ==2.2.0 | haversine |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl flight-optimizer-0.2.0:
pip install flight-optimizer-0.2.0.whl
نصب پکیج tar.gz flight-optimizer-0.2.0:
pip install flight-optimizer-0.2.0.tar.gz