DirectoryArtifactStore#
- class scikitplot.agent.DirectoryArtifactStore(directory)[source]#
Keep each artifact in
<directory>/<first two digits>/<digest>.json.- Parameters:
- directorystr or os.PathLike
Created if missing.
- Parameters:
directory (str | os.PathLike[str])
Notes
Written like
JsonFileStore: a temporary file in the same directory, synced, renamed into place and the directory synced, so a reader sees a whole artifact or none. The digest is checked to be 64 hexadecimal digits before it names a file.