Skip to main content

A Python CLI tool for creating torrent files

Project description

Torrent Creator

Torrent Creator is a Python CLI tool that allows users to create torrent files easily. It supports both single-file and multi-file torrents, platform detection (Windows/Linux), piece size selection, and more. It also generates magnet URIs based on user preferences.

Features

  • Create single-file or multi-file torrents: Supports generating torrents from directories and individual files.
  • Platform Detection: Automatically detects whether the script is running on Windows or Linux and stores configuration (.env) in the appropriate location.
    • Windows: .env file created in C:/torrent-creator/.env
    • Linux: .env file created in /home/<username>/.env
  • Configurable Piece Size: Supports customizable piece size from 256 KB to 16 MB.
  • Magnet URI Generation: Optionally prints a magnet URI after the torrent is created.
  • Override Configuration via CLI: Allows overriding .env values like output path, announce URL, piece size, and more via command-line arguments.
  • Interactive Setup: On the first run, the script will prompt the user for necessary configurations and store them in the .env file.
  • Reset Configuration: Reset the .env file and reconfigure all options using --reset-env.

Installation

Requirements

  • Python 3.x
  • bencodepy: For creating torrent files.
  • python-dotenv: For reading and writing the .env configuration file.

To install the required dependencies, run:

pip install bencodepy python-dotenv

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

torrent_creator-1.1.6.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torrent_creator-1.1.6-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file torrent_creator-1.1.6.tar.gz.

File metadata

  • Download URL: torrent_creator-1.1.6.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for torrent_creator-1.1.6.tar.gz
Algorithm Hash digest
SHA256 f5324fa6829ea8f65e6031fc4256499212db8908a323e317ac98cb09120f9591
MD5 fdab2343dab13f0e19440c81a6136b68
BLAKE2b-256 8d947ae67a643b96b2aa2842f9bd0f2ad50aabc1ca7686c52fda8fa08b730e7a

See more details on using hashes here.

File details

Details for the file torrent_creator-1.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for torrent_creator-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 daa74a0c060972ad126d4c1d8c76f31b0c397184ce46370fa318098bf6ef48fe
MD5 54cc6a78eb7a2c809d59de7b0a18259d
BLAKE2b-256 234416228d5a7db6a25262ce266a57e3160a4e9524aeaa9adeae2544cb0f3fae

See more details on using hashes here.

Supported by

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