register_artifact_path#
- scikitplot.cython.register_artifact_path(cache_dir, artifact_path, *, module_name, copy=True)[source]#
Register an existing compiled extension artifact into the cache registry.
- Parameters:
- cache_dirstr or pathlib.Path or None
Cache root. If None, resolves to the default cache.
- artifact_pathpath-like
Path to a compiled extension artifact (
.so/.pyd).- module_namestr
Module name the artifact was compiled for (init symbol name).
- copybool, default=True
If True, copy the artifact into the cache entry directory.
- Returns:
- CacheEntry
The registered cache entry.
- Raises:
- FileNotFoundError
If the artifact does not exist.
- ValueError
If the artifact does not have a valid extension suffix.
- OSError
If writing metadata or copying fails.
- Parameters:
- Return type: