ZeroNet/src/lib/subtl
HelloZeroNet ee70e2f022 Version 0.3.4, Rev656, CryptMessage plugin for AES and ECIES encryption, Added pyelliptic lib for OpenSSSL based encryption methods, Test CryptMessage plugin, Force reload content.json before signing and after write, Escaped Sql IN queries support, Test Sql parameter escaping, ui_websocket Test fixture, Plugin testing support, Always return websocket errors as dict, Wait for file on weboscket fileGet command if its already in bad_files queue, PushState and ReplaceState url manipulation support in wrapper API, Per auth-address localstorage, Longer timeout for udp tracker query 2015-12-10 21:36:20 +01:00
..
LICENCE First release, remove not used lines from gitignore 2015-01-12 02:03:45 +01:00
README.md First release, remove not used lines from gitignore 2015-01-12 02:03:45 +01:00
__init__.py First release, remove not used lines from gitignore 2015-01-12 02:03:45 +01:00
subtl.py Version 0.3.4, Rev656, CryptMessage plugin for AES and ECIES encryption, Added pyelliptic lib for OpenSSSL based encryption methods, Test CryptMessage plugin, Force reload content.json before signing and after write, Escaped Sql IN queries support, Test Sql parameter escaping, ui_websocket Test fixture, Plugin testing support, Always return websocket errors as dict, Wait for file on weboscket fileGet command if its already in bad_files queue, PushState and ReplaceState url manipulation support in wrapper API, Per auth-address localstorage, Longer timeout for udp tracker query 2015-12-10 21:36:20 +01:00

README.md

subtl

Overview

SUBTL is a simple UDP BitTorrent tracker library for Python, licenced under the modified BSD license.

Example

This short example will list a few IP Addresses from a certain hash:

from subtl import UdpTrackerClient
utc = UdpTrackerClient('tracker.openbittorrent.com', 80)
utc.connect()
if not utc.poll_once():
    raise Exception('Could not connect')
print('Success!')

utc.announce(info_hash='089184ED52AA37F71801391C451C5D5ADD0D9501')
data = utc.poll_once()
if not data:
    raise Exception('Could not announce')
for a in data['response']['peers']:
    print(a)

Caveats

  • There is no automatic retrying of sending packets yet.
  • This library won't download torrent files--it is simply a tracker client.