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:
.envfile created inC:/torrent-creator/.env - Linux:
.envfile created in/home/<username>/.env
- Windows:
- 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
.envvalues 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
.envfile. - Reset Configuration: Reset the
.envfile and reconfigure all options using--reset-env.
Installation
Requirements
- Python 3.x
bencodepy: For creating torrent files.python-dotenv: For reading and writing the.envconfiguration 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5324fa6829ea8f65e6031fc4256499212db8908a323e317ac98cb09120f9591
|
|
| MD5 |
fdab2343dab13f0e19440c81a6136b68
|
|
| BLAKE2b-256 |
8d947ae67a643b96b2aa2842f9bd0f2ad50aabc1ca7686c52fda8fa08b730e7a
|
File details
Details for the file torrent_creator-1.1.6-py3-none-any.whl.
File metadata
- Download URL: torrent_creator-1.1.6-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daa74a0c060972ad126d4c1d8c76f31b0c397184ce46370fa318098bf6ef48fe
|
|
| MD5 |
54cc6a78eb7a2c809d59de7b0a18259d
|
|
| BLAKE2b-256 |
234416228d5a7db6a25262ce266a57e3160a4e9524aeaa9adeae2544cb0f3fae
|