tempfile.TemporaryDirectory(suffix=None, prefix=None, dir=None) This function securely creates a temporary directory using the
tempfile.gettempprefix() Return the filename prefix used to create temporary files. This does not contain the directory component
fileinput.hook_compressed(filename, mode) Transparently opens files compressed with gzip and bzip2 (recognized by the extensions
class pathlib.WindowsPath(*pathsegments) A subclass of Path and PureWindowsPath, this class represents
tempfile.SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None) This
Path.write_bytes(data) Open the file pointed to in bytes mode, write data to it, and close the file:
PurePath.joinpath(*other) Calling this method is equivalent to combining the path with each of the other arguments
Path.is_dir() Return True if the path points to a directory (or a symbolic link pointing to a directory), False
fileinput.filename() Return the name of the file currently being read. Before the first line has been read, returns None
PurePath.as_uri() Represent the path as a file URI.
Page 1 of 19