pooch.Pooch¶
-
class
pooch.
Pooch
(path, base_url, registry)[source]¶ Manager for a local data storage that can fetch from a remote source.
Parameters: - path : str
The path to the local data storage folder. The path must exist in the file system.
- base_url : str
Base URL for the remote data source. All requests will be made relative to this URL.
- registry : dict
A record of the files that are managed by this good boy. Keys should be the file names and the values should be their SHA256 hashes. Only files in the registry can be fetched from the local storage. Files in subdirectories of path must use Unix-style separators (
'/'
) even on Windows.
Attributes: abspath
Absolute path to the local storage
Methods
fetch
(fname)Get the absolute path to a file in the local storage. load_registry
(fname)Load entries form a file and add them to the registry.