A project that allows you to plan a flight between two airports and obtain flight parameters for the selected aircraft.
from src.models.flight import Flight
flight = Flight(
dep_icao="ulli",
arr_icao="uuee",
aircraft_icao="b738"
)
The project now includes methods for both displaying and saving flight parameters. For example, the save_to_json method allows saving flight data in JSON format.
flight.print_flight_params() # Outputs data to the console
flight.save_to_json() # Saves data to json file
For example, for a flight between ULLI and UUEE using a b738 aircraft, the program can calculate the following parameters:
Aircraft: b738
ULLI lat:59.800301, lon:30.262501
UUEE lat:55.972599, lon:37.4146
Distance: 599 km
Passengers [max]: 184
Block Fuel: 6992 kg
Payload: 19136 kg
Cargo: 4784 kg
ZFW est:60818, max:62732
TOW est:67809, max:79016
LW est:65601, max:66361
.
├── docs/ # Directory for documentation and code examples.
├── src/ # Main directory for the project's source code.
│ ├── aircraft_data/ # Directory for aircraft data.
│ │ ├── json_data/ # JSON files containing aircraft data.
│ │ └── manufacturers/ # Directory for manufacturer-related files.
│ └── models/ # Directory for the classes.
└── tests/ # Directory for test files.
│
├── .env.example # Example environment variables file.
├── .gitignore # Specifies files and directories to ignore in Git.
├── example_code.py # Example code demonstrating the project's functionality.
├── LICENSE # License file for the project.
├── Маkеfile # File for managing build automation.
├── poetry.lock # File listing the exact versions of dependencies.
├── pyproject.toml # Configuration file for Poetry and project metadata.
├── setup.cfg # Configuration file for flake8 and isort.
└── README.md # Documentation file explaining the project.
Clone the repository:
git clone https://github.com/onesch/Flight-Data-Calculation-opensource.git
Install dependencies:
poetry install
Run the example code:
make run
make test
make coverage
The project was created for aviation enthusiasts, intended for flight simulators.
Make a .env
file in which you need to specify your personal API key CHECK_WX_API
.