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: float | int, st_size: int)#

Filename and a bit of stat information.

fn: str#
st_mtime: float | int#
st_size: int#
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)#