Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/fr24sdk/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# SPDX-License-Identifier: MIT
"""Exposes data models for the Flightradar24 SDK."""

from .flight_category import FlightCategory
from .airline import AirlineLight
from .airport import AirportFull, AirportLight, Country, Timezone
from .flight import (
Expand All @@ -27,6 +28,7 @@

__all__ = [
"AirlineLight",
"FlightCategory",
"AirportFull",
"AirportLight",
"Country",
Expand Down
27 changes: 27 additions & 0 deletions src/fr24sdk/models/flight_category.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-FileCopyrightText: Copyright Flightradar24
#
# SPDX-License-Identifier: MIT
"""Flight category enumeration for the Flightradar24 SDK."""

from enum import Enum


class FlightCategory(Enum):
"""Enumeration of FlightRadar24 flight categories.

Maps character literals used by the FR24 API to identify different
types of aircraft and flight operations.
"""

PASSENGER = "P"
CARGO = "C"
MILITARY_AND_GOVERNMENT = "M"
BUSINESS_JETS = "J"
GENERAL_AVIATION = "T"
HELICOPTERS = "H"
LIGHTER_THAN_AIR = "B"
GLIDERS = "G"
DRONES = "D"
GROUND_VEHICLES = "V"
OTHER = "O"
NON_CATEGORIZED = "N"