megfile.stdio_path module

class megfile.stdio_path.StdioPath(path: Union[str, os.PathLike])[source]

Bases: megfile.pathlike.BaseURIPath

open(mode: str = 'rb', encoding: Optional[str] = None, errors: Optional[str] = None, **kwargs) → IO[AnyStr][source]

Used to read or write stdio

Note

Essentially invoke sys.stdin.buffer | sys.stdout.buffer to read or write

Parameters

mode – Only supports ‘rb’ and ‘wb’ now

Returns

STDReader, STDWriter

protocol = 'stdio'