lisa.utils.ArtifactPath#

class lisa.utils.ArtifactPath(root, relative, *args, **kwargs)[source]#

Bases: str, Loggable, HideExekallID

Path to a folder that can be used to store artifacts of a function. This must be a clean folder, already created on disk.

Properties

logger inherited

Convenience short-hand for self.get_logger().

Methods

__fspath__()

join()

Join two paths together, similarly to os.path.join().

relative_to()

with_root()

get_logger() inherited

Provides a logging.Logger named after cls.

log_locals() inherited

Debugging aid: log the local variables of the calling function.

Properties#

property ArtifactPath.logger#

Inherited property, see lisa.utils.Loggable.logger

Convenience short-hand for self.get_logger().

Methods#

ArtifactPath.__fspath__()[source]#
classmethod ArtifactPath.join(path1, path2)[source]#

Join two paths together, similarly to os.path.join().

If path1 is a ArtifactPath, the result will also be one, and the root of path1 will be used as the root of the new path.

ArtifactPath.relative_to(path)[source]#
ArtifactPath.with_root(root)[source]#
classmethod ArtifactPath.get_logger(suffix=None)#

Inherited method, see lisa.utils.Loggable.get_logger()

Provides a logging.Logger named after cls.

classmethod ArtifactPath.log_locals(var_names=None, level='debug')#

Inherited method, see lisa.utils.Loggable.log_locals()

Debugging aid: log the local variables of the calling function.