package
Classes:
Name | Description |
---|---|
PackageInfo |
Package information relevant to decide for deletion |
PackageInfoCollection |
Collection of PackageInfo to store for instance a entire channel packages information |
Functions:
Name | Description |
---|---|
parse_repodata |
Parses the reodata dictionary into a |
PackageInfo
dataclass
Package information relevant to decide for deletion
The package information are typically retrieved from the repodata.json
index file of a conda channel repository
Attributes:
Name | Type | Description |
---|---|---|
filename |
str
|
Filename of the package in the channel (key of the package map in |
name |
str
|
The name of the package (the name used to install the package with eg pixi) "{project_name}" |
upload_time |
datetime
|
Time of the package upload to the channel (unix time) |
version |
str
|
Version associated to the package. For instance "v1.0.0" but can be any string |
Source code in src/phoenixpackagecleanup/package.py
PackageInfoCollection
dataclass
Collection of PackageInfo to store for instance a entire channel packages information
The class groups the packages per channel-name
Attributes:
Name | Type | Description |
---|---|---|
packages |
dict[str, list[PackageInfo]]
|
Dictionary with keys the package name (as used to download the package from channel) and values a list of PackageInfo for each package archive in the channel. |
Source code in src/phoenixpackagecleanup/package.py
parse_repodata
Parses the reodata dictionary into a ChannelPackages
Parameters:
Name | Type | Description | Default |
---|---|---|---|
repodata
|
dict
|
repodata.json content loaded as a dict |
required |
Returns:
Type | Description |
---|---|
ChannelPackages
|
Packages available in the channel |