Skip to content

RepoData#

RepoData #

__repr__() #

Returns a representation of the RepoData.

Examples#
>>> repo_data = RepoData("../test-data/test-server/repo/noarch/repodata.json")
>>> repo_data
RepoData()
>>>

apply_patches(instructions) #

Apply a patch to a repodata file. Note that we currently do not handle revoked instructions.

into_repo_data(channel) #

Builds a List[RepoDataRecord] from the packages in a RepoData given the source of the data.

Examples#
>>> from rattler import Channel
>>> repo_data = RepoData("../test-data/test-server/repo/noarch/repodata.json")
>>> repo_data.into_repo_data(Channel("test"))
[...]
>>>