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
inheritedConvenience short-hand for
self.get_logger()
.Methods
Join two paths together, similarly to
os.path.join()
.get_logger()
inheritedProvides a
logging.Logger
named aftercls
.log_locals()
inheritedDebugging 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#
- classmethod ArtifactPath.join(path1, path2)[source]#
Join two paths together, similarly to
os.path.join()
.If
path1
is aArtifactPath
, the result will also be one, and the root ofpath1
will be used as the root of the new path.
- classmethod ArtifactPath.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()
Provides a
logging.Logger
named aftercls
.
- 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.