classRelease#

class Release(
platform: str,
id: str,
project_id: str,
name: str,
release_type: Literal['release', 'beta', 'alpha'] = 'release',
published: str = '',
game_versions: tuple[str, ...] = (),
loaders: tuple[str, ...] = (),
files: tuple[ReleaseFile, ...] = (),
)#

One published version: a CurseForge File or a Modrinth Version.

platform#

The platform’s name.

Type:

str

id#

The release’s id on that platform.

Type:

str

project_id#

The project’s id on that platform.

Type:

str

name#

The display name.

Type:

str

release_type#

One of release, beta or alpha.

Type:

Literal[‘release’, ‘beta’, ‘alpha’]

published#

The publication time, in ISO 8601 format.

Type:

str

game_versions#

The Minecraft versions it supports.

Type:

tuple[str, …]

loaders#

The mod loaders it supports.

Type:

tuple[str, …]

files#

The files it contains.

Type:

tuple[ReleaseFile, …]

property primary_file: ReleaseFile#

The file marked as primary, or the first file.

Raises:

PlatformError – The release has no files.