pprint_torrent
Pretty-print the contents of torrent files!
pprint_torrent can be used to inspect the contents of torrent files. The metainfo dict is pretty-printed
with indendation of sub-levels. The maximum depth can be limited as well. To keep the output compact, the long
binary pieces hash sequence is hidden from the output automatically. pieces root hashes from v2 torrents are
hexlified (both in the file tree and in the piece layers dict).
Usage
Commandline parameters:
usage: pprint_torrent.py [-h] [-i INDENT] [-w WIDTH] [-d DEPTH] torrent_file
Pretty-print a given torrent file's metainfo dict to stdout.
positional arguments:
torrent_file Path to the torrent file
options:
-h, --help show this help message and exit
-i INDENT, --indent INDENT
Indentation width (default: 2)
-w WIDTH, --width WIDTH
Maximum width of a line (default: 200)
-d DEPTH, --depth DEPTH
Maximum depth to show (default: unlimited)
Example command:
$ pprint_torrent.py kubuntu-20.04-desktop-amd64.iso.torrent -w 100
Output:
{ b'announce': b'https://torrent.ubuntu.com/announce',
b'comment': b'Kubuntu CD cdimage.ubuntu.com',
b'creation date': 1587648815,
b'info': { b'length': 2354036736,
b'name': b'kubuntu-20.04-desktop-amd64.iso',
b'piece length': 1048576,
b'pieces': '44900 bytes (hidden in this output)'}}
Installation
Execute:
pip install pprint_torrent
Metadata
Release files for pprint-torrent 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pprint_torrent-1.0.0.tar.gz | 4.4 kB | Without provenance | Details for pprint_torrent-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pprint_torrent-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pprint_torrent-1.0.0-py3-none-any.whl |
Total release size: 8.0 kB
Release files / pprint_torrent-1.0.0.tar.gz
| Download URL | pprint_torrent-1.0.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7acde3aff26b96669636c83110a358c2fb548268af9425b8c65e443ec48de5fb
|
|
BLAKE2b-256 checksum How to use checksums |
a7868448e5c8f8754fc63a9d715ba83df1495aba296ac853dd89d26150c7adab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / pprint_torrent-1.0.0-py3-none-any.whl
| Download URL | pprint_torrent-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b4e9c72b4cc9b26a433004fb3e5aad6adbe149ae1778f534e5f9d5b394ef8ed
|
|
BLAKE2b-256 checksum How to use checksums |
9fb759903837f95c9c3ca82654a297a48022df8f62e6582ef15c7be870bac1b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for pprint-torrent 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.