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.
tempfile.TemporaryDirectory(suffix=None, prefix=None, dir=None) This function securely creates a temporary directory using the
fileinput.isstdin() Returns true if the last line was read from sys.stdin, otherwise returns false.
shutil.get_unpack_formats() Return a list of all registered formats for unpacking. Each element of the returned sequence is
shutil.register_archive_format(name, function[, extra_args[, description]]) Register an archiver for the format name
PurePath.is_absolute() Return whether the path is absolute or not. A path is considered absolute if it has both a root and (if
Path.write_bytes(data) Open the file pointed to in bytes mode, write data to it, and close the file:
tempfile.SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None) This
PurePath.joinpath(*other) Calling this method is equivalent to combining the path with each of the other arguments
Page 1 of 19