py-aniliberty 0.1.0__tar.gz
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.
- py_aniliberty-0.1.0/LICENSE +21 -0
- py_aniliberty-0.1.0/PKG-INFO +99 -0
- py_aniliberty-0.1.0/README.md +68 -0
- py_aniliberty-0.1.0/pyproject.toml +113 -0
- py_aniliberty-0.1.0/pyproject.toml.orig +98 -0
- py_aniliberty-0.1.0/src/aniliberty/__init__.py +69 -0
- py_aniliberty-0.1.0/src/aniliberty/_http.py +438 -0
- py_aniliberty-0.1.0/src/aniliberty/_query.py +71 -0
- py_aniliberty-0.1.0/src/aniliberty/_version.py +12 -0
- py_aniliberty-0.1.0/src/aniliberty/client.py +106 -0
- py_aniliberty-0.1.0/src/aniliberty/exceptions.py +172 -0
- py_aniliberty-0.1.0/src/aniliberty/models/__init__.py +36 -0
- py_aniliberty-0.1.0/src/aniliberty/models/_base.py +14 -0
- py_aniliberty-0.1.0/src/aniliberty/models/app.py +41 -0
- py_aniliberty-0.1.0/src/aniliberty/models/common.py +127 -0
- py_aniliberty-0.1.0/src/aniliberty/models/episode.py +91 -0
- py_aniliberty-0.1.0/src/aniliberty/models/genre.py +24 -0
- py_aniliberty-0.1.0/src/aniliberty/models/release.py +228 -0
- py_aniliberty-0.1.0/src/aniliberty/pagination.py +92 -0
- py_aniliberty-0.1.0/src/aniliberty/py.typed +0 -0
- py_aniliberty-0.1.0/src/aniliberty/resources/__init__.py +7 -0
- py_aniliberty-0.1.0/src/aniliberty/resources/_base.py +76 -0
- py_aniliberty-0.1.0/src/aniliberty/resources/app.py +66 -0
- py_aniliberty-0.1.0/src/aniliberty/resources/episodes.py +44 -0
- py_aniliberty-0.1.0/src/aniliberty/resources/releases.py +245 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kulebyakin Alexander
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: py-aniliberty
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Async Python SDK for the AniLibria API: releases, episodes with HLS links, quick search
|
|
5
|
+
Keywords: anilibria,aniliberty,anime,api,sdk,async,httpx,pydantic
|
|
6
|
+
Author: LLIJIYAPNIK
|
|
7
|
+
Author-email: LLIJIYAPNIK <kas4wot@yandex.ru>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
11
|
+
Classifier: Framework :: AsyncIO
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Requires-Dist: httpx>=0.27
|
|
23
|
+
Requires-Dist: pydantic>=2.7
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Project-URL: Homepage, https://github.com/LLIJIYAPNIK/py-aniliberty
|
|
26
|
+
Project-URL: Documentation, https://llijiyapnik.github.io/py-aniliberty/
|
|
27
|
+
Project-URL: Repository, https://github.com/LLIJIYAPNIK/py-aniliberty
|
|
28
|
+
Project-URL: Issues, https://github.com/LLIJIYAPNIK/py-aniliberty/issues
|
|
29
|
+
Project-URL: Changelog, https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/CHANGELOG.md
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
# py-aniliberty
|
|
33
|
+
|
|
34
|
+
[](https://pypi.org/project/py-aniliberty/)
|
|
35
|
+
[](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/LICENSE)
|
|
36
|
+
[](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/pyproject.toml)
|
|
37
|
+
[](https://github.com/LLIJIYAPNIK/py-aniliberty/actions/workflows/ci.yml)
|
|
38
|
+
[](https://coveralls.io/github/LLIJIYAPNIK/py-aniliberty?branch=main)
|
|
39
|
+
[](https://llijiyapnik.github.io/py-aniliberty/)
|
|
40
|
+
|
|
41
|
+
Async Python SDK for the public [AniLibria](https://aniliberty.top) API (v1): releases,
|
|
42
|
+
episodes (HLS links), catalog with filters, schedule, franchises, genres, and torrents.
|
|
43
|
+
|
|
44
|
+
> **Status:** early development. Releases, episodes (HLS links) and quick search are
|
|
45
|
+
> implemented; the catalog, schedule, genres, franchises and torrents are next — see
|
|
46
|
+
> [`ROADMAP.md`](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/ROADMAP.md).
|
|
47
|
+
|
|
48
|
+
**Documentation:** <https://llijiyapnik.github.io/py-aniliberty/>
|
|
49
|
+
|
|
50
|
+
## Installation
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
uv add py-aniliberty
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
or
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pip install py-aniliberty
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Requires Python 3.11+.
|
|
63
|
+
|
|
64
|
+
## Quickstart
|
|
65
|
+
|
|
66
|
+
```python
|
|
67
|
+
import asyncio
|
|
68
|
+
|
|
69
|
+
from aniliberty import AniLiberty
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
async def main() -> None:
|
|
73
|
+
async with AniLiberty() as client:
|
|
74
|
+
for release in await client.releases.latest(limit=3):
|
|
75
|
+
print(release.name.main)
|
|
76
|
+
|
|
77
|
+
release = await client.releases.get("sousou-no-frieren")
|
|
78
|
+
episode = await client.episodes.get(release.episodes[0].id)
|
|
79
|
+
print(episode.hls_1080 or episode.hls_720)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
asyncio.run(main())
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
More in the [Quickstart](https://llijiyapnik.github.io/py-aniliberty/quickstart/) of the docs.
|
|
86
|
+
|
|
87
|
+
## Examples
|
|
88
|
+
|
|
89
|
+
[`examples/`](https://github.com/LLIJIYAPNIK/py-aniliberty/tree/main/examples/) has a runnable, heavily commented script per feature — releases,
|
|
90
|
+
episodes and HLS links, quick search, ... — each ending with the output of a real run. See
|
|
91
|
+
[`examples/README.md`](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/examples/README.md) for the list.
|
|
92
|
+
|
|
93
|
+
## Changelog
|
|
94
|
+
|
|
95
|
+
See [`CHANGELOG.md`](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/CHANGELOG.md).
|
|
96
|
+
|
|
97
|
+
## License
|
|
98
|
+
|
|
99
|
+
[MIT](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/LICENSE)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# py-aniliberty
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/py-aniliberty/)
|
|
4
|
+
[](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/LICENSE)
|
|
5
|
+
[](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/pyproject.toml)
|
|
6
|
+
[](https://github.com/LLIJIYAPNIK/py-aniliberty/actions/workflows/ci.yml)
|
|
7
|
+
[](https://coveralls.io/github/LLIJIYAPNIK/py-aniliberty?branch=main)
|
|
8
|
+
[](https://llijiyapnik.github.io/py-aniliberty/)
|
|
9
|
+
|
|
10
|
+
Async Python SDK for the public [AniLibria](https://aniliberty.top) API (v1): releases,
|
|
11
|
+
episodes (HLS links), catalog with filters, schedule, franchises, genres, and torrents.
|
|
12
|
+
|
|
13
|
+
> **Status:** early development. Releases, episodes (HLS links) and quick search are
|
|
14
|
+
> implemented; the catalog, schedule, genres, franchises and torrents are next — see
|
|
15
|
+
> [`ROADMAP.md`](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/ROADMAP.md).
|
|
16
|
+
|
|
17
|
+
**Documentation:** <https://llijiyapnik.github.io/py-aniliberty/>
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
uv add py-aniliberty
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
or
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install py-aniliberty
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Requires Python 3.11+.
|
|
32
|
+
|
|
33
|
+
## Quickstart
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
import asyncio
|
|
37
|
+
|
|
38
|
+
from aniliberty import AniLiberty
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
async def main() -> None:
|
|
42
|
+
async with AniLiberty() as client:
|
|
43
|
+
for release in await client.releases.latest(limit=3):
|
|
44
|
+
print(release.name.main)
|
|
45
|
+
|
|
46
|
+
release = await client.releases.get("sousou-no-frieren")
|
|
47
|
+
episode = await client.episodes.get(release.episodes[0].id)
|
|
48
|
+
print(episode.hls_1080 or episode.hls_720)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
asyncio.run(main())
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
More in the [Quickstart](https://llijiyapnik.github.io/py-aniliberty/quickstart/) of the docs.
|
|
55
|
+
|
|
56
|
+
## Examples
|
|
57
|
+
|
|
58
|
+
[`examples/`](https://github.com/LLIJIYAPNIK/py-aniliberty/tree/main/examples/) has a runnable, heavily commented script per feature — releases,
|
|
59
|
+
episodes and HLS links, quick search, ... — each ending with the output of a real run. See
|
|
60
|
+
[`examples/README.md`](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/examples/README.md) for the list.
|
|
61
|
+
|
|
62
|
+
## Changelog
|
|
63
|
+
|
|
64
|
+
See [`CHANGELOG.md`](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/CHANGELOG.md).
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
[MIT](https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/LICENSE)
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "py-aniliberty"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Async Python SDK for the AniLibria API: releases, episodes with HLS links, quick search"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.11"
|
|
9
|
+
keywords = [
|
|
10
|
+
"anilibria",
|
|
11
|
+
"aniliberty",
|
|
12
|
+
"anime",
|
|
13
|
+
"api",
|
|
14
|
+
"sdk",
|
|
15
|
+
"async",
|
|
16
|
+
"httpx",
|
|
17
|
+
"pydantic",
|
|
18
|
+
]
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
21
|
+
"Framework :: AsyncIO",
|
|
22
|
+
"Intended Audience :: Developers",
|
|
23
|
+
"Operating System :: OS Independent",
|
|
24
|
+
"Programming Language :: Python :: 3",
|
|
25
|
+
"Programming Language :: Python :: 3.11",
|
|
26
|
+
"Programming Language :: Python :: 3.12",
|
|
27
|
+
"Programming Language :: Python :: 3.13",
|
|
28
|
+
"Programming Language :: Python :: 3.14",
|
|
29
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
30
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
31
|
+
"Typing :: Typed",
|
|
32
|
+
]
|
|
33
|
+
dependencies = [
|
|
34
|
+
"httpx>=0.27",
|
|
35
|
+
"pydantic>=2.7",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[[project.authors]]
|
|
39
|
+
name = "LLIJIYAPNIK"
|
|
40
|
+
email = "kas4wot@yandex.ru"
|
|
41
|
+
|
|
42
|
+
[project.urls]
|
|
43
|
+
Homepage = "https://github.com/LLIJIYAPNIK/py-aniliberty"
|
|
44
|
+
Documentation = "https://llijiyapnik.github.io/py-aniliberty/"
|
|
45
|
+
Repository = "https://github.com/LLIJIYAPNIK/py-aniliberty"
|
|
46
|
+
Issues = "https://github.com/LLIJIYAPNIK/py-aniliberty/issues"
|
|
47
|
+
Changelog = "https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/CHANGELOG.md"
|
|
48
|
+
|
|
49
|
+
[build-system]
|
|
50
|
+
requires = ["uv_build>=0.11.26,<0.12.0"]
|
|
51
|
+
build-backend = "uv_build"
|
|
52
|
+
|
|
53
|
+
[tool.uv.build-backend]
|
|
54
|
+
module-name = "aniliberty"
|
|
55
|
+
|
|
56
|
+
[tool.ruff]
|
|
57
|
+
line-length = 100
|
|
58
|
+
target-version = "py311"
|
|
59
|
+
src = ["src"]
|
|
60
|
+
extend-exclude = ["CLAUDE.md"]
|
|
61
|
+
|
|
62
|
+
[tool.ruff.lint]
|
|
63
|
+
select = [
|
|
64
|
+
"E",
|
|
65
|
+
"F",
|
|
66
|
+
"I",
|
|
67
|
+
"UP",
|
|
68
|
+
"B",
|
|
69
|
+
"SIM",
|
|
70
|
+
"C4",
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
[tool.ruff.lint.per-file-ignores]
|
|
74
|
+
"examples/*" = ["E501"]
|
|
75
|
+
|
|
76
|
+
[tool.ruff.format]
|
|
77
|
+
quote-style = "double"
|
|
78
|
+
|
|
79
|
+
[tool.mypy]
|
|
80
|
+
python_version = "3.11"
|
|
81
|
+
strict = true
|
|
82
|
+
files = ["src"]
|
|
83
|
+
|
|
84
|
+
[tool.pytest.ini_options]
|
|
85
|
+
asyncio_mode = "auto"
|
|
86
|
+
testpaths = ["tests"]
|
|
87
|
+
|
|
88
|
+
[tool.coverage.run]
|
|
89
|
+
source = ["aniliberty"]
|
|
90
|
+
|
|
91
|
+
[tool.coverage.report]
|
|
92
|
+
fail_under = 95
|
|
93
|
+
exclude_also = [
|
|
94
|
+
"if TYPE_CHECKING:",
|
|
95
|
+
'\.\.\.',
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
[dependency-groups]
|
|
99
|
+
dev = [
|
|
100
|
+
"coveralls>=4.0",
|
|
101
|
+
"mypy>=1.10",
|
|
102
|
+
"pytest>=8.0",
|
|
103
|
+
"pytest-asyncio>=0.24",
|
|
104
|
+
"pytest-cov>=5.0",
|
|
105
|
+
"pytest-recording>=0.13",
|
|
106
|
+
"ruff>=0.6",
|
|
107
|
+
"vcrpy>=6.0",
|
|
108
|
+
]
|
|
109
|
+
docs = [
|
|
110
|
+
"mkdocs>=1.6,<2",
|
|
111
|
+
"mkdocs-material>=9.5",
|
|
112
|
+
"mkdocstrings[python]>=0.25",
|
|
113
|
+
]
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "py-aniliberty"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Async Python SDK for the AniLibria API: releases, episodes with HLS links, quick search"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.11"
|
|
9
|
+
authors = [
|
|
10
|
+
{ name = "LLIJIYAPNIK", email = "kas4wot@yandex.ru" }
|
|
11
|
+
]
|
|
12
|
+
keywords = ["anilibria", "aniliberty", "anime", "api", "sdk", "async", "httpx", "pydantic"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
15
|
+
"Framework :: AsyncIO",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.11",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Programming Language :: Python :: 3.14",
|
|
23
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
24
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
25
|
+
"Typing :: Typed",
|
|
26
|
+
]
|
|
27
|
+
dependencies = [
|
|
28
|
+
"httpx>=0.27",
|
|
29
|
+
"pydantic>=2.7",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://github.com/LLIJIYAPNIK/py-aniliberty"
|
|
34
|
+
Documentation = "https://llijiyapnik.github.io/py-aniliberty/"
|
|
35
|
+
Repository = "https://github.com/LLIJIYAPNIK/py-aniliberty"
|
|
36
|
+
Issues = "https://github.com/LLIJIYAPNIK/py-aniliberty/issues"
|
|
37
|
+
Changelog = "https://github.com/LLIJIYAPNIK/py-aniliberty/blob/main/CHANGELOG.md"
|
|
38
|
+
|
|
39
|
+
[build-system]
|
|
40
|
+
requires = ["uv_build>=0.11.26,<0.12.0"]
|
|
41
|
+
build-backend = "uv_build"
|
|
42
|
+
|
|
43
|
+
[tool.uv.build-backend]
|
|
44
|
+
module-name = "aniliberty"
|
|
45
|
+
|
|
46
|
+
[dependency-groups]
|
|
47
|
+
dev = [
|
|
48
|
+
"coveralls>=4.0",
|
|
49
|
+
"mypy>=1.10",
|
|
50
|
+
"pytest>=8.0",
|
|
51
|
+
"pytest-asyncio>=0.24",
|
|
52
|
+
"pytest-cov>=5.0",
|
|
53
|
+
"pytest-recording>=0.13",
|
|
54
|
+
"ruff>=0.6",
|
|
55
|
+
"vcrpy>=6.0",
|
|
56
|
+
]
|
|
57
|
+
docs = [
|
|
58
|
+
# MkDocs 2.0 drops the plugin system mkdocs-material and mkdocstrings rely on.
|
|
59
|
+
"mkdocs>=1.6,<2",
|
|
60
|
+
"mkdocs-material>=9.5",
|
|
61
|
+
"mkdocstrings[python]>=0.25",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[tool.ruff]
|
|
65
|
+
line-length = 100
|
|
66
|
+
target-version = "py311"
|
|
67
|
+
src = ["src"]
|
|
68
|
+
extend-exclude = ["CLAUDE.md"]
|
|
69
|
+
|
|
70
|
+
[tool.ruff.lint]
|
|
71
|
+
select = ["E", "F", "I", "UP", "B", "SIM", "C4"]
|
|
72
|
+
|
|
73
|
+
[tool.ruff.lint.per-file-ignores]
|
|
74
|
+
# The "Expected output" block at the end of each example is a verbatim copy of a real run;
|
|
75
|
+
# its lines can't be wrapped. Code in examples is still formatted by `ruff format`.
|
|
76
|
+
"examples/*" = ["E501"]
|
|
77
|
+
|
|
78
|
+
[tool.ruff.format]
|
|
79
|
+
quote-style = "double"
|
|
80
|
+
|
|
81
|
+
[tool.mypy]
|
|
82
|
+
python_version = "3.11"
|
|
83
|
+
strict = true
|
|
84
|
+
files = ["src"]
|
|
85
|
+
|
|
86
|
+
[tool.pytest.ini_options]
|
|
87
|
+
asyncio_mode = "auto"
|
|
88
|
+
testpaths = ["tests"]
|
|
89
|
+
|
|
90
|
+
[tool.coverage.run]
|
|
91
|
+
source = ["aniliberty"]
|
|
92
|
+
|
|
93
|
+
[tool.coverage.report]
|
|
94
|
+
fail_under = 95
|
|
95
|
+
exclude_also = [
|
|
96
|
+
"if TYPE_CHECKING:",
|
|
97
|
+
"\\.\\.\\.",
|
|
98
|
+
]
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""Async Python SDK for the AniLibria API."""
|
|
2
|
+
|
|
3
|
+
from aniliberty._http import HttpClient
|
|
4
|
+
from aniliberty._version import __version__
|
|
5
|
+
from aniliberty.client import AniLiberty
|
|
6
|
+
from aniliberty.exceptions import (
|
|
7
|
+
AccessBlockedError,
|
|
8
|
+
AniLibertyError,
|
|
9
|
+
APIError,
|
|
10
|
+
AuthRequiredError,
|
|
11
|
+
NotFoundError,
|
|
12
|
+
RateLimitError,
|
|
13
|
+
ResponseParseError,
|
|
14
|
+
ServerError,
|
|
15
|
+
TransportError,
|
|
16
|
+
ValidationError,
|
|
17
|
+
)
|
|
18
|
+
from aniliberty.models import (
|
|
19
|
+
AgeRating,
|
|
20
|
+
ApiStatus,
|
|
21
|
+
Episode,
|
|
22
|
+
ExternalRating,
|
|
23
|
+
Genre,
|
|
24
|
+
Image,
|
|
25
|
+
ImageSet,
|
|
26
|
+
Release,
|
|
27
|
+
ReleaseMember,
|
|
28
|
+
ReleaseMemberUser,
|
|
29
|
+
ReleaseName,
|
|
30
|
+
ReleaseRating,
|
|
31
|
+
RequestInfo,
|
|
32
|
+
SkipRange,
|
|
33
|
+
Sponsor,
|
|
34
|
+
ValueDescription,
|
|
35
|
+
)
|
|
36
|
+
from aniliberty.pagination import Page
|
|
37
|
+
|
|
38
|
+
__all__ = [
|
|
39
|
+
"APIError",
|
|
40
|
+
"AgeRating",
|
|
41
|
+
"AccessBlockedError",
|
|
42
|
+
"AniLiberty",
|
|
43
|
+
"AniLibertyError",
|
|
44
|
+
"ApiStatus",
|
|
45
|
+
"AuthRequiredError",
|
|
46
|
+
"Episode",
|
|
47
|
+
"ExternalRating",
|
|
48
|
+
"Genre",
|
|
49
|
+
"HttpClient",
|
|
50
|
+
"Image",
|
|
51
|
+
"ImageSet",
|
|
52
|
+
"NotFoundError",
|
|
53
|
+
"Page",
|
|
54
|
+
"RateLimitError",
|
|
55
|
+
"Release",
|
|
56
|
+
"ReleaseMember",
|
|
57
|
+
"ReleaseMemberUser",
|
|
58
|
+
"ReleaseName",
|
|
59
|
+
"ReleaseRating",
|
|
60
|
+
"RequestInfo",
|
|
61
|
+
"ResponseParseError",
|
|
62
|
+
"ServerError",
|
|
63
|
+
"SkipRange",
|
|
64
|
+
"Sponsor",
|
|
65
|
+
"TransportError",
|
|
66
|
+
"ValidationError",
|
|
67
|
+
"ValueDescription",
|
|
68
|
+
"__version__",
|
|
69
|
+
]
|