https://github.com/idlesign/torrentool
The tool to work with torrent files.
Can be used both as python module and console application.
Includes:
- Torrent utils (to create and modify files)
- Bencoding utils (decoder, encoder)
from torrentool.api import Torrent
my_torrent = Torrent.from_file('/home/idle/some.torrent')
print(my_torrent.announce_urls) # Get torrent trackers announce URLs.
my_torrent.comment = 'Your torrents are mine.' # Set a comment.
Will be available at http://torrentool.readthedocs.org/