CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
chained.py24 linesDownload Raw Back to implementations
1from typing import ClassVar2 3from fsspec import AbstractFileSystem4 5__all__ = ("ChainedFileSystem",)6 7 8class ChainedFileSystem(AbstractFileSystem):9    """Chained filesystem base class.10 11    A chained filesystem is designed to be layered over another FS.12    This is useful to implement things like caching.13 14    This base class does very little on its own, but is used as a marker15    that the class is designed for chaining.16 17    Right now this is only used in `url_to_fs` to provide the path argument18    (`fo`) to the chained filesystem from the underlying filesystem.19 20    Additional functionality may be added in the future.21    """22 23    protocol: ClassVar[str] = "chained"24 
Aluode/PerceptionLabPortable · CoolFace