TikTokLive.proto package
Submodules
TikTokLive.proto.utilities module
- TikTokLive.proto.utilities.deserialize_message(proto_name: str, obj: bytes) dict
Deserialize a protobuf message into a dictionary
- Parameters
-
proto_name – The name of the message
obj – The protobuf object to deserialize
- Returns
The dictionary containing the deserialized message
- TikTokLive.proto.utilities.from_dict_plus(data_class: Type[dacite.core.T], data: Dict[str, Any], config: Optional[dacite.config.Config] = None) Any
Load a schema from a dict and set the _as_dict attribute automatically
- Parameters
-
data_class – Data class schema
data – Data to fit into data class
config – Config for dacite
- Returns
A dataclass containing type T