{"id":16801386,"url":"https://github.com/pippolo84/beetools","last_synced_at":"2025-07-15T04:31:39.786Z","repository":{"id":57572931,"uuid":"350140596","full_name":"pippolo84/beetools","owner":"pippolo84","description":"CLI application to manipulate torrent file","archived":false,"fork":false,"pushed_at":"2021-03-24T16:14:05.000Z","size":321,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T03:36:48.425Z","etag":null,"topics":["bencode","go","golab","torrent"],"latest_commit_sha":null,"homepage":"https://golab.io/en/agenda/your-first-go-project/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pippolo84.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-21T22:54:22.000Z","updated_at":"2024-02-20T21:52:54.000Z","dependencies_parsed_at":"2022-09-19T03:01:17.650Z","dependency_job_id":null,"html_url":"https://github.com/pippolo84/beetools","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pippolo84/beetools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippolo84%2Fbeetools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippolo84%2Fbeetools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippolo84%2Fbeetools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippolo84%2Fbeetools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pippolo84","download_url":"https://codeload.github.com/pippolo84/beetools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippolo84%2Fbeetools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265402833,"owners_count":23759237,"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":["bencode","go","golab","torrent"],"created_at":"2024-10-13T09:36:41.324Z","updated_at":"2025-07-15T04:31:39.376Z","avatar_url":"https://github.com/pippolo84.png","language":"Go","readme":"# beetools\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/Pippolo84/beetools)](https://goreportcard.com/report/github.com/Pippolo84/beetools)\n[![Go Reference](https://pkg.go.dev/badge/github.com/Pippolo84/beetools.svg)](https://pkg.go.dev/github.com/Pippolo84/beetools)\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg widht=\"640\" height=\"320\" src=\"assets/logo.jpg\"\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\nbeetools is a CLI application to manipulate torrent file in [bencode](https://en.wikipedia.org/wiki/Bencode) format.\n\nIt currently supports three subcommands:\n\n- `decode` to decode data in bencode format and encode them in JSON format.\n\n```\n$ beetools decode debian-10.8.0-amd64-netinst.iso.torrent | jq .\n{\n  \"announce\": \"http://bttracker.debian.org:6969/announce\",\n  \"comment\": \"\\\"Debian CD from cdimage.debian.org\\\"\",\n  \"creation date\": \"2021-02-06T13:59:34+01:00\",\n  \"httpseeds\": [\n    \"https://cdimage.debian.org/cdimage/release/10.8.0//srv/cdbuilder.debian.org/dst/deb-cd/weekly-builds/amd64/iso-cd/debian-10.8.0-amd64-netinst.iso\",\n    \"https://cdimage.debian.org/cdimage/archive/10.8.0//srv/cdbuilder.debian.org/dst/deb-cd/weekly-builds/amd64/iso-cd/debian-10.8.0-amd64-netinst.iso\"\n  ],\n  \"info\": {\n    \"length\": 352321536,\n    \"name\": \"debian-10.8.0-amd64-netinst.iso\",\n    \"piece length\": 262144,\n    \"pieces\": \"...\"\n  }\n}\n```\n\n- `encode` to decode data in JSON format and encode them in bencode format.\n\n```\n$ beetools encode debian-10.8.0-amd64-netinst.iso.json\nd8:announce41:http://bttracker.debian.org:6969/announce7:comment35:\"Debian CD from cdimage.debian.org\"13:creation datei1612616374e9:httpseedsl145:https://cdimage.debian.org/cdimage/release/10.8.0//srv/cdbuilder.debian.org/dst/deb-cd/weekly-builds/amd64/iso-cd/debian-10.8.0-amd64-netinst.iso145:https://cdimage.debian.org/cdimage/archive/10.8.0//srv/cdbuilder.debian.org/dst/deb-cd/weekly-builds/amd64/iso-cd/debian-10.8.0-amd64-netinst.isoe4:infod6:lengthi352321536e4:name31:debian-10.8.0-amd64-netinst.iso12:piece lengthi262144e6:pieces26880:...\n```\n\n- `show` to show information extracted from the content of a valid .torrent file (filtering \"pieces\" data).\n\n```\n$ beetools show debian-10.8.0-amd64-netinst.iso.torrent \n{\n  \"announce\": \"http://bttracker.debian.org:6969/announce\",\n  \"comment\": \"\\\"Debian CD from cdimage.debian.org\\\"\",\n  \"creation date\": \"2021-02-06T13:59:34+01:00\",\n  \"httpseeds\": [\n    \"https://cdimage.debian.org/cdimage/release/10.8.0//srv/cdbuilder.debian.org/dst/deb-cd/weekly-builds/amd64/iso-cd/debian-10.8.0-amd64-netinst.iso\",\n    \"https://cdimage.debian.org/cdimage/archive/10.8.0//srv/cdbuilder.debian.org/dst/deb-cd/weekly-builds/amd64/iso-cd/debian-10.8.0-amd64-netinst.iso\"\n  ],\n  \"info\": {\n    \"length\": 352321536,\n    \"name\": \"debian-10.8.0-amd64-netinst.iso\",\n    \"piece length\": 262144,\n    \"pieces\": \"\"\n  }\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpippolo84%2Fbeetools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpippolo84%2Fbeetools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpippolo84%2Fbeetools/lists"}