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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file tt_torrent-1.0.5.tar.gz.

File metadata

  • Download URL: tt_torrent-1.0.5.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.1.43

File hashes

Hashes for tt_torrent-1.0.5.tar.gz
Algorithm Hash digest
SHA256 7d94436c02e2e5ef22c88ceabc24e4f628986dea7e2d6877283f51a43012d89f
MD5 78562d7d2080b256a59aa64a37fc2b5b
BLAKE2b-256 69e12439b0e9667e1818e14d96aa7375439c6f15abc73c2ee5e37b4116a7bf93

See more details on using hashes here.

File details

Details for the file tt_torrent-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: tt_torrent-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.1.43

File hashes

Hashes for tt_torrent-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4e21865d90a3674addc243532de8e60c8be7a66beacd8b3cf6a5c4e477a5cac2
MD5 c58938a4a3c3d66fbbbcf9af058812e6
BLAKE2b-256 14c32d2d59405fd496e1a5b23f775ed5279586aac41f6f4d8e28cb2c56986c91

See more details on using hashes here.

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