fetch_repo_data#
FetchRepoDataOptions
dataclass
#
bz2_enabled
class-attribute
instance-attribute
#
Whether the BZ2 compression is enabled or not.
cache_action
class-attribute
instance-attribute
#
How to interact with the cache.
'cache-or-fetch'
(default): Use the cache if its up to date or fetch from the URL if there is no valid cached value.'use-cache-only'
: Only use the cache, but error out if the cache is not up to date'force-cache-only'
: Only use the cache, ignore whether or not it is up to date.'no-cache'
: Do not use the cache even if there is an up to date entry
jlap_enabled
class-attribute
instance-attribute
#
Whether the JLAP compression is enabled or not.
variant
class-attribute
instance-attribute
#
Which type of repodata to download
'after-patches'
(default): Fetch therepodata.json
file. Thisrepodata.json
has repodata patches applied.'from-packages'
Fetch therepodata_from_packages.json
file'current'
: Fetchcurrent_repodata.json
file. This file contains only the latest version of each package.
zstd_enabled
class-attribute
instance-attribute
#
Whether the ZSTD compression is enabled or not.
fetch_repo_data
async
#
Returns a list of RepoData for given channels and platform.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
channels
|
List[Channel]
|
A list of |
required |
platforms
|
List[Platform]
|
A list of |
required |
cache_path
|
Union[str, PathLike[str]]
|
A |
required |
callback
|
Optional[Callable[[int, int], None]]
|
A |
required |
client
|
Optional[Client]
|
A |
None
|
Returns:
Type | Description |
---|---|
List[SparseRepoData]
|
A list of |