Module pyatv.settings
Settings for configuring pyatv.
Classes
class AirPlaySettings (**data: Any)-
Settings related to AirPlay.
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.__init__uses__pydantic_self__instead of the more commonselffor the first arg to allowselfas a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var credentials -> Optional[str] = Nonevar identifier -> Optional[str] = Nonevar password -> Optional[str] = None
class AirPlayVersion (value, names=None, *, module=None, qualname=None, type=None, start=1)-
AirPlay version to use.
Ancestors
- builtins.str
- enum.Enum
Class variables
var Auto = autovar V1 = 1var V2 = 2
class CompanionSettings (**data: Any)-
Settings related to Companion.
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.__init__uses__pydantic_self__instead of the more commonselffor the first arg to allowselfas a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var credentials -> Optional[str] = Nonevar identifier -> Optional[str] = None
class DmapSettings (**data: Any)-
Settings related to DMAP.
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.__init__uses__pydantic_self__instead of the more commonselffor the first arg to allowselfas a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var credentials -> Optional[str] = Nonevar identifier -> Optional[str] = None
class InfoSettings (**data: Any)-
Information related settings.
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.__init__uses__pydantic_self__instead of the more commonselffor the first arg to allowselfas a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var device_id -> str = FF:70:79:61:74:76var mac -> pydantic_extra_types.mac_address.MacAddress = 02:70:79:61:74:76var model -> str = iPhone10,6var name -> str = pyatvvar os_build -> str = 18G82var os_name -> str = iPhone OSvar os_version -> str = 14.7.1
class MrpSettings (**data: Any)-
Settings related to MRP.
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.__init__uses__pydantic_self__instead of the more commonselffor the first arg to allowselfas a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var credentials -> Optional[str] = Nonevar identifier -> Optional[str] = None
class ProtocolSettings (**data: Any)-
Container for protocol specific settings.
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.__init__uses__pydantic_self__instead of the more commonselffor the first arg to allowselfas a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var airplay -> AirPlaySettingsvar companion -> CompanionSettingsvar dmap -> DmapSettingsvar mrp -> MrpSettingsvar raop -> RaopSettings
class RaopSettings (**data: Any)-
Settings related to RAOP.
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.__init__uses__pydantic_self__instead of the more commonselffor the first arg to allowselfas a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var control_port -> int = 0-
Server side (UDP) port used by control server.
Set to 0 to use random free port.
var credentials -> Optional[str] = Nonevar identifier -> Optional[str] = Nonevar password -> Optional[str] = Nonevar protocol_version -> AirPlayVersion = auto-
Protocol version used.
In reality this corresponds to the AirPlay version used. Set to 0 for automatic mode (recommended), or 1 or 2 for AirPlay 1 or 2 respectively.
var timing_port -> int = 0-
Server side (UDP) port used by timing server.
Set to 0 to use random free port.
class Settings (**values: Any)-
Settings container class.
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.__init__uses__pydantic_self__instead of the more commonselffor the first arg to allowselfas a field name.Ancestors
- pydantic_settings.main.BaseSettings
- pydantic.main.BaseModel
Class variables
var info -> InfoSettingsvar protocols -> ProtocolSettings