Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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',
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
makeTorrent-0.14.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Aug 18, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting