pex.proto.channel.tools
¶
Module Contents¶
- class pex.proto.channel.tools.ChannelTools¶
Bases:
object
Subclass of pex.proto.channel module.
This subclass of pex.proto.channel module is intended for providing some Channel tools.
- static token_extract(data: bytes, token: bytes) Tuple[bytes, bytes] ¶
Extract token from data received from channel.
- Parameters:
data (bytes) – data
token (bytes) – token to extract
- Return Tuple[bytes, bytes]:
data before and data after token (stash)