conda_index.index.fs

This module provides a filesystem abstraction for sourcing packages.

Minimal (just what conda-index uses) filesystem abstraction.

Allows fsspec to be used to index remote repositories, without making it a required dependency.

class conda_index.index.fs.FileInfo(fn: str, st_mtime: Number, st_size: Number)

Filename and a bit of stat information.

fn: str
st_mtime: Number
st_size: Number
class conda_index.index.fs.FsspecFS(fsspec_fs)

Wrap a fsspec filesystem to pass to ChannelIndex

basename(path: str) str
fsspec_fs: AbstractFileSystem
join(*paths)
listdir(path: str) list[dict]
open(path: str, mode: str = 'rb')
stat(path: str)
class conda_index.index.fs.MinimalFS

Filesystem API as needed by conda-index, for fsspec compatibility.

basename(path) str
join(*paths)
listdir(path) Iterable[dict]
open(path: str, mode: str = 'rb')
stat(path: str)