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 if the input data cannot be parsed to form a valid model.
Ancestors
- pydantic.v1.main.BaseModel
- pydantic.v1.utils.Representation
Class variables
var credentials -> str | Nonevar identifier -> str | Nonevar mrp_tunnel -> MrpTunnelvar password -> str | None
class AirPlayVersion (*args, **kwds)-
AirPlay version to use.
Ancestors
- builtins.str
- enum.Enum
Class variables
var Auto = auto-
Automatically determine what version to use.
var V1 = 1-
Use version 1 of AirPlay.
var V2 = 2-
Use version 2 of AirPlay.
class CompanionSettings (**data: Any)-
Settings related to Companion.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Ancestors
- pydantic.v1.main.BaseModel
- pydantic.v1.utils.Representation
Class variables
var credentials -> str | Nonevar identifier -> 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 if the input data cannot be parsed to form a valid model.
Ancestors
- pydantic.v1.main.BaseModel
- pydantic.v1.utils.Representation
Class variables
var credentials -> str | Nonevar identifier -> str | None
class InfoSettings (**data: Any)-
Information related settings.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Ancestors
- pydantic.v1.main.BaseModel
- pydantic.v1.utils.Representation
Class variables
var device_id -> strvar mac -> strvar model -> strvar name -> strvar os_build -> strvar os_name -> strvar os_version -> strvar rp_id -> str | None
Static methods
-
def fill_missing_rp_id(v) -
Generate a new random rp_id if it is missing.
-
def mac_validator(mac: str) -> str -
Validate MAC address to be correct.
class MrpSettings (**data: Any)-
Settings related to MRP.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Ancestors
- pydantic.v1.main.BaseModel
- pydantic.v1.utils.Representation
Class variables
var credentials -> str | Nonevar identifier -> str | None
class MrpTunnel (*args, **kwds)-
How MRP tunneling over AirPlay is handled.
Ancestors
- builtins.str
- enum.Enum
Class variables
var Auto = auto-
Automatically set up MRP tunnel if supported by remote device.
var Disable = disable-
Fully disable set up of MRP tunnel.
var Force = force-
Force set up of MRP tunnel even if remote device does not supports it.
class ProtocolSettings (**data: Any)-
Container for protocol specific settings.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Ancestors
- pydantic.v1.main.BaseModel
- pydantic.v1.utils.Representation
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 if the input data cannot be parsed to form a valid model.
Ancestors
- pydantic.v1.main.BaseModel
- pydantic.v1.utils.Representation
Class variables
var control_port -> int-
Server side (UDP) port used by control server.
Set to 0 to use random free port.
var credentials -> str | Nonevar identifier -> str | Nonevar password -> str | Nonevar protocol_version -> AirPlayVersion-
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-
Server side (UDP) port used by timing server.
Set to 0 to use random free port.
class Settings (**data: Any)-
Settings container class.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Ancestors
- pydantic.v1.main.BaseModel
- pydantic.v1.utils.Representation
Class variables
var info -> InfoSettingsvar protocols -> ProtocolSettings