fileinput.hook_compressed(filename, mode) Transparently opens files compressed with gzip and bzip2 (recognized by the extensions
stat.S_ISSOCK(mode) Return non-zero if the mode is from a socket.
tempfile.tempdir When set to a value other than None, this variable defines the default value for the dir
PurePath.as_uri() Represent the path as a file URI.
fileinput.isstdin() Returns true if the last line was read from sys.stdin, otherwise returns false.
PurePath.is_absolute() Return whether the path is absolute or not. A path is considered absolute if it has both a root and (if
tempfile.SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None) This
tempfile.TemporaryDirectory(suffix=None, prefix=None, dir=None) This function securely creates a temporary directory using the
Path.touch(mode=0o666, exist_ok=True) Create a file at this given path. If mode is given, it is combined with the process’
shutil.register_archive_format(name, function[, extra_args[, description]]) Register an archiver for the format name
Page 1 of 19