Skip to main content

😈 Daemon to manage torrents through tt-torrent website.

Project description

😈 Daemon to manage torrents through tt-torrent website.


License PyPI version GithubActions


Installing

😈 tt-torrent is tested on Ubuntu 18.04 and Windows 10 with python >= 3.10, <= 3.11..

pip install tt-torrent

If you plan to code and make changes, clone and install it locally.

git clone https://github.com/SantiiRepair/tt-torrent.git
pip install -e .

Import

from tttorrent.new.client import NewClient

Authentication

from tttorrent.new.client import NewClient

client = NewClient(email="user@email.com", password="password")
await client.auth()
client.close()

Uploading torrent

import sys
from termcolor import colored
from tttorrent.new.client import NewClient

client = NewClient(email="user@email.com", password="password")
creds = await client.auth()
if not creds:
    sys.exit(print(colored("[ERROR]: Something wrong has happpened while authenticate", "red")))
with open("/path/to/description_text_file", "r") as f:
    description = f.read()
    f.close()
await client.upload(
    category=category,
    torrent_path="/path/to/torrent_file",
    image_path="/path/to/image_file",
    description=description,
)

client.close()

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

tt_torrent-1.0.5.tar.gz (16.7 kB view hashes)

Uploaded Source

Built Distribution

tt_torrent-1.0.5-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

Supported by

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