nemo_curator.utils.operation_utils
Module Contents
Functions
API
Retrieve the appropriate temporary directory based on the runtime environment.
Returns: pathlib.Path
pathlib.Path: Path to the temporary directory.
Context manager to create a named temporary file.
Parameters:
Prefix for the file name. Defaults to None.
suffix for the file name. Defaults to None.
If True, the file will be deleted upon exit. Defaults to True.
Directory where the file should be created. Defaults to None.
Context manager to create a named temporary file for pipelines.
Context manager to create a temporary directory for pipelines.
Context manager to create a temporary directory.
Parameters:
Prefix for the directory name. Defaults to None.
Parent directory for the temporary directory. Defaults to None.
If True, the directory will be deleted upon exit. Defaults to True.