rrmsutils.models.ptz package

Submodules

rrmsutils.models.ptz.position module

PTZ position model

class rrmsutils.models.ptz.position.Position(*, pan: float, tilt: float)

Bases: BaseModel

PTZ position model

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'pan': FieldInfo(annotation=float, required=True), 'tilt': FieldInfo(annotation=float, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

pan: float
tilt: float

rrmsutils.models.ptz.stream module

PTZ Stream model

class rrmsutils.models.ptz.stream.Stream(*, in_uri: str, out_port: int, out_mapping: str)

Bases: BaseModel

PTZ Stream model

in_uri: str
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'in_uri': FieldInfo(annotation=str, required=True), 'out_mapping': FieldInfo(annotation=str, required=True), 'out_port': FieldInfo(annotation=int, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

out_mapping: str
out_port: int

rrmsutils.models.ptz.zoom module

PTZ Zoom model

class rrmsutils.models.ptz.zoom.Zoom(*, zoom: float)

Bases: BaseModel

PTZ Zoom model

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'zoom': FieldInfo(annotation=float, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

zoom: float

Module contents