Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Basic library for creating torrents

Project description

A basic python library for generating single and multi-file torrents.


Basic usage:

from makeTorrent import makeTorrent

mk = makeTorrent(announce='')

At this point the makeTorrent class contains a dictionary, which can be printed either as a dict or as a bencoded string (torrent format).

To add files, use either the multi_file class or the single_file class:


with open('my.torrent') as tf:

The same method can be used with mk.single_file with just pointing out a single file.


There are a number of items that can be added when initializing the class:

mk = makeTorrent(
    comment='Test Torrent',

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
makeTorrent-0.14.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page