Download services/storage/base.py from zlcy/study: direct link, hf CLI and curl.
- Browser
- Download file 886 Bytes
-
https://huggingface.co/spaces/zlcy/study/resolve/main/services/storage/base.py
- Command line
-
hf download hf://spaces/zlcy/study/services/storage/base.py
-
curl -L -o base.py https://huggingface.co/spaces/zlcy/study/resolve/main/services/storage/base.py
886 Bytes
| from __future__ import annotations | |
| from abc import ABC, abstractmethod | |
| from typing import Any | |
| class StorageBackend(ABC): | |
| """Abstract storage backend.""" | |
| def load_accounts(self) -> list[dict[str, Any]]: | |
| pass | |
| def save_accounts(self, accounts: list[dict[str, Any]]) -> None: | |
| pass | |
| def load_auth_keys(self) -> list[dict[str, Any]]: | |
| pass | |
| def save_auth_keys(self, auth_keys: list[dict[str, Any]]) -> None: | |
| pass | |
| def load_shop_state(self) -> dict[str, Any]: | |
| pass | |
| def save_shop_state(self, state: dict[str, Any]) -> None: | |
| pass | |
| def health_check(self) -> dict[str, Any]: | |
| pass | |
| def get_backend_info(self) -> dict[str, Any]: | |
| pass | |