skytracker.models.api.aviation_edge.AviationEdgeAirplane#
- class skytracker.models.api.aviation_edge.AviationEdgeAirplane(*, airplaneIataType: str | None, airplaneId: int, codeIataAirline: str | None, codeIataPlaneLong: str, codeIataPlaneShort: str, codeIcaoAirline: str | None, constructionNumber: str | None, deliveryDate: datetime | None, enginesCount: int | None, enginesType: str | None, firstFlight: datetime | None, hexIcaoAirplane: str | None, lineNumber: str | None, modelCode: str | None, numberRegistration: str, numberTestRgistration: str | None, planeAge: int | None, planeClass: str | None, planeModel: str, planeOwner: str | None, planeSeries: str | None, planeStatus: str | None, productionLine: str | None, registrationDate: datetime | None, rolloutDate: datetime | None)#
Bases:
APIBaseModelAviation Edge API airplane data
Properties
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
airplane type IATA code
Aviation Edge airplane ID
airline IATA code
airplane IATA code (long)
airplane IATA code (short)
airline ICAO code
airplane manufacturer serial number
date aircraft was delivered to operator
number of engines
engine type
date of first flight
airplane ICAO 24-bit address (hex)
airplane manufacturer line number
airplane manufacturer model code
aircraft tail number/registration
test registration (before delivery)
airplane age [year]
airplane class
airplane family model
current owner of aircraft
airplane series variant number
airplane status
airplane subfamily production line
date when airplane was registered
date when aircraft was rolled out
Methods
Parse age value
Parse a date value
Parse integer value
Parse serial number value
Parse string uppercase value
- __init__(**data: Any) None#
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- classmethod parse_age(value: int | None) int | None#
Parse age value
- Parameters:
value (int | None) – age value
- Returns:
parsed age
- Return type:
int | None
- classmethod parse_date(date_value: datetime | str | None) datetime | None#
Parse a date value
- Parameters:
date_value (datetime | str | None) – date value
- Returns:
parsed date
- Return type:
datetime | None
- classmethod parse_integer(integer_value: int | str | None) int | None#
Parse integer value
- Parameters:
integer_value (int | str | None) – integer value
- Returns:
parsed integer
- Return type:
int | None
- classmethod parse_serial_number(value: str | None) str | None#
Parse serial number value
- Parameters:
value (str | None) – serial number value
- Returns:
parsed serial number
- Return type:
str | None
- classmethod parse_uppercase(value: str | None) str | None#
Parse string uppercase value
- Parameters:
value (str | None) – string value
- Returns:
uppercase string
- Return type:
str | None
- airplaneIataType: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airplane type IATA code')]#
airplane type IATA code
- Type:
str | None
- airplaneId: Annotated[int, FieldInfo(annotation=NoneType, required=True, description='Aviation Edge airplane ID')]#
Aviation Edge airplane ID
- Type:
int
- codeIataAirline: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airline IATA code')]#
airline IATA code
- Type:
str | None
- codeIataPlaneLong: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Airplane IATA code (long)')]#
airplane IATA code (long)
- Type:
str
- codeIataPlaneShort: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Airplane IATA code (short)')]#
airplane IATA code (short)
- Type:
str
- codeIcaoAirline: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airline ICAO code')]#
airline ICAO code
- Type:
str | None
- constructionNumber: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airplane manufacturer serial number')]#
airplane manufacturer serial number
- Type:
str | None
- deliveryDate: Annotated[datetime | None, FieldInfo(annotation=NoneType, required=True, description='Date aircraft was delivered to operator')]#
date aircraft was delivered to operator
- Type:
datetime
- enginesCount: Annotated[int | None, FieldInfo(annotation=NoneType, required=True, description='Number of engines')]#
number of engines
- Type:
int | None
- enginesType: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Engine type')]#
engine type
- Type:
str | None
- firstFlight: Annotated[datetime | None, FieldInfo(annotation=NoneType, required=True, description='Date of first flight')]#
date of first flight
- Type:
datetime | None
- hexIcaoAirplane: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airplane ICAO 24-bit address (hex)')]#
airplane ICAO 24-bit address (hex)
- Type:
str | None
- lineNumber: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airplane manufacturer line number')]#
airplane manufacturer line number
- Type:
int | None
- modelCode: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airplane manufacturer model code')]#
airplane manufacturer model code
- Type:
str | None
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- numberRegistration: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Aircraft tail number/registration')]#
aircraft tail number/registration
- Type:
str
- numberTestRgistration: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Test registration (before delivery)')]#
test registration (before delivery)
- Type:
str
- planeAge: Annotated[int | None, FieldInfo(annotation=NoneType, required=True, description='Airplane age [year]')]#
airplane age [year]
- Type:
int | None
- planeClass: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airplane class')]#
airplane class
- Type:
str | None
- planeModel: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Airplane family model')]#
airplane family model
- Type:
str
- planeOwner: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Current owner of aircraft')]#
current owner of aircraft
- Type:
str | None
- planeSeries: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airplane series variant number')]#
airplane series variant number
- Type:
str | None
- planeStatus: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airplane status')]#
airplane status
- Type:
str | None
- productionLine: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, description='Airplane subfamily production line')]#
airplane subfamily production line
- Type:
str | None
- registrationDate: Annotated[datetime | None, FieldInfo(annotation=NoneType, required=True, description='Date when airplane was registered')]#
date when airplane was registered
- Type:
datetime | None
- rolloutDate: Annotated[datetime | None, FieldInfo(annotation=NoneType, required=True, description='Date when aircraft was rolled out')]#
date when aircraft was rolled out
- Type:
datetime | None