Skip to main content

kiwi 2021 entry task about flight route

Project description

Environment

  • python 3.9+

Doc

python -m flight_routes.main [args]

usage: main.py [-h] [--bags BAGS] [--return] csvPath origin destination

kiwi flight search

positional arguments: csvPath origin destination

optional arguments: -h, --help show this help message and exit --bags BAGS --return



# Implementation

- code is self documented

### theory

1. process inputs and csv
1. sort flight base on departure time
3. create "chain" (its list of chained flights from origin to destination of last flight in chain)
4. iterate in sorted flights and enrich chains which are in same airports as flight origin if conditions to flight are
   met
5. if destination is final target add chain to "final flight plans"
6. iterate final flight plants to resolve data needed to json export
7. create json models
8. sort base on final price
8. json dumps

---
Autor Bc. Filip Agh





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-routes-0.0.5.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file flight-routes-0.0.5.tar.gz.

File metadata

  • Download URL: flight-routes-0.0.5.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6

File hashes

Hashes for flight-routes-0.0.5.tar.gz
Algorithm Hash digest
SHA256 0c663bbd39ae8ad50e349326c36dcde1794694b12e13de7cfc1ecc986b0032ab
MD5 c2e6a8c226d44085b694a64ae62dba8f
BLAKE2b-256 4c4ef586f161ddaef55b9a1633c45c35e34c4622102e86fe9a90a0dbbee875c9

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