lit_ollama.store.local
source module lit_ollama.store.local
Classes
-
LocalStore — Local filesystem-backed storage used by the API.
source class LocalStore(*, blobs_root: str | Path = 'blobs')
Local filesystem-backed storage used by the API.
This is intentionally a thin façade that composes the independent blob/model stores so the API only has to wire up a single dependency.
Methods
source property LocalStore.models: dict[str, TagModel]
source property LocalStore.blobs: BlobStore
source method LocalStore.load_models() → None
source method LocalStore.get_file_hash(file_path: Path) → str
source method LocalStore.get_folder_hash(folder_path: Path) → str
source method LocalStore.get_model(model_name: str) → dict
source method LocalStore.copy_model(model_name: str, new_model_name: str) → None
source method LocalStore.delete_model(model_name: str) → None
source method LocalStore.pull_model(model_name: str) → None