tinker_cookbook.stores.LocalStorage
Generated from tinker-cookbook at commit 8486b8d. Source links point at that snapshot.
class tinker_cookbook.stores.LocalStorage()
File-based storage rooted at a local directory.
Implements both Storage (sync) and AsyncStorage (via to_thread).
Pickle-serializable (stores only a Path).
property root
The resolved local directory root.
Returns: Path
url(path)
read(path)
write(path, data)
append(path, data)
exists(path)
stat(path)
read_range(path, offset, length)
list_dir(prefix)
remove(path)
remove_dir(path)
flush()
See Storage.flush. No-op for local filesystem.
Returns: None