interface
JLAP interface for repodata.
Classes
Helper class that provides a standard way to create an ABC using |
- class JlapRepoInterface(url: str, repodata_fn: str | None, *, cache: conda.gateways.repodata.RepodataCache, **kwargs)
Bases:
conda.gateways.repodata.RepoInterface
Helper class that provides a standard way to create an ABC using inheritance.
- repodata(state: dict | RepodataState) str | None
Fetch newest repodata if necessary.
Always writes to
cache_path_json
.
- repodata_parsed(state: dict | RepodataState) dict | None
JLAP has to parse the JSON anyway.
Use this to avoid a redundant parse when repodata is updated.
When repodata is not updated, it doesn't matter whether this function or the caller reads from a file.