Repository navigation
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.filesand 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. |