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.

Source Distribution

torrentool-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file torrentool-0.1.0.tar.gz.

File metadata

  • Download URL: torrentool-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for torrentool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f94d5950040df0ea07e735057da36c228813de752eda799968c18cc9f2b8172
MD5 d6ad9e1016b0eaa5e923ec187eebb69b
BLAKE2b-256 2e1f167a051b579e275c686d7f23189ed89abc84c80a88afb455b0bce3ab57ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page