pex.post.pull.cat

Module Contents

class pex.post.pull.cat.Cat

Bases: object

Subclass of pex.post.pull module.

This subclass of pex.post.pull module is intended for providing implementation of cat method of pulling file from sender.

pull(sender: Callable[Ellipsis, Any], location: str) bytes

Pull file from sender using cat method.

Parameters:
  • sender (Callable[..., Any]) – sender to pull file from

  • location (str) – location of file to pull

Return bytes:

file data

Raises:

RuntimeError – with trailing error message