Skip to main content

The tool to work with torrent files.

Project description

https://github.com/idlesign/torrentool

https://img.shields.io/pypi/v/torrentool.svg https://img.shields.io/pypi/dm/torrentool.svg https://img.shields.io/pypi/l/torrentool.svg https://img.shields.io/coveralls/idlesign/torrentool/master.svg https://landscape.io/github/idlesign/torrentool/master/landscape.svg?style=flat https://img.shields.io/travis/idlesign/torrentool/master.svg https://img.shields.io/codeclimate/github/idlesign/torrentool.svg

Description

The tool to work with torrent files.

Works on Python 2.7+ and 3.3+.

Includes:

  • Torrent utils (file read and modification)
  • Bencoding utils (decoder, encoder)
from torrentool.api import Torrent


my_torrent = Torrent.from_file('/home/idle/some.torrent')

my_torrent.announce_urls  # Torrent trackers announce URLs.
my_torrent.total_size  # Total files size in bytes.
my_torrent.magnet_link  # Magnet link for you.

# Etc.

my_torrent.comment = 'Your torrents are mine.'  # Set a comment.

my_torrent.to_file()  # Save changes to file

Project details


Download files

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

Files for torrentool, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size torrentool-0.1.0.tar.gz (8.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page