anipy-cli 2.7.31__py3-none-any.whl → 3.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of anipy-cli might be problematic. Click here for more details.

Files changed (62) hide show
  1. anipy_cli/__init__.py +2 -20
  2. anipy_cli/arg_parser.py +30 -20
  3. anipy_cli/cli.py +66 -0
  4. anipy_cli/clis/__init__.py +15 -0
  5. anipy_cli/clis/base_cli.py +32 -0
  6. anipy_cli/clis/binge_cli.py +83 -0
  7. anipy_cli/clis/default_cli.py +104 -0
  8. anipy_cli/clis/download_cli.py +111 -0
  9. anipy_cli/clis/history_cli.py +93 -0
  10. anipy_cli/clis/mal_cli.py +71 -0
  11. anipy_cli/{cli/clis → clis}/seasonal_cli.py +9 -6
  12. anipy_cli/colors.py +4 -4
  13. anipy_cli/config.py +308 -87
  14. anipy_cli/discord.py +34 -0
  15. anipy_cli/mal_proxy.py +216 -0
  16. anipy_cli/menus/__init__.py +5 -0
  17. anipy_cli/{cli/menus → menus}/base_menu.py +8 -12
  18. anipy_cli/menus/mal_menu.py +660 -0
  19. anipy_cli/menus/menu.py +194 -0
  20. anipy_cli/menus/seasonal_menu.py +263 -0
  21. anipy_cli/prompts.py +231 -0
  22. anipy_cli/util.py +262 -0
  23. anipy_cli-3.0.0.dist-info/METADATA +67 -0
  24. anipy_cli-3.0.0.dist-info/RECORD +26 -0
  25. {anipy_cli-2.7.31.dist-info → anipy_cli-3.0.0.dist-info}/WHEEL +1 -2
  26. anipy_cli-3.0.0.dist-info/entry_points.txt +3 -0
  27. anipy_cli/cli/__init__.py +0 -1
  28. anipy_cli/cli/cli.py +0 -37
  29. anipy_cli/cli/clis/__init__.py +0 -6
  30. anipy_cli/cli/clis/base_cli.py +0 -43
  31. anipy_cli/cli/clis/binge_cli.py +0 -54
  32. anipy_cli/cli/clis/default_cli.py +0 -46
  33. anipy_cli/cli/clis/download_cli.py +0 -92
  34. anipy_cli/cli/clis/history_cli.py +0 -64
  35. anipy_cli/cli/clis/mal_cli.py +0 -27
  36. anipy_cli/cli/menus/__init__.py +0 -3
  37. anipy_cli/cli/menus/mal_menu.py +0 -411
  38. anipy_cli/cli/menus/menu.py +0 -108
  39. anipy_cli/cli/menus/seasonal_menu.py +0 -177
  40. anipy_cli/cli/util.py +0 -125
  41. anipy_cli/download.py +0 -467
  42. anipy_cli/history.py +0 -83
  43. anipy_cli/mal.py +0 -651
  44. anipy_cli/misc.py +0 -227
  45. anipy_cli/player/__init__.py +0 -1
  46. anipy_cli/player/player.py +0 -35
  47. anipy_cli/player/players/__init__.py +0 -3
  48. anipy_cli/player/players/base.py +0 -107
  49. anipy_cli/player/players/mpv.py +0 -19
  50. anipy_cli/player/players/mpv_control.py +0 -37
  51. anipy_cli/player/players/syncplay.py +0 -19
  52. anipy_cli/player/players/vlc.py +0 -18
  53. anipy_cli/query.py +0 -100
  54. anipy_cli/run_anipy_cli.py +0 -14
  55. anipy_cli/seasonal.py +0 -112
  56. anipy_cli/url_handler.py +0 -470
  57. anipy_cli/version.py +0 -1
  58. anipy_cli-2.7.31.dist-info/LICENSE +0 -674
  59. anipy_cli-2.7.31.dist-info/METADATA +0 -162
  60. anipy_cli-2.7.31.dist-info/RECORD +0 -43
  61. anipy_cli-2.7.31.dist-info/entry_points.txt +0 -2
  62. anipy_cli-2.7.31.dist-info/top_level.txt +0 -1
@@ -1,162 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: anipy_cli
3
- Version: 2.7.31
4
- Summary: Little tool in python to watch anime from the terminal (the better way to watch anime)
5
- Home-page: https://github.com/sdaqo/anipy-cli
6
- Author: sdaqo
7
- Author-email: sdaqo.dev@protonmail.com
8
- License: GPL-3.0
9
- Requires-Python: >3.9
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Requires-Dist: better-ffmpeg-progress
13
- Requires-Dist: pycryptodomex
14
- Requires-Dist: requests
15
- Requires-Dist: python-dateutil
16
- Requires-Dist: pypresence
17
- Requires-Dist: m3u8
18
- Requires-Dist: setuptools
19
- Requires-Dist: beautifulsoup4
20
- Requires-Dist: tqdm
21
- Requires-Dist: moviepy
22
- Requires-Dist: pyyaml
23
- Requires-Dist: python-mpv
24
- Requires-Dist: yaspin
25
-
26
- ![waving](https://capsule-render.vercel.app/api?type=waving&height=200&text=sdaqo/anipy-cli&fontAlign=60&fontAlignY=40&color=021224&fontColor=b0b8b2&animation=fadeIn)
27
-
28
- https://user-images.githubusercontent.com/63876564/162056019-ed0e7a60-78f6-4a2c-bc73-9be5dc2a4f07.mp4
29
-
30
- ### Little tool written in python to watch and download anime from the terminal (the better way to watch anime), also applicable as an API.
31
-
32
- ### Scrapes: https://gogoanime.gg
33
-
34
- #### If you dont like to use a cli there is a GUI and other versions [here](#other-versions).
35
-
36
- # Contents
37
-
38
- - [Installation](#Installation)
39
- - [Usage](#Usage)
40
- - [Library Usage](#library-usage)
41
- - [What it can do](#what-it-can-do)
42
- - [Other Versions](#other-versions)
43
- - [Credits](#Credits)
44
-
45
- # Installation
46
-
47
- <a href="https://pypi.org/project/anipy-cli/">![PyPI](https://img.shields.io/pypi/v/anipy-cli?style=for-the-badge)</a>
48
-
49
- Recommended installation:
50
-
51
- `python3 -m pip install anipy-cli --upgrade`
52
-
53
- Directly from the repo (may be newer):
54
-
55
- `python3 -m pip install git+https://github.com/sdaqo/anipy-cli`
56
-
57
- For video playback mpv is needed. Get it here: https://mpv.io/installation/
58
-
59
- If you would like to use another video player, you will need to specify its path in the config file.
60
-
61
- Optionally, you can install [ffmpeg](https://ffmpeg.org/download.html) to download m3u8 playlists instead of using the internal downloader. You can use it with the `-f` flag. This is something you should use if the internal downlaoder fails since ffmpeg is comparatively slow.
62
-
63
- ### Config
64
-
65
- When you start the program for the first time the config file gets created automatically
66
-
67
- Places of the config:
68
-
69
- - Linux: ~/.config/anipy-cli/config.yaml
70
- - Windows: %USERPROFILE%/AppData/Local/anipy-cli/config.yaml
71
- - MacOS: ~/.config/anipy-cli/config.yaml
72
-
73
- [Sample Config](https://github.com/sdaqo/anipy-cli/blob/master/docs/sample_config.yaml)
74
-
75
- **Attention Windows Users Using MPV:** If you activate the option `reuse_mpv_window`, you will have to download and put the `mpv-2.dll` in your path. To get it go look here: https://sourceforge.net/projects/mpv-player-windows/files/libmpv/
76
-
77
- **Attention Windows Users on Config File Placement:** If you have downloaded Python from the Microsoft Store, your config file will be cached inside of your Python's AppData. For example: `%USERPROFILE%\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\Local\anipy-cli\config.yaml`.
78
-
79
- # Usage
80
-
81
- ```
82
- usage: anipy-cli [-D | -B | -H | -S | -M | --delete-history] [-q QUALITY] [-f] [-o] [-a] [-p {mpv,vlc,syncplay,mpvnet}] [-l LOCATION] [--mal-password MAL_PASSWORD] [-h] [-v] [--config-path]
83
-
84
- Play Animes from gogoanime in local video-player or Download them.
85
-
86
- Actions:
87
- Different Actions and Modes of anipy-cli (only pick one)
88
-
89
- -D, --download Download mode. Download multiple episodes like so: first_number-second_number (e.g. 1-3)
90
- -B, --binge Binge mode. Binge multiple episodes like so: first_number-second_number (e.g. 1-3)
91
- -H, --history Show your history of watched anime
92
- -S, --seasonal Seasonal Anime mode. Bulk download or binge watch newest episodes.
93
- -M, --my-anime-list MyAnimeList mode. Similar to seasonal mode, but using MyAnimeList (requires MAL account credentials to be set in config).
94
- --delete-history Delete your History.
95
-
96
- Options:
97
- Options to change the behaviour of anipy-cli
98
-
99
- -q QUALITY, --quality QUALITY
100
- Change the quality of the video, accepts: best, worst or 360, 480, 720 etc. Default: best
101
- -f, --ffmpeg Use ffmpeg to download m3u8 playlists, may be more stable but is way slower than internal downloader
102
- -o, --no-seas-search Turn off search in season. Disables prompting if GoGoAnime is to be searched for anime in specific season.
103
- -a, --auto-update Automatically update and download all Anime in seasonals list from start EP to newest.
104
- -p {mpv,vlc,syncplay,mpvnet}, --optional-player {mpv,vlc,syncplay,mpvnet}
105
- Override the player set in the config.
106
- -l LOCATION, --location LOCATION
107
- Override all configured download locations
108
- --mal-password MAL_PASSWORD
109
- Provide password for MAL login (overrides password set in config)
110
-
111
- Info:
112
- Info about the current anipy-cli installation
113
-
114
- -h, --help show this help message and exit
115
- -v, --version show program's version number and exit
116
- --config-path Print path to the config file.
117
- ```
118
-
119
- # What it can do
120
-
121
- - Faster than watching in the browser.
122
- - Play Animes in Your Local video player
123
- - Select a quality in which the video will be played/downloaded.
124
- - Download Animes
125
- - History of watched Episodes
126
- - Binge Mode to watch a range of episodes back-to-back.
127
- - Seasonal Mode to bulk download or binge watch the latest episodes of animes you pick
128
- - Configurable with config
129
- - (**Optional**) MAL Mode: Like seasonal mode, but uses your anime list at [MyAnimeList.net](https://myanimelist.net/)
130
- - (**Optional**) Search GoGo for animes in specific seasons. Available for the download cli, seasonal mode and MAL mode. Turn it off with -o flag.
131
- - (**Optional**) Discord Presence for the anime you currently watch. This is off by default, activate it in the config (-c)
132
- - (**Optional**) Ffmpeg to download m3u8 playlists, may be more stable but is slower than internal downloader.
133
-
134
- # Library Usage
135
-
136
- Documentation can be found [here](https://github.com/sdaqo/anipy-cli/blob/master/docs/anipycli_as_lib.py)
137
-
138
- #### Important:
139
-
140
- To import the library, don't import `anipy-cli`, but `anipy_cli` (no '-' is allowed)
141
-
142
- # Advanced Usage Examples
143
- #### Little example of using anipy-cli for automatically keeping anime library up-to-date:
144
- ```
145
- # Cronjob runs every 2 minutes and checks whether anipy-cli is still running or not
146
- # (only run the job if last one is finished)
147
-
148
- */2 * * * * username pidof -x anipy-cli || anipy-cli -Ma >> /var/log/anipy-cli.log
149
- ```
150
-
151
- # Other versions
152
-
153
- - GUI Frontend by me (WIP): https://github.com/sdaqo/anipy-gui
154
- - Dmenu script by @Dabbing-Guy: https://github.com/Dabbing-Guy/anipy-dmenu
155
- - Ulauncher extension by @Dankni95 (not maintained):
156
- https://github.com/Dankni95/ulauncher-anime
157
-
158
- # Credits
159
-
160
- #### Heavily inspired by https://github.com/pystardust/ani-cli/
161
-
162
- #### All contributors for contributing
@@ -1,43 +0,0 @@
1
- anipy_cli/__init__.py,sha256=tfcfNum_d0E-4DK3VxWZDcBWxaoizF_lladUzYh-AXk,1209
2
- anipy_cli/arg_parser.py,sha256=TibvBABk9ou0Jy5Kp2wgstLyNiMpO9XzZccC0d9Ivh8,4846
3
- anipy_cli/colors.py,sha256=dwDpMNCYrHZs8gXhUKVLnMzaW3payxpU6lE4V8nvzn4,919
4
- anipy_cli/config.py,sha256=DcP7_v3aSCH7RdfheySp4tU_bvHyHAZjxwk576_lk-Q,5820
5
- anipy_cli/download.py,sha256=vTTyOiUw8ohoMFE0aScceEURHWKEQNzLLR371zQVhHU,16243
6
- anipy_cli/history.py,sha256=oSTymLCyMLRMr5fS0UsnTASZ4fD3HxeRNtVBdOrX2hY,2190
7
- anipy_cli/mal.py,sha256=TFEgtMx574fkkc-UsxW_Y6D7IrIq9a9mET2voOfSkSY,22912
8
- anipy_cli/misc.py,sha256=E3KLAJH7XvOS_lB0IT_68l41aCoBs__WdbQ2-Nju16M,6161
9
- anipy_cli/query.py,sha256=RpWNLBl8kPYFO9QYnMU2F1tEsAyXWaHggglc1zD3x_Y,3341
10
- anipy_cli/run_anipy_cli.py,sha256=1IknhTjef5MOssNldroIqq1nR45KfaR2uY1Lde6fWl4,222
11
- anipy_cli/seasonal.py,sha256=-OkwsxS0OuTJi8720XIcOTSMhdZybFrokWUwU9wuVnA,3096
12
- anipy_cli/url_handler.py,sha256=aK0pdmwxq9k4IMmiXJU2gjanOZZfWYeS5wt3gwEU4qI,13946
13
- anipy_cli/version.py,sha256=H9d8z09YkK62r57r42V8SElEm9AM-d4kpRUsIqnc-Ps,23
14
- anipy_cli/cli/__init__.py,sha256=8CoRWWXOok498eMRjWQ3hxa5VtdpEwbiP-Pxuv8dSQI,38
15
- anipy_cli/cli/cli.py,sha256=_inXf9Wkn72wGt3lyc1uZ_3tB1IfwSsQQ0mVHX1pzAM,975
16
- anipy_cli/cli/util.py,sha256=SvvgNu9Q_DYESUx0DtiZICeCZlRNA1lXTD8s8yl7Tc4,4123
17
- anipy_cli/cli/clis/__init__.py,sha256=LzSGaV1hyYQv9P93IoSOX_pQ6enMGBHrev46WZm2ijU,316
18
- anipy_cli/cli/clis/base_cli.py,sha256=I43kNPBxyhILXUcUo-saRvq3yRIzvd34_XkqDtGoS9U,788
19
- anipy_cli/cli/clis/binge_cli.py,sha256=Xz3SFeOJNK7JoAtmFgvRo89liuwd4Q-SMBbe4085CME,1648
20
- anipy_cli/cli/clis/default_cli.py,sha256=gEnteWX0qnmBCiG6YbE50HscmSex-BZ7RAY-prysJsU,1285
21
- anipy_cli/cli/clis/download_cli.py,sha256=BWAE3xwfpm5M7oaMGRiVsGYaUMZukDFNSc6GbOuoBBY,3006
22
- anipy_cli/cli/clis/history_cli.py,sha256=CHqFFgU7uQK35A5g1h2O8akktEk9pON4faE9_rLVK_E,1970
23
- anipy_cli/cli/clis/mal_cli.py,sha256=ZAZvdBe0yHIwzIZeVH-pD087BCNiUY9O26SOI_1AA34,618
24
- anipy_cli/cli/clis/seasonal_cli.py,sha256=picUw_29LxVBNx6RCn41BHCx_F_vG3SWTV6FsHpX3Yw,612
25
- anipy_cli/cli/menus/__init__.py,sha256=EhiO-cZwEqgcn36kJGkoTjDQEewUnQOOCtKRTIFhdog,150
26
- anipy_cli/cli/menus/base_menu.py,sha256=TKTeKnK1WjQLQkijEs9ZzAq0KU2Ft-oLukRJ9TwfM5A,1180
27
- anipy_cli/cli/menus/mal_menu.py,sha256=XfUc9SpC-uRXpZoOakPJ3Kfn9_8Ylke0as1J5FiZYSQ,15849
28
- anipy_cli/cli/menus/menu.py,sha256=h2fofKAwxla8JHzvblWA_MlOIGCwtN27kIH-mTaN4VI,3469
29
- anipy_cli/cli/menus/seasonal_menu.py,sha256=sFTx6dx5YyEfeT6aEdmiMTYE7CuOh5Vsqqh73z9HMjU,5869
30
- anipy_cli/player/__init__.py,sha256=RMzxEYGMoXUCaT4RrQMZ2tSK_ce7ybClzTietAo8b6A,63
31
- anipy_cli/player/player.py,sha256=xCtz2HXTULhYcBq7CkMFY70JQLG1jxPBO0c857P6Sxg,1027
32
- anipy_cli/player/players/__init__.py,sha256=o-hU4qxe8DED_nww7SNyFW955ss1g9uIuFJHT1BRFuk,145
33
- anipy_cli/player/players/base.py,sha256=U1IND4OTlQNvNE_RDzu_1bDXCXz4coUi1b5ZA-8PQFw,2762
34
- anipy_cli/player/players/mpv.py,sha256=vgYk1t7K49HYtxv-BvWy4aGSf8I6bpDERgI0Y4hru24,602
35
- anipy_cli/player/players/mpv_control.py,sha256=KOlntvOFqVtPWu5GA_8i3uegBvf_jKw1zbH3KxutAZg,907
36
- anipy_cli/player/players/syncplay.py,sha256=ORVuUw60VS7u77ur41ZSSeAR9IJR5WyPctuofGNxNP4,612
37
- anipy_cli/player/players/vlc.py,sha256=skHCYyvb8XixommTY4AbJvhTi7TOfhhF0O5TNsnsKOo,564
38
- anipy_cli-2.7.31.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
39
- anipy_cli-2.7.31.dist-info/METADATA,sha256=l-c-ARcCqwTZCMXjW3-VTTL6YP2icZ-GcWA5OcPO4qY,7010
40
- anipy_cli-2.7.31.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
41
- anipy_cli-2.7.31.dist-info/entry_points.txt,sha256=WBLF69tulX86690ET947odYU32Ketdm3pxnYkQa83IM,59
42
- anipy_cli-2.7.31.dist-info/top_level.txt,sha256=C40LSHw7Rvit25UkpsAU7ITLSOX6zqTcHWxtOpHem_M,10
43
- anipy_cli-2.7.31.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- anipy-cli = anipy_cli.run_anipy_cli:main
@@ -1 +0,0 @@
1
- anipy_cli