megfile.stdio_path module
- class megfile.stdio_path.StdioPath(path: str | BasePath | PathLike)[source]
Bases:
BaseURIPath
- open(mode: str = 'rb', encoding: str | None = None, errors: str | None = None, **kwargs) IO [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'