{"id":15442790,"url":"https://github.com/rsnitsch/pprint_torrent","last_synced_at":"2025-03-28T07:25:49.793Z","repository":{"id":159223410,"uuid":"625990880","full_name":"rsnitsch/pprint_torrent","owner":"rsnitsch","description":"Pretty-print the contents of torrent files!","archived":false,"fork":false,"pushed_at":"2023-05-03T08:05:40.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-10-18T13:19:51.569Z","etag":null,"topics":["commandline-tool","python3","torrents"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsnitsch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-10T15:04:30.000Z","updated_at":"2023-04-30T14:40:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1bed025-84c1-49a2-a787-b8e200b52ebe","html_url":"https://github.com/rsnitsch/pprint_torrent","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"13e8b988ac80f4200a7922bced7c4add59311b39"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsnitsch%2Fpprint_torrent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsnitsch%2Fpprint_torrent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsnitsch%2Fpprint_torrent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsnitsch%2Fpprint_torrent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsnitsch","download_url":"https://codeload.github.com/rsnitsch/pprint_torrent/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245986667,"owners_count":20705246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commandline-tool","python3","torrents"],"created_at":"2024-10-01T19:30:11.855Z","updated_at":"2025-03-28T07:25:49.765Z","avatar_url":"https://github.com/rsnitsch.png","language":"Python","readme":"# pprint_torrent\r\n\r\nPretty-print the contents of torrent files!\r\n\r\npprint_torrent can be used to inspect the contents of torrent files. The metainfo dict is pretty-printed\r\nwith indentation of sub-levels. The maximum depth can be limited as well. To keep the output compact, the long\r\nbinary `pieces` hash sequence is hidden from the output automatically. `pieces root` hashes from v2 torrents are\r\nhexlified (both in the `file tree` and in the `piece layers` dict).\r\n\r\n## Usage\r\n\r\nCommandline parameters:\r\n\r\n    usage: pprint_torrent.py [-h] [-i INDENT] [-w WIDTH] [-d DEPTH] torrent_file\r\n\r\n    Pretty-print a given torrent file's metainfo dict to stdout.\r\n\r\n    positional arguments:\r\n    torrent_file          Path to the torrent file\r\n\r\n    options:\r\n    -h, --help            show this help message and exit\r\n    -i INDENT, --indent INDENT\r\n                            Indentation width (default: 2)\r\n    -w WIDTH, --width WIDTH\r\n                            Maximum width of a line (default: 200)\r\n    -d DEPTH, --depth DEPTH\r\n                            Maximum depth to show (default: unlimited)\r\n\r\nExample command:\r\n\r\n    $ pprint_torrent.py kubuntu-20.04-desktop-amd64.iso.torrent -w 100\r\n\r\nOutput:\r\n\r\n    { b'announce': b'https://torrent.ubuntu.com/announce',\r\n      b'comment': b'Kubuntu CD cdimage.ubuntu.com',\r\n      b'creation date': 1587648815,\r\n      b'info': { b'length': 2354036736,\r\n                 b'name': b'kubuntu-20.04-desktop-amd64.iso',\r\n                 b'piece length': 1048576,\r\n                 b'pieces': '44900 bytes (hidden in this output)'}}\r\n\r\n## Installation\r\n\r\npprint_torrent requires Python 3.\r\n\r\nExecute:\r\n\r\n    pip install pprint_torrent\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsnitsch%2Fpprint_torrent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsnitsch%2Fpprint_torrent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsnitsch%2Fpprint_torrent/lists"}