1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
|
%global _empty_manifest_terminate_build 0
Name: python-AnilistPython
Version: 0.1.3
Release: 1
Summary: Anilist Python module for searching up anime, manga, characters info.
License: MIT Licence (MIT)
URL: https://github.com/ReZeroE/AnilistPython
Source0: https://mirrors.aliyun.com/pypi/web/packages/90/1d/83c6981c575fd404a3be2e1dae2e362aa3498ac24134f902016eae422d33/AnilistPython-0.1.3.tar.gz
BuildArch: noarch
Requires: python3-numpy
Requires: python3-pytest
%description
# AnilistPython





AniList Python library (anilist.co APIv2 wrapper) that allows you to **easily search up and retrieve anime, manga, animation studio, and character information.** This library is both beginner-friendly and offers the freedom for more experienced developers to interact with the retrieved information. Provides bot support.

## Version 0.1.3 Overview
This recent update for AnilistPython has resulted in a moderate change in the library's archetecture for increased efficiency and speed. Various features have also been added to the library. Listed below are some of the main additions and alterations made to the library.
**New features**:
1. Anime search by genre, year, and/or average score (finally!)
2. Offline anime retrieval support for anime - BETA
3. Manga search support
4. Auto setup feature that help new python programmers to setup required libraries automatically
Optimization and updates:
1. The lib now has its own prebuild anime database!
2. Anime, manga, and character search functions have all been optimized, making searches faster!
3. Improved the deepsearch feature in `.get_anime()`.
4. Manually selecting results feature is now a parameter instead of a seperate function (see usage below).
## How to use?
**Step One:** Library Installation
``` python
pip install AnilistPython==0.1.3
```
**Step Two:** Instance Creation
```python
from AnilistPython import Anilist
anilist = Anilist()
```
**Step Three**: Usage
The AnilistPython library has been split into three distinct sections. Each section possess a different set of functions used for retrieving data in that category. Please visit the full documentation for more info or skip to the General Function Overview section for usage.
- **Anime** - ([Documentation](https://github.com/ReZeroE/AnilistPython/wiki/Anime))
- **Manga** - ([Documentation](https://github.com/ReZeroE/AnilistPython/wiki/Manga))
- **Character** - ([Documentation](https://github.com/ReZeroE/AnilistPython/wiki/Character))
## General Function Overview
The following functions are supported by AnilistPyhon version 0.1.3. Only the default parameter has been displayed below. For more information, visit the [full documentation](https://github.com/ReZeroE/AnilistPython/wiki).
```python
# ANIME
anilist.get_anime("Owari no Seraph") # returns a dictionary containing info about owari no seraph
anilist.get_anime_with_id(126830) # returns a dictionary with Code Geass (ID:126830) info
anilist.get_anime_id("ReZero") # returns Re:Zero's ID on Anilist
anilist.print_anime_info("Madoka Magica") # prints all information regarding the anime Madoka Magica
# returns a list of anime with the given restrictions
anilist.search_anime(genre=['Action', 'Adventure', 'Drama'], year=[2016, 2019], score=range(80, 95))
#CHARACTER
anilist.get_character("Emilia") # returns a dictionary containing the info about Emilia-tan
anilist.get_character_with_id(13701) # returns a dictionary with Misaka Mikoto (ID:13701) info
anilist.get_character_id("Milim") # returns character Milim's ID on Anilist
anilist.print_anime_info("Kirito") # prints all information regarding the character Kirito
# MANGA
anilist.get_manga("Seraph of the End") # returns a dictionary containing info about seraph of the end
anilist.get_manga_with_id(113399) # returns a dictionary with Tearmoon (ID:113399) info
anilist.get_manga_id("Tearmoon Empire") # returns Tearmoon Empire's ID on Anilist (manga)
anilist.print_manga_info("Tensei Slime") # prints all information regarding the manga Tensei Slime
```
Note: The feature for manully selecting the top three search results in the terminal is now controlled by a parameter (`manual_select`) in .get functions. For more information, please visit the full documentation. A sample program that has manual select enabled would be:
```python
anilist.get_anime("Owari no Seraph", manual_select=True)
```
## Discord Bot Support
AnilistPython was originially designed to support various Discord Bot features in relation to anime, but through out the course of its development, more features became available to use by the general programs other than Discord bots. With that been said, the current version of AnilistPython has further optimized its functions for bot support. From the pre-formatted JSON file upon data retrieval to offline database support (see full documentation), it is now able to be implemented in bots with ease.
Upcoming AnilistPython Version 0.2.0 will provide functions to generate pre-formated Discord embeds (Anime, Manga, Character embeds) as well as other features that make AnilistPython bot implementations easy to use.
Sample anime discord bot supported by AnilistPython V0.1.3: [Anime C.C. Discord Bot](https://github.com/ReZeroE/Anime-Discord-Bot)
Note: Please make sure that parameter `manual_select` has not been set to True in bot implementations. (False by default)
## Credits
Lead Developer: Kevin L. (ReZeroE)
Special thanks to AniList's ApiV2 GraphQL Dev team for making this possible.
%package -n python3-AnilistPython
Summary: Anilist Python module for searching up anime, manga, characters info.
Provides: python-AnilistPython
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-AnilistPython
# AnilistPython





AniList Python library (anilist.co APIv2 wrapper) that allows you to **easily search up and retrieve anime, manga, animation studio, and character information.** This library is both beginner-friendly and offers the freedom for more experienced developers to interact with the retrieved information. Provides bot support.

## Version 0.1.3 Overview
This recent update for AnilistPython has resulted in a moderate change in the library's archetecture for increased efficiency and speed. Various features have also been added to the library. Listed below are some of the main additions and alterations made to the library.
**New features**:
1. Anime search by genre, year, and/or average score (finally!)
2. Offline anime retrieval support for anime - BETA
3. Manga search support
4. Auto setup feature that help new python programmers to setup required libraries automatically
Optimization and updates:
1. The lib now has its own prebuild anime database!
2. Anime, manga, and character search functions have all been optimized, making searches faster!
3. Improved the deepsearch feature in `.get_anime()`.
4. Manually selecting results feature is now a parameter instead of a seperate function (see usage below).
## How to use?
**Step One:** Library Installation
``` python
pip install AnilistPython==0.1.3
```
**Step Two:** Instance Creation
```python
from AnilistPython import Anilist
anilist = Anilist()
```
**Step Three**: Usage
The AnilistPython library has been split into three distinct sections. Each section possess a different set of functions used for retrieving data in that category. Please visit the full documentation for more info or skip to the General Function Overview section for usage.
- **Anime** - ([Documentation](https://github.com/ReZeroE/AnilistPython/wiki/Anime))
- **Manga** - ([Documentation](https://github.com/ReZeroE/AnilistPython/wiki/Manga))
- **Character** - ([Documentation](https://github.com/ReZeroE/AnilistPython/wiki/Character))
## General Function Overview
The following functions are supported by AnilistPyhon version 0.1.3. Only the default parameter has been displayed below. For more information, visit the [full documentation](https://github.com/ReZeroE/AnilistPython/wiki).
```python
# ANIME
anilist.get_anime("Owari no Seraph") # returns a dictionary containing info about owari no seraph
anilist.get_anime_with_id(126830) # returns a dictionary with Code Geass (ID:126830) info
anilist.get_anime_id("ReZero") # returns Re:Zero's ID on Anilist
anilist.print_anime_info("Madoka Magica") # prints all information regarding the anime Madoka Magica
# returns a list of anime with the given restrictions
anilist.search_anime(genre=['Action', 'Adventure', 'Drama'], year=[2016, 2019], score=range(80, 95))
#CHARACTER
anilist.get_character("Emilia") # returns a dictionary containing the info about Emilia-tan
anilist.get_character_with_id(13701) # returns a dictionary with Misaka Mikoto (ID:13701) info
anilist.get_character_id("Milim") # returns character Milim's ID on Anilist
anilist.print_anime_info("Kirito") # prints all information regarding the character Kirito
# MANGA
anilist.get_manga("Seraph of the End") # returns a dictionary containing info about seraph of the end
anilist.get_manga_with_id(113399) # returns a dictionary with Tearmoon (ID:113399) info
anilist.get_manga_id("Tearmoon Empire") # returns Tearmoon Empire's ID on Anilist (manga)
anilist.print_manga_info("Tensei Slime") # prints all information regarding the manga Tensei Slime
```
Note: The feature for manully selecting the top three search results in the terminal is now controlled by a parameter (`manual_select`) in .get functions. For more information, please visit the full documentation. A sample program that has manual select enabled would be:
```python
anilist.get_anime("Owari no Seraph", manual_select=True)
```
## Discord Bot Support
AnilistPython was originially designed to support various Discord Bot features in relation to anime, but through out the course of its development, more features became available to use by the general programs other than Discord bots. With that been said, the current version of AnilistPython has further optimized its functions for bot support. From the pre-formatted JSON file upon data retrieval to offline database support (see full documentation), it is now able to be implemented in bots with ease.
Upcoming AnilistPython Version 0.2.0 will provide functions to generate pre-formated Discord embeds (Anime, Manga, Character embeds) as well as other features that make AnilistPython bot implementations easy to use.
Sample anime discord bot supported by AnilistPython V0.1.3: [Anime C.C. Discord Bot](https://github.com/ReZeroE/Anime-Discord-Bot)
Note: Please make sure that parameter `manual_select` has not been set to True in bot implementations. (False by default)
## Credits
Lead Developer: Kevin L. (ReZeroE)
Special thanks to AniList's ApiV2 GraphQL Dev team for making this possible.
%package help
Summary: Development documents and examples for AnilistPython
Provides: python3-AnilistPython-doc
%description help
# AnilistPython





AniList Python library (anilist.co APIv2 wrapper) that allows you to **easily search up and retrieve anime, manga, animation studio, and character information.** This library is both beginner-friendly and offers the freedom for more experienced developers to interact with the retrieved information. Provides bot support.

## Version 0.1.3 Overview
This recent update for AnilistPython has resulted in a moderate change in the library's archetecture for increased efficiency and speed. Various features have also been added to the library. Listed below are some of the main additions and alterations made to the library.
**New features**:
1. Anime search by genre, year, and/or average score (finally!)
2. Offline anime retrieval support for anime - BETA
3. Manga search support
4. Auto setup feature that help new python programmers to setup required libraries automatically
Optimization and updates:
1. The lib now has its own prebuild anime database!
2. Anime, manga, and character search functions have all been optimized, making searches faster!
3. Improved the deepsearch feature in `.get_anime()`.
4. Manually selecting results feature is now a parameter instead of a seperate function (see usage below).
## How to use?
**Step One:** Library Installation
``` python
pip install AnilistPython==0.1.3
```
**Step Two:** Instance Creation
```python
from AnilistPython import Anilist
anilist = Anilist()
```
**Step Three**: Usage
The AnilistPython library has been split into three distinct sections. Each section possess a different set of functions used for retrieving data in that category. Please visit the full documentation for more info or skip to the General Function Overview section for usage.
- **Anime** - ([Documentation](https://github.com/ReZeroE/AnilistPython/wiki/Anime))
- **Manga** - ([Documentation](https://github.com/ReZeroE/AnilistPython/wiki/Manga))
- **Character** - ([Documentation](https://github.com/ReZeroE/AnilistPython/wiki/Character))
## General Function Overview
The following functions are supported by AnilistPyhon version 0.1.3. Only the default parameter has been displayed below. For more information, visit the [full documentation](https://github.com/ReZeroE/AnilistPython/wiki).
```python
# ANIME
anilist.get_anime("Owari no Seraph") # returns a dictionary containing info about owari no seraph
anilist.get_anime_with_id(126830) # returns a dictionary with Code Geass (ID:126830) info
anilist.get_anime_id("ReZero") # returns Re:Zero's ID on Anilist
anilist.print_anime_info("Madoka Magica") # prints all information regarding the anime Madoka Magica
# returns a list of anime with the given restrictions
anilist.search_anime(genre=['Action', 'Adventure', 'Drama'], year=[2016, 2019], score=range(80, 95))
#CHARACTER
anilist.get_character("Emilia") # returns a dictionary containing the info about Emilia-tan
anilist.get_character_with_id(13701) # returns a dictionary with Misaka Mikoto (ID:13701) info
anilist.get_character_id("Milim") # returns character Milim's ID on Anilist
anilist.print_anime_info("Kirito") # prints all information regarding the character Kirito
# MANGA
anilist.get_manga("Seraph of the End") # returns a dictionary containing info about seraph of the end
anilist.get_manga_with_id(113399) # returns a dictionary with Tearmoon (ID:113399) info
anilist.get_manga_id("Tearmoon Empire") # returns Tearmoon Empire's ID on Anilist (manga)
anilist.print_manga_info("Tensei Slime") # prints all information regarding the manga Tensei Slime
```
Note: The feature for manully selecting the top three search results in the terminal is now controlled by a parameter (`manual_select`) in .get functions. For more information, please visit the full documentation. A sample program that has manual select enabled would be:
```python
anilist.get_anime("Owari no Seraph", manual_select=True)
```
## Discord Bot Support
AnilistPython was originially designed to support various Discord Bot features in relation to anime, but through out the course of its development, more features became available to use by the general programs other than Discord bots. With that been said, the current version of AnilistPython has further optimized its functions for bot support. From the pre-formatted JSON file upon data retrieval to offline database support (see full documentation), it is now able to be implemented in bots with ease.
Upcoming AnilistPython Version 0.2.0 will provide functions to generate pre-formated Discord embeds (Anime, Manga, Character embeds) as well as other features that make AnilistPython bot implementations easy to use.
Sample anime discord bot supported by AnilistPython V0.1.3: [Anime C.C. Discord Bot](https://github.com/ReZeroE/Anime-Discord-Bot)
Note: Please make sure that parameter `manual_select` has not been set to True in bot implementations. (False by default)
## Credits
Lead Developer: Kevin L. (ReZeroE)
Special thanks to AniList's ApiV2 GraphQL Dev team for making this possible.
%prep
%autosetup -n AnilistPython-0.1.3
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-AnilistPython -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.3-1
- Package Spec generated
|