Skip to content

Commit

Permalink
Re-upload package as nyaacli. (Closes #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvictorfs committed Nov 17, 2019
1 parent 2ca861b commit 062e28c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Nyaa-cli
# Nyaa_cli

A CLI for downloading Anime from https://nyaa.si making use of their RSS Feed and [python-libtorrent](https://github.com/arvidn/libtorrent/blob/RC_1_2/docs/python_binding.rst)

Expand All @@ -14,7 +14,7 @@ A CLI for downloading Anime from https://nyaa.si making use of their RSS Feed an

## Installing

- `python3 -m pip install nyaa-cli --user`
- `python3 -m pip install nyaa_cli --user`
- *Note:* python-libtorrent will still need to be downloaded separately as shown below

- This Program depends on python3-libtorrent, which can be installed using Apt with `sudo apt install python3-libtorrent` or can be built from source here: [python-libtorrent](https://github.com/arvidn/libtorrent/blob/RC_1_2/docs/python_binding.rst)
Expand All @@ -23,12 +23,12 @@ A CLI for downloading Anime from https://nyaa.si making use of their RSS Feed an

## Usage

- **Help:** `nyaa --help` | `nyaa-cli --help`
- **Help:** `nyaa --help` or `nyaa-cli --help`

- `nyaa "Anime Name" <Episode Number (Optional)> -o <Output Folder (Default: ~/Videos/Anime)>`
- **Example:**
```bash
# Downloading Episode 14 of 'Steins;gate' to '~/Anime/Steins;Gate' folder
# Downloading Episode 14 of 'Steins;gate' to '~/Anime/Steins;Gate'
nyaa "Steins;Gate" 14 -o ~/Anime/Steins\;Gate
```
- Then select the entry you want to Download
4 changes: 2 additions & 2 deletions nyaacli/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def main(anime: str, episode: int, output: str):
\b
Usage:
\33[92mnyaa-cli \33[36m"Anime Name" \33[33m<Episode Number (Optional)> \33[34m-o <Output Folder (Default = '~/Videos/Anime')>\033[0m
\33[92mnyaa \33[36m"Anime Name" \33[33m<Episode Number (Optional)> \33[34m-o <Output Folder (Default = '~/Videos/Anime')>\033[0m
\b
Example:
\33[92mnyaa-cli \33[36m"Kimetsu no Yaiba" \33[33m19 \33[34m-o "My/Animes/Folder/Kimetsu_No_Yaiba/\033[0m
\33[92mnyaa \33[36m"Kimetsu no Yaiba" \33[33m19 \33[34m-o "My/Animes/Folder/Kimetsu_No_Yaiba/\033[0m
"""
torrent_search = search_torrent(anime, episode)

Expand Down
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
[tool.poetry]
name = "nyaa-cli"
name = "nyaacli"
version = "0.1.2"
description = "A CLI for downloading Anime from https://nyaa.si"
authors = ["John Victor <johnvictorfs@gmail.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/johnvictorfs/nyaa-cli"

keywords = ["CLI", "anime"]

classifiers = [
"Environment :: Console",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]

[tool.poetry.dependencies]
python = "^3.7"
feedparser = "^5.2"
guessit = "^3.0"
inquirer = "^2.6"
click = "^7.0"
colorama = "^0.4.1"
dataclasses = { version = "^0.7", python = "~3.6" }

[tool.poetry.dev-dependencies]
autopep8 = "^1.4"
Expand All @@ -25,6 +33,9 @@ flake8 = "^3.7"
nyaa-cli = 'nyaacli.cli:main'
nyaa = 'nyaacli.cli:main'

[tool.flake8]
max-line-length = 140

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
Expand Down

0 comments on commit 062e28c

Please sign in to comment.