Skip to content

fetch_repo_data#

fetch_repo_data(*, channels, platforms, cache_path, callback, client=None) async #

Returns a list of RepoData for given channels and platform.

Parameters:

Name Type Description Default
channels List[Channel]

A list of Channels to fetch repo data.

required
platforms List[Platform]

A list of Platforms for which the repo data should be fetched.

required
cache_path Union[str, PathLike[str]]

A os.PathLike[str] where the repo data should be downloaded.

required
callback Optional[Callable[[int, int], None]]

A Callable[[int, int], None] to report the download progress of repo data.

required
client Optional[Client]

A Client to use for fetching the repo data.

None

Returns:

Type Description
List[SparseRepoData]

A list of SparseRepoData for requested channels and platforms.