skytracker.models.airline.AirlineType#

class skytracker.models.airline.AirlineType(*values)#

Bases: IntEnum

Airline type

Properties

SCHEDULED

airline with regular scheduled flights

CHARTER

airline with (often contracted) non-scheduled flights

CARGO

airline transporting freight

VIRTUAL

airline that does not operate aircraft directly

LEISURE

airline targets primarily holiday destinations

GOVERNMENT

airline owned by government

PRIVATE

non-commercial operator

MANUFACTURER

aircraft manufacturer

SUPPLIER

company supplying aviation services

DIVISION

subdivision of larger airline

Methods

from_string

Get airline type from a string

__init__(*args, **kwds)#
classmethod from_string(value: str) int#

Get airline type from a string

Parameters:

value (str) – string to parse

Returns:

airline type

Return type:

int

CARGO: int = 2#

airline transporting freight

Type:

int

CHARTER: int = 1#

airline with (often contracted) non-scheduled flights

Type:

int

DIVISION: int = 9#

subdivision of larger airline

Type:

int

GOVERNMENT: int = 5#

airline owned by government

Type:

int

LEISURE: int = 4#

airline targets primarily holiday destinations

Type:

int

MANUFACTURER: int = 7#

aircraft manufacturer

Type:

int

PRIVATE: int = 6#

non-commercial operator

Type:

int

SCHEDULED: int = 0#

airline with regular scheduled flights

Type:

int

SUPPLIER: int = 8#

company supplying aviation services

Type:

int

VIRTUAL: int = 3#

airline that does not operate aircraft directly

Type:

int