To Run:
- Install requiremnts
pip install -r requirements.txt
- All necessary data for
app/
is in thedata
directory - Navigate to the
app/
directory - From the CLI, run
python cli.py --help
for a list of commands
flight-legs
- Given a three-letter airport code, calculate the total inbound and outbound seats for that airport
- Options include:
--airport
/-a
,--structure
/-s
--structure
flag is used for the output formatdf
- DataFramedict
-> Dictmatrix
-> Matrix- Data returned for Matrix is returned as
(Row Index, Column Index) Total Seats
where Row Index is the specified airport and Column Index represents the detination airport
- Data returned for Matrix is returned as
- If not specifying an aiport, you can use
--num
to change the number of output rows for thedf
option only
airport-from-index
- Given an integer value, find the corresponding airport code
- Intended as a utility to lookup the airport corresponding to the column index of the related flight data
- Options include:
--idx
/-i
- Example:
python cli.py airport-from-index -i 0
->LHR