makeTorrent
A basic python library for generating single and multi-file torrents.
Usage
Basic usage:
from makeTorrent import makeTorrent
mk = makeTorrent(announce='http://example.com/announce')
At this point the makeTorrent class contains a dictionary, which can be printed either as a dict or as a bencoded string (torrent format).
To add files, use either the multi_file class or the single_file class:
mk.multi_file('/path/to/directory')
with open('my.torrent') as tf:
tf.write(mk.getBencoded())
The same method can be used with mk.single_file with just pointing out a single file.
Notes
There are a number of items that can be added when initializing the class:
mk = makeTorrent(
announce='http://example.com/announce',
comment='Test Torrent',
httpseeds=['http://example.com/file.iso'],
announcelist=[['http://announce1.example.com'],['http://announce2.example.com']]
)
Metadata
Release files for makeTorrent 0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| makeTorrent-0.14.tar.gz | 2.7 kB | Without provenance | Details for makeTorrent-0.14.tar.gz |
Release files / makeTorrent-0.14.tar.gz
| Download URL | makeTorrent-0.14.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10fb2d91be49fb04f9aab8b6a40bbd8a3e19877f0bad67086c1479c2a4886184
|
|
BLAKE2b-256 checksum How to use checksums |
20f4c488fcb774aadaa73ffa381065ecc656de8ea094fb9bcab03af30bedced3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for makeTorrent 0.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.