zelos.handles.pipe module

class zelos.handles.pipe.Pipe

Bases: object

Class used to communicate information between processes similar to a linux pipe.

write(data: bytes) → int

Write data to the pipe’s buffer. Returns the number of bytes written to buffer

read(size=None) → bytes

Read data from the pipe’s buffer up to the requested size. Defaults to reading the entire buffer

is_empty() → bool