Models
Submitter
dataclass
Represents the user who submitted the torrent.
is_trusted
instance-attribute
is_trusted: bool
Indicates whether the user is trusted (green) or not.
TorrentFile
dataclass
Represents a torrent file, including its associated data and metadata.
NyaaRelease
dataclass
NyaaRelease(
*,
id: int,
url: str,
title: str,
category: Category,
submitter: Submitter | None,
datetime: datetime,
information: str | None,
seeders: int,
leechers: int,
completed: int,
is_trusted: bool,
is_remake: bool,
torrent: TorrentFile,
description: str | None,
)
Represents a specific release (torrent) on Nyaa.
url
instance-attribute
url: str
The URL to the Nyaa release page (e.g., https://nyaa.si/view/123456).
submitter
instance-attribute
submitter: Submitter | None
The user who submitted the release.
This is None if the submitter is anonymous.
datetime
instance-attribute
datetime: datetime
The date and time at which the release was submitted.
seeders
class-attribute
instance-attribute
The number of seeders.
leechers
class-attribute
instance-attribute
The number of leechers.
completed
class-attribute
instance-attribute
The number of completed downloads.
is_trusted
instance-attribute
is_trusted: bool
Indicates whether the upload is trusted (green) or not.
Note
A release can be both trusted and a remake. In this case, the remake
status takes priority, so is_remake will be True and is_trusted will be False.
is_remake
instance-attribute
is_remake: bool
Indicates whether the upload is a remake (red) or not.
Note
A release can be both trusted and a remake. In this case, the remake
status takes priority, so is_remake will be True and is_trusted will be False.