pytornado.database package

Submodules

pytornado.database.tools module

PyTornado database tools

Developed for Airinnova AB, Stockholm, Sweden.

pytornado.database.tools.get_aircraft_db_path()

Return the absolute path of the aircraft database

Returns:
path_aircraft_db:
 (str) absolute path
pytornado.database.tools.get_aircraft_file_path(aircraft_name)

Return the full aircraft file path for given short name

Args:
aircraft_name:(str) Short name of the aircraft
Returns:
path:(str) Full file path (or None if file not found)
Raises:
FileNotFoundError:
 If no corresponding file can be located
pytornado.database.tools.list_aircraft_names()

Return a list of available aircraft in the database (short names)

Returns:
names_aircraft:(list) List with names of aircraft
pytornado.database.tools.list_full_aircraft_paths()

List aircraft files in the database

Returns:
aircraft:(list) Aircraft paths
pytornado.database.tools.print_available_aircraft()

Print a list of available aircraft to stdout

Module contents