Bases: StorageAdapterBase
Source code in swarmauri_storage_github/github_storage_adapter.py
| def __init__(self, **kwargs) -> None:
super().__init__(**kwargs)
self.kwargs = kwargs
|
kwargs
instance-attribute
upload
Source code in swarmauri_storage_github/github_storage_adapter.py
| def upload(self, key: str, data: BinaryIO) -> str: # pragma: no cover - stub
return f"github://{key}"
|
download
Source code in swarmauri_storage_github/github_storage_adapter.py
| def download(self, key: str) -> BinaryIO: # pragma: no cover - stub
raise NotImplementedError("download() not implemented")
|
upload_dir
upload_dir(src, *, prefix='')
Source code in swarmauri_storage_github/github_storage_adapter.py
| def upload_dir(
self, src: str | os.PathLike, *, prefix: str = ""
) -> None: # pragma: no cover - stub
raise NotImplementedError("upload_dir() not implemented")
|
download_dir
download_dir(prefix, dest_dir)
Source code in swarmauri_storage_github/github_storage_adapter.py
| def download_dir(
self, prefix: str, dest_dir: str | os.PathLike
) -> None: # pragma: no cover - stub
raise NotImplementedError("download_dir() not implemented")
|
from_uri
classmethod
Source code in swarmauri_storage_github/github_storage_adapter.py
| @classmethod
def from_uri(cls, uri: str) -> "GithubStorageAdapter": # pragma: no cover - stub
return cls()
|