Avec un chapeau de randonnée

Site personnel de Tanguy Ortolo

W3C | XHTML 1.1 W3C | CSS 3 Spirale | Debian ⠠⠵ | hacker Maison ⌂ | @moi

gentorrent

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

  1. Have a working Python 3 system.
  2. 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