A BitTorrent metainfo generator
gentorrent is a modern program for generating BitTorrent metainfo files, aka “torrent files” or simply “torrents”, and magnet links.
It supports all the related current BitTorrent extensions:
- BEP-5
- dynamic hash table nodes;
- BEP-9
- magnet links;
- BEP-12
- multiple trackers;
- BEP-17
- HTTP seeds;
- BEP-19
- HTTP/FTP seeding (GetRight style)
- BEP-27
- private torrents;
- BEP-30
- Merkle tree.
Code
gentorrent is written in Python 3, licensed under GPLv3 and maintained under Git. Feel free to submit patches or pull requests to me.
Installation
- Have a working Python 3 system.
- Copy gentorrent.py wherever you like, e.g. in /usr/local/bin/.
Usage
Run gentorrent.py with the option --help for a usage summary. Its basic usage is:
$ gentorrent.py --announce http://torrent.example.com:6969/announce -- file
for a regular, tracked torrent, and:
$ gentorrent.py --nodes foo.example.com:51413 -- file
for a trackerless torrent. It generates a metainfo file named after the original file with an extension “.torrent” appended, and prints a magnet link.
More information
- source code;
- project announce;
- project announce (in French).