Skip to content

v4.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Oct 12:22
· 1 commit to main since this release

v4.0.0 - 2026-10-27

Highlights

  • Richer torrent metadata because pynyaa now parses the .torrent file. This gives us stuff like individual files and their exact sizes through release.torrent.files and more.
  • A basic CLI, pynyaa https://nyaa.si/view/1755409, to print release metadata as JSON.
  • release, submitter, torrent, and file objects now have typed to_dict() methods.

Migrating from 3.x

These changes apply to both synchronous and asynchronous clients:

Previous API Version 4.0
Client constructor's base_url= keyword Use url=.
client.base_url Removed.
release.datetime Use release.submitted_at.
TorrentFile Use Torrent
release.torrent.name for the download filename Use release.torrent.filename. name now identifies the torrent's content.
ParsingError Use UnexpectedContentError instead.

Changelog: v3.0.0...v4.0.0