.torrent file parsing and creation with pydantic
Project description
torrent-models
.torrent file parsing and creation with pydantic (and models for other bittorrent things too)
While there are many other torrent packages, this one:
- Is simple and focused
- Can create and parse v1, v2, hybrid, and other BEPs
- Is focused on library usage (but does cli things too)
- Validates torrent files (e.g. when accepting them as user input!)
- Treats .torrent files as an extensible rather than fixed format
- Is performant! (and asyncio compatible when hashing!)
- Uses python typing and is mypy friendly
~ alpha software primarily intended for use with sciop ~
See also
These are also good projects, and probably more battle tested (but we don't know them well and can't vouch for their use):
Specifically
torfhas some notable performance problems, and doesn't support v2torrentfileis focused on the cli and doesn't appear to be able to validate torrent files, and there is no dedicated method for parsing them, e.g. editing directly manipulates the bencoded dict and rebuilding requires the files to be presentdottorrentcan only write, not parse torrent files.torrenttooldoesn't validate torrentsPyBitTorrentdoesn't validate torrentstorrent_parserdoesn't validate torrents and doesn't have a torrent file class
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torrent_models-0.3.4.tar.gz.
File metadata
- Download URL: torrent_models-0.3.4.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.9 CPython/3.13.1 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e9a5d5c6907e308ecd6864a8e0261c732aedd7f766c0d9bb88ef3fe4e10a07f
|
|
| MD5 |
f28d134be30f3c7e6f6e8e773bc507b4
|
|
| BLAKE2b-256 |
6ef6cf5141e22c7cf176d7392d74af28061b18feb35d0165466a7bdb893282f4
|
File details
Details for the file torrent_models-0.3.4-py3-none-any.whl.
File metadata
- Download URL: torrent_models-0.3.4-py3-none-any.whl
- Upload date:
- Size: 50.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.9 CPython/3.13.1 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6069e1167b1eb486b97e48a3f9041e63117e728b0036f71fcd7fd9362b887d
|
|
| MD5 |
b52c597af07511ae4bc1f81f6d54b554
|
|
| BLAKE2b-256 |
a69641d7fdb4f1aaecb549e13305f7c36a6215d4d4347f73e8bb134cff0dcb2f
|