Skip to content

Commit 485d5b7

Browse files
committed
Merge branch 'develop'
2 parents 9da376c + 53dbc1f commit 485d5b7

File tree

13 files changed

+987
-854
lines changed

13 files changed

+987
-854
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
docs/build/
22
src/__pycache__/
3+
Pipfile.lock
4+
dist
5+
src/py3createtorrent.egg-info
6+
build

BUILD.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Building
2+
3+
python setup.py sdist
4+
python setup.py bdist_wheel
5+
6+
# Uploading
7+
8+
twine upload dist/*
9+
twine upload --repository testpypi dist/*
10+
11+
# Testing
12+
13+
pip install py3createtorrent
14+
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple py3createtorrent

LICENSE renamed to LICENSE.txt

File renamed without changes.

Pipfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
sphinx = "~=3.1"
8+
mypy = "~=0.782"
9+
yapf = "~=0.30"
10+
twine = "*"
11+
12+
[packages]
13+
"bencode.py" = "~=4.0"

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
py3createtorrent
2+
================
3+
4+
*Create torrents via command line!*
5+
6+
py3createtorrent is a comprehensive shell/commandline utility for creating torrents (Linux & Windows).
7+
8+
Features
9+
--------
10+
11+
Some of the features:
12+
13+
* you can create **huge torrents** for any amount of data
14+
* you can add a **comment** to the torrent file
15+
* you can create **private torrents** (disabled DHT, ...)
16+
* you can create torrents with **multiple trackers**
17+
* you can create **trackerless torrents** (not yet released, but already implemented in develop branch)
18+
* you can add **webseeds** to torrents
19+
* you can **exclude specific files/folders**
20+
* you can exclude files/folders based on **regular expressions**
21+
* you can specify **custom piece sizes**
22+
* you can specify custom creation dates
23+
24+
Basic usage
25+
-----------
26+
27+
Creating a torrent is as simple as:
28+
29+
py3createtorrent -t udp://tracker.opentrackr.org:1337/announce file_or_folder
30+
31+
The shortcut ``bestN`` can be used for conveniently adding the best N trackers
32+
from [ngosang/trackerslist](https://github.com/ngosang/trackerslist). Example:
33+
34+
py3createtorrent -t best3 file_or_folder
35+
36+
Multiple trackers can also be specified manually by using `-t` multiple times, for example:
37+
38+
py3createtorrent -t udp://tracker.opentrackr.org:1337/announce -t udp://tracker.coppersurfer.tk:6969/announce file_or_folder
39+
40+
Install
41+
-------
42+
43+
You can install py3createtorrent by executing:
44+
45+
pip3 install py3createtorrent
46+
47+
Of course, you need to have Python 3 installed on your system. py3createtorrent requires Python 3.5 or later.
48+
49+
Full documentation
50+
------------------
51+
52+
https://py3createtorrent.readthedocs.io/en/develop/user.html

docs/source/changelog.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
Changelog
22
=========
33

4+
Version 1.0.0b1 (beta version)
5+
------------------------------
6+
7+
*Release date: 2021/01/04*
8+
9+
* changed: **requires Python 3.5+ now**
10+
* changed: specifying trackers is now optional with the new ``-t`` switch, thus **trackerless torrents are now
11+
possible**
12+
* added: **bestN shortcut**! It is now possible to add the best N trackers from `ngosang/trackerslist <https://github.com/ngosang/trackerslist>`_
13+
by using the new `bestN shortcut <user.html#bestn-automatically-add-the-best-trackers>`__
14+
* changed: use **external JSON files for configuration**, by default try to load ``.py3createtorrent.cfg``
15+
from user's home directory
16+
* added: DHT bootstrap nodes can now be specified with the new ``--node`` switch (doing so is recommended for
17+
trackerless torrents)
18+
* added: **webseed support** with the new ``--webseed`` switch (GetRight style, i.e. `<http://bittorrent.org/beps/bep_0019.html>`_)
19+
* changed: increased max piece size to 16 MiB
20+
* changed: show warning if piece size is not a multiple of 16 KiB
21+
* changed: updated the default trackers (openbt is now opentrackr, dropped publicbt, added cyberia and coppersurfer)
22+
* added: Pipfile and Pipfile.lock for pipenv support
23+
* added: README.md
24+
* changed: improved performance of single file torrent creation
25+
* refactored: switched to bencode.py module for encoding the torrent data
26+
* refactored: switched from optparse to argparse
27+
* refactored: reformatted code with yapf, using a new column limit of 120
28+
* refactored: added type hints to enable analysis with mypy (we use Python's typing module which was added in
29+
Python 3.5, thus Python 3.5 is the new minimum version that is required)
30+
431
Version 0.9.7
532
-------------
633

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = '0.9'
51+
version = '1.0'
5252
# The full version, including alpha/beta/rc tags.
53-
release = '0.9.7'
53+
release = '1.0.0.dev4'
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.

docs/source/developer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Developer documentation
44
Todo
55
----
66

7-
* use configuration files instead of requiring users to edit the script
7+
* implement multi-threading
88
* add the ability to define how the announce-list should be constructed in detail
99
(tracker tiers etc., see `Multitracker Metadata
1010
Extension <http://bittorrent.org/beps/bep_0012.html>`_)

0 commit comments

Comments
 (0)