Skip to content

Commit d49515c

Browse files
authored
Merge pull request #144 from alexpdev/v0.8
Official Bump v 0.8.0
2 parents 92395fc + 6330fba commit d49515c

File tree

22 files changed

+863
-806
lines changed

22 files changed

+863
-806
lines changed

CHANGELOG.md

Lines changed: 202 additions & 202 deletions
Large diffs are not rendered by default.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include CHANGELOG.md
22
include requirements.txt
33
include Makefile
4-
include .cbuld
4+
include .cbuild
55
include tox.ini
66

77
recursive-include assets *

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
![torrentfile](https://github.com/alexpdev/torrentfile/blob/master/site/images/torrentfile.png?raw=true)
44

5-
------
5+
* * *
66

77
![GitHub repo size](https://img.shields.io/github/repo-size/alexpdev/torrentfile?color=orange)
88
![GitHub License](https://img.shields.io/github/license/alexpdev/torrentfile?color=red&logo=apache)
99
![PyPI - Downloads](https://img.shields.io/pypi/dm/torrentfile?color=brown)
1010
![GitHub Last Commit](https://badgen.net/github/last-commit/alexpdev/torrentfile?color=blue&icon=github)
1111
[![CI](https://github.com/alexpdev/TorrentFile/actions/workflows/pyworkflow.yml/badge.svg?branch=master&event=push)](https://github.com/alexpdev/torrentfile/actions/workflows/pyworkflow.yml)
1212
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/b67ff65b3d574025b65b6587266bbab7)](https://www.codacy.com/gh/alexpdev/torrentfile/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/torrentfile&utm_campaign=Badge_Coverage)
13-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b67ff65b3d574025b65b6587266bbab7)](https://www.codacy.com/gh/alexpdev/torrentfile/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/torrentfile&utm_campaign=Badge_Grade)
13+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b67ff65b3d574025b65b6587266bbab7)](https://www.codacy.com/gh/alexpdev/torrentfile/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/torrentfile&utm_campaign=Badge_Grade)
1414
[![DeepSource](https://deepsource.io/gh/alexpdev/TorrentFile.svg/?label=active+issues&token=16Sl_dF7nTU8YgPilcqhvHm8)](https://deepsource.io/gh/alexpdev/torrentfile/)
1515
[![codecov](https://codecov.io/gh/alexpdev/torrentfile/branch/master/graph/badge.svg?token=EWF7NIL9SQ)](https://codecov.io/gh/alexpdev/torrentfile?color=navy&logo=codecov)
1616

@@ -21,22 +21,22 @@ validating bittorrent meta files (aka torrent files). _`torrentfile`_
2121
supports all versions of Bittorrent files, including hybrid meta files, and has
2222
full unicode support.
2323

24-
> A GUI frontend for this project can be found at [https://github.com/alexpdev/TorrentfileQt](https://github.com/alexpdev/TorrentfileQt)
24+
> A GUI frontend for this project can be found at <https://github.com/alexpdev/TorrentfileQt>
2525
2626
## 🔌 Requirements
2727

28-
- Python 3.6+
29-
- Tested on Linux, Windows and Mac
28+
- Python 3.6+
29+
- Tested on Linux, Windows and Mac
3030

3131
## 💻 Install
3232

33-
__via PyPi:__
33+
**via PyPi:**
3434

3535
```bash
3636
pip install torrentfile
3737
```
3838

39-
__via Git:__
39+
**via Git:**
4040

4141
```bash
4242
git clone https://github.com/alexpdev/torrentfile.git
@@ -51,7 +51,7 @@ pip install .
5151
Documentation can be found [here](https://alexpdev.github.io/torrentfile)
5252
or in the _`docs`_ directory.
5353

54-
>_torrentfile_ is under active development, and is subject to significant changes in the codebase between releases.
54+
> _torrentfile_ is under active development, and is subject to significant changes in the codebase between releases.
5555
5656
## 🚀 Usage
5757

@@ -69,9 +69,9 @@ If you encounter any bugs or would like to request a new feature please open a n
6969

7070
> PRs and other contributions are welcome
7171
72-
[https://github.com/alexpdev/torrentfile/issues](https://github.com/alexpdev/torrentfile/issues)
72+
<https://github.com/alexpdev/torrentfile/issues>
7373

74-
------
74+
* * *
7575

7676
## Usage Examples
7777

@@ -99,7 +99,7 @@ multitracker protocols.
9999
torrentfile create /path/to/content --private
100100
```
101101

102-
By default __`torrentfile`__ displays a progress bar indicating how much of the content
102+
By default **`torrentfile`** displays a progress bar indicating how much of the content
103103
has already been processed. To turn off this display you can either use `--quiet` mode in
104104
as a global flag or you can set the `--prog` flag to 0.
105105

@@ -111,7 +111,7 @@ torrentfile --quiet create /path/to/content
111111
torrentfile create /path/to/content --prog 0
112112
```
113113

114-
__`torrentfile`__ automatically extracts the name of the file or directory
114+
**`torrentfile`** automatically extracts the name of the file or directory
115115
if the content and saves the file to the current working directory with the
116116
extracted title.
117117

@@ -146,6 +146,7 @@ version. Options include `1`(v1 default), `2`(v2), or `3`(v1 & v2).
146146
```bash
147147
torrentfile create /path/to/content --meta-version 2
148148
```
149+
149150
```bash
150151
torrentfile create /path/to/content --meta-version 3
151152
```
@@ -173,9 +174,7 @@ torrentfile edit /path/to/content --tracker https://new.tracker.url1.com https:
173174

174175
You can use the `-h` flag for a full list of available fields that can be edited.
175176

176-
```
177-
torrentfile edit -h
178-
```
177+
torrentfile edit -h
179178

180179
### Create Magnet
181180

docs/Apache2/index.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -804,26 +804,26 @@ <h4 id="4-redistribution">4. Redistribution<a class="headerlink" href="#4-redist
804804
provided that You meet the following conditions:</p>
805805
<ul>
806806
<li><strong>(a)</strong> You must give any other recipients of the Work or Derivative Works a copy of
807-
this License; and</li>
807+
this License; and</li>
808808
<li><strong>(b)</strong> You must cause any modified files to carry prominent notices stating that You
809-
changed the files; and</li>
809+
changed the files; and</li>
810810
<li><strong>(c)</strong> You must retain, in the Source form of any Derivative Works that You distribute,
811-
all copyright, patent, trademark, and attribution notices from the Source form
812-
of the Work, excluding those notices that do not pertain to any part of the
813-
Derivative Works; and</li>
811+
all copyright, patent, trademark, and attribution notices from the Source form
812+
of the Work, excluding those notices that do not pertain to any part of the
813+
Derivative Works; and</li>
814814
<li><strong>(d)</strong> If the Work includes a “NOTICE” text file as part of its distribution, then any
815-
Derivative Works that You distribute must include a readable copy of the
816-
attribution notices contained within such NOTICE file, excluding those notices
817-
that do not pertain to any part of the Derivative Works, in at least one of the
818-
following places: within a NOTICE text file distributed as part of the
819-
Derivative Works; within the Source form or documentation, if provided along
820-
with the Derivative Works; or, within a display generated by the Derivative
821-
Works, if and wherever such third-party notices normally appear. The contents of
822-
the NOTICE file are for informational purposes only and do not modify the
823-
License. You may add Your own attribution notices within Derivative Works that
824-
You distribute, alongside or as an addendum to the NOTICE text from the Work,
825-
provided that such additional attribution notices cannot be construed as
826-
modifying the License.</li>
815+
Derivative Works that You distribute must include a readable copy of the
816+
attribution notices contained within such NOTICE file, excluding those notices
817+
that do not pertain to any part of the Derivative Works, in at least one of the
818+
following places: within a NOTICE text file distributed as part of the
819+
Derivative Works; within the Source form or documentation, if provided along
820+
with the Derivative Works; or, within a display generated by the Derivative
821+
Works, if and wherever such third-party notices normally appear. The contents of
822+
the NOTICE file are for informational purposes only and do not modify the
823+
License. You may add Your own attribution notices within Derivative Works that
824+
You distribute, alongside or as an addendum to the NOTICE text from the Work,
825+
provided that such additional attribution notices cannot be construed as
826+
modifying the License.</li>
827827
</ul>
828828
<p>You may add Your own copyright statement to Your modifications and may provide
829829
additional or different license terms and conditions for use, reproduction, or

docs/api/index.html

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,20 @@
450450
CLI Module
451451
</a>
452452

453+
</li>
454+
455+
<li class="md-nav__item">
456+
<a href="#functions" class="md-nav__link">
457+
Functions
458+
</a>
459+
460+
</li>
461+
462+
<li class="md-nav__item">
463+
<a href="#classes_1" class="md-nav__link">
464+
Classes
465+
</a>
466+
453467
</li>
454468

455469
<li class="md-nav__item">
@@ -766,6 +780,20 @@
766780
CLI Module
767781
</a>
768782

783+
</li>
784+
785+
<li class="md-nav__item">
786+
<a href="#functions" class="md-nav__link">
787+
Functions
788+
</a>
789+
790+
</li>
791+
792+
<li class="md-nav__item">
793+
<a href="#classes_1" class="md-nav__link">
794+
Classes
795+
</a>
796+
769797
</li>
770798

771799
<li class="md-nav__item">
@@ -1264,9 +1292,16 @@ <h2 id="cli-module"><code>CLI</code> Module<a class="headerlink" href="#cli-modu
12641292
<p>This module provides the primary command line argument parser for
12651293
the torrentfile package. The main_script function is automatically
12661294
invoked when called from command line, and parses accompanying arguments.</p>
1267-
<p>Functions:
1268-
main_script: process command line arguments and run program.
1269-
activate_logger: turns on debug mode and logging facility.</p></div>
1295+
<h2 id="functions">Functions<a class="headerlink" href="#functions" title="Permanent link">¤</a></h2>
1296+
<p>main_script :
1297+
process command line arguments and run program.
1298+
activate_logger :
1299+
turns on debug mode and logging facility.</p>
1300+
<h2 id="classes_1">Classes<a class="headerlink" href="#classes_1" title="Permanent link">¤</a></h2>
1301+
<p>Config : class
1302+
controls logging configuration
1303+
TorrentFileHelpFormatter : HelpFormatter
1304+
the command line help message formatter</p></div>
12701305
</div>
12711306
<div class="mkapi-section classes">
12721307
<div class="mkapi-section-name classes">
@@ -1291,11 +1326,11 @@ <h2 id="cli-module"><code>CLI</code> Module<a class="headerlink" href="#cli-modu
12911326
<div class="mkapi-section-body functions"><ul class="mkapi-items">
12921327
<li class="function"><code class="mkapi-item-name">execute</code><code class="mkapi-object-parenthesis">(</code><code class="mkapi-object-signature">args</code><code class="mkapi-object-parenthesis">)</code>
12931328
<span class="mkapi-item-type">(list)</span>
1294-
<span class="mkapi-item-dash">&mdash;</span> <span class="mkapi-item-description">Initialize Command Line Interface for torrentfile.</span></li>
1329+
<span class="mkapi-item-dash">&mdash;</span> <span class="mkapi-item-description">Execute program with provided list of arguments.</span></li>
12951330

12961331
<li class="function"><code class="mkapi-item-name">execute</code><code class="mkapi-object-parenthesis">(</code><code class="mkapi-object-signature">args</code><code class="mkapi-object-parenthesis">)</code>
12971332
<span class="mkapi-item-type">(list)</span>
1298-
<span class="mkapi-item-dash">&mdash;</span> <span class="mkapi-item-description">Initialize Command Line Interface for torrentfile.</span></li>
1333+
<span class="mkapi-item-dash">&mdash;</span> <span class="mkapi-item-description">Execute program with provided list of arguments.</span></li>
12991334

13001335
<li class="function"><code class="mkapi-item-name">main</code><code class="mkapi-object-parenthesis">(</code><code class="mkapi-object-parenthesis">)</code>
13011336

docs/changelog/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ <h2 id="version-071">Version 0.7.1<a class="headerlink" href="#version-071" titl
12251225
<ul>
12261226
<li>split CI integration into separate platform specific files</li>
12271227
<li>added new cli argument <code>--cwd</code> which changes the default save
1228-
to location to the current working directory (this will be default in future)</li>
1228+
to location to the current working directory (this will be default in future)</li>
12291229
<li>added unit tests to cover the new argument</li>
12301230
<li>Changed license to a the more permissive Apache 2 software license</li>
12311231
</ul>

docs/cli/index.html

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,20 @@
368368
<nav class="md-nav" aria-label="cli">
369369
<ul class="md-nav__list">
370370

371+
<li class="md-nav__item">
372+
<a href="#torrentfile.cli--functions" class="md-nav__link">
373+
Functions
374+
</a>
375+
376+
</li>
377+
378+
<li class="md-nav__item">
379+
<a href="#torrentfile.cli--classes" class="md-nav__link">
380+
Classes
381+
</a>
382+
383+
</li>
384+
371385
<li class="md-nav__item">
372386
<a href="#torrentfile.cli.Config" class="md-nav__link">
373387
Config
@@ -624,6 +638,20 @@
624638
<nav class="md-nav" aria-label="cli">
625639
<ul class="md-nav__list">
626640

641+
<li class="md-nav__item">
642+
<a href="#torrentfile.cli--functions" class="md-nav__link">
643+
Functions
644+
</a>
645+
646+
</li>
647+
648+
<li class="md-nav__item">
649+
<a href="#torrentfile.cli--classes" class="md-nav__link">
650+
Classes
651+
</a>
652+
653+
</li>
654+
627655
<li class="md-nav__item">
628656
<a href="#torrentfile.cli.Config" class="md-nav__link">
629657
Config
@@ -726,9 +754,16 @@ <h2 id="torrentfile.cli" class="doc doc-heading">
726754
<p>This module provides the primary command line argument parser for
727755
the torrentfile package. The main_script function is automatically
728756
invoked when called from command line, and parses accompanying arguments.</p>
729-
<p>Functions:
730-
main_script: process command line arguments and run program.
731-
activate_logger: turns on debug mode and logging facility.</p>
757+
<h4 id="torrentfile.cli--functions">Functions<a class="headerlink" href="#torrentfile.cli--functions" title="Permanent link">¤</a></h4>
758+
<p>main_script :
759+
process command line arguments and run program.
760+
activate_logger :
761+
turns on debug mode and logging facility.</p>
762+
<h4 id="torrentfile.cli--classes">Classes<a class="headerlink" href="#torrentfile.cli--classes" title="Permanent link">¤</a></h4>
763+
<p>Config : class
764+
controls logging configuration
765+
TorrentFileHelpFormatter : HelpFormatter
766+
the command line help message formatter</p>
732767

733768

734769

@@ -994,14 +1029,17 @@ <h4 id="torrentfile.cli.TorrentFileHelpFormatter.format_headers" class="doc doc-
9941029

9951030

9961031
<h3 id="torrentfile.cli.execute" class="doc doc-heading">
997-
<code class="highlight language-python"><span class="n">execute</span><span class="p">(</span><span class="n">args</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span></code>
1032+
<code class="highlight language-python"><span class="n">execute</span><span class="p">(</span><span class="n">args</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">list</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span></code>
9981033

9991034
<a href="#torrentfile.cli.execute" class="headerlink" title="Permanent link">¤</a></h3>
10001035

10011036

10021037
<div class="doc doc-contents ">
10031038

1004-
<p>Initialize Command Line Interface for torrentfile.</p>
1039+
<p>Execute program with provided list of arguments.</p>
1040+
<p>If no arguments are given then it defaults to using
1041+
sys.argv. This is the main entrypoint for the program
1042+
and command line interface.</p>
10051043

10061044
<table>
10071045
<thead>

0 commit comments

Comments
 (0)