All Projects → idlesign → torrentool

idlesign / torrentool

Licence: BSD-3-Clause License
The tool to work with torrent files.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to torrentool

bencode
PHP Bencode (BitTorrent) Encoder/Decoder
Stars: ✭ 19 (-80.21%)
Mutual labels:  torrent, bencode
BencodeNET
.NET library for encoding/decoding bencode and reading/writing torrent files
Stars: ✭ 133 (+38.54%)
Mutual labels:  torrent, bencode
privtracker
Private BitTorrent tracker generator
Stars: ✭ 84 (-12.5%)
Mutual labels:  torrent
bento
🍱 A fast, correct, pure-Elixir library for reading and writing Bencoded metainfo (.torrent) files.
Stars: ✭ 71 (-26.04%)
Mutual labels:  bencode
BitStream
A rudimentary Electron application that utilises WebTorrent to stream and download a torrent simultaneously
Stars: ✭ 15 (-84.37%)
Mutual labels:  torrent
nexusphp
A private tracker application base on NexusPHP
Stars: ✭ 209 (+117.71%)
Mutual labels:  torrent
transmission-cli
Transmission PHP client for detect profit torrents and automate weburg.net downloads
Stars: ✭ 17 (-82.29%)
Mutual labels:  torrent
gude
gude - 一个C++编写的DHT爬虫,用于爬取DHT网络上的torrent文件
Stars: ✭ 190 (+97.92%)
Mutual labels:  torrent
MIRROR-HUNTER
Who are we? We are the Hunters of all Torrent in this world.🗡️.Fork from SlamDevs
Stars: ✭ 86 (-10.42%)
Mutual labels:  torrent
parse-torrent-file
DEPRECATED: Parse a .torrent file and return an object of keys/values
Stars: ✭ 62 (-35.42%)
Mutual labels:  torrent
Torrents-Api
Torrent Api ✨
Stars: ✭ 82 (-14.58%)
Mutual labels:  torrent
we-get
🍦 Command-line tool for searching torrents.
Stars: ✭ 120 (+25%)
Mutual labels:  torrent
meanOs
Mean Operating System - The first decentralized, artificially intelligent, MEAN.js stack, operating system. Mean OS is the only operating system hosted anonymous using a P2P network and a suite of non-standard in-browser delivery mechanisms. Mean OS proudly supports Brave and Tor, be free!
Stars: ✭ 62 (-35.42%)
Mutual labels:  torrent
axon
The synapse TUI client
Stars: ✭ 40 (-58.33%)
Mutual labels:  torrent
UNIT3D-INSTALLER
Provisioner and Installer for the UNIT3D Torrent Tracker Platform.
Stars: ✭ 43 (-55.21%)
Mutual labels:  torrent
Diffy
🎞️💓🍿 Love streaming - It's always best to watch a movie together ! 🤗
Stars: ✭ 37 (-61.46%)
Mutual labels:  torrent
synology-dlm-rarbg
RarBG search module for Synology Download Manager
Stars: ✭ 73 (-23.96%)
Mutual labels:  torrent
URL-Magnet-Cloud-Uploader-Heroku
Aria 2 Rclone Remote URL /magnet Clouds upload via HEROKU
Stars: ✭ 99 (+3.13%)
Mutual labels:  torrent
magnet-link
DEPRECATED: Get a magnet link from a torrent file.
Stars: ✭ 65 (-32.29%)
Mutual labels:  torrent
torrent2magnet
种子转磁力链工具
Stars: ✭ 74 (-22.92%)
Mutual labels:  torrent

torrentool

https://github.com/idlesign/torrentool

Description

The tool to work with torrent files.

Works on Python 3.6+.

Includes:

  • Command line interface (requires click package to be installed)
  • Torrent utils (file creation, read and modification)
  • Bencoding utils (decoder, encoder)

Using CLI

; Make .torrent out of `video.mkv`
$ torrentool torrent create /home/my/files_here/video.mkv

; Make .torrent out of entire `/home/my/files_here` dir,
; and put some open trackers announce URLs into it,
; and publish file on torrent caching service, so it is ready to share.
$ torrentool torrent create /home/my/files_here --open_trackers --cache

; Print out existing file info.
$ torrentool torrent info /home/my/some.torrent

Use command line --help switch to know more.

Note

Some commands require requests package to be installed.

From your Python code

from torrentool.api import Torrent

# Reading and modifying an existing file.
my_torrent = Torrent.from_file('/home/idle/some.torrent')
my_torrent.total_size  # Total files size in bytes.
my_torrent.magnet_link  # Magnet link for you.
my_torrent.comment = 'Your torrents are mine.'  # Set a comment.
my_torrent.to_file()  # Save changes.

# Or we can create a new torrent from a directory.
new_torrent = Torrent.create_from('/home/idle/my_stuff/')  # or it could have been a single file
new_torrent.announce_urls = 'udp://tracker.openbittorrent.com:80'
new_torrent.to_file('/home/idle/another.torrent')
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].