classReleaseFile#

class ReleaseFile(
name: str,
urls: tuple[str, ...] = (),
hashes: Mapping[str, str] = {},
size: int | None = None,
primary: bool = True,
)#

One file of a release.

name#

The file name.

Type:

str

urls#

Download locations. Empty if the file cannot be downloaded directly.

Type:

tuple[str, …]

hashes#

Expected digests keyed by algorithm name.

Type:

Mapping[str, str]

size#

The size in bytes, or None if unknown.

Type:

int | None

primary#

Whether this is the release’s main file.

Type:

bool