anime-sama-api 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.
Files changed (35) hide show
  1. anime_sama_api-0.1.0/.github/workflows/ci.yaml +41 -0
  2. anime_sama_api-0.1.0/.github/workflows/release.yaml +31 -0
  3. anime_sama_api-0.1.0/.gitignore +16 -0
  4. anime_sama_api-0.1.0/.python-version +1 -0
  5. anime_sama_api-0.1.0/LICENSE +674 -0
  6. anime_sama_api-0.1.0/PKG-INFO +59 -0
  7. anime_sama_api-0.1.0/README.md +31 -0
  8. anime_sama_api-0.1.0/TODO.md +23 -0
  9. anime_sama_api-0.1.0/anime_sama_api/__init__.py +47 -0
  10. anime_sama_api-0.1.0/anime_sama_api/catalogue.py +69 -0
  11. anime_sama_api-0.1.0/anime_sama_api/cli/__main__.py +67 -0
  12. anime_sama_api-0.1.0/anime_sama_api/cli/config.py +82 -0
  13. anime_sama_api-0.1.0/anime_sama_api/cli/config.toml +26 -0
  14. anime_sama_api-0.1.0/anime_sama_api/cli/downloader.py +152 -0
  15. anime_sama_api-0.1.0/anime_sama_api/cli/error_handeling.py +42 -0
  16. anime_sama_api-0.1.0/anime_sama_api/cli/internal_player.py +58 -0
  17. anime_sama_api-0.1.0/anime_sama_api/cli/play_menu.py +30 -0
  18. anime_sama_api-0.1.0/anime_sama_api/cli/utils.py +73 -0
  19. anime_sama_api-0.1.0/anime_sama_api/episode.py +85 -0
  20. anime_sama_api-0.1.0/anime_sama_api/langs.py +53 -0
  21. anime_sama_api-0.1.0/anime_sama_api/season.py +149 -0
  22. anime_sama_api-0.1.0/anime_sama_api/top_level.py +27 -0
  23. anime_sama_api-0.1.0/anime_sama_api/utils.py +17 -0
  24. anime_sama_api-0.1.0/pyproject.toml +55 -0
  25. anime_sama_api-0.1.0/tests/__init__.py +0 -0
  26. anime_sama_api-0.1.0/tests/data/catalogue_data.py +6 -0
  27. anime_sama_api-0.1.0/tests/data/episode_data.py +1602 -0
  28. anime_sama_api-0.1.0/tests/data/season_data.py +29 -0
  29. anime_sama_api-0.1.0/tests/test_catalogue.py +37 -0
  30. anime_sama_api-0.1.0/tests/test_cli_utils.py +78 -0
  31. anime_sama_api-0.1.0/tests/test_download.py +26 -0
  32. anime_sama_api-0.1.0/tests/test_seasons.py +12 -0
  33. anime_sama_api-0.1.0/tests/test_top_level.py +23 -0
  34. anime_sama_api-0.1.0/tests/test_utils.py +12 -0
  35. anime_sama_api-0.1.0/uv.lock +499 -0
@@ -0,0 +1,41 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ run-tests:
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ os: [ubuntu-latest, windows-latest]
13
+ python-version:
14
+ - "3.10"
15
+ - "3.11"
16
+ - "3.12"
17
+ - "3.13"
18
+ - "3.14"
19
+
20
+ name: Test
21
+ runs-on: ${{ matrix.os }}
22
+ steps:
23
+ - name: Checkout
24
+ uses: actions/checkout@v4
25
+
26
+ - name: Install uv
27
+ uses: astral-sh/setup-uv@v5
28
+ with:
29
+ version: "0.6.3"
30
+ python-version: ${{ matrix.python-version }}
31
+ enable-cache: true
32
+ cache-dependency-glob: "uv.lock"
33
+
34
+ - name: Install the project
35
+ run: uv sync --all-extras --dev
36
+
37
+ - name: Run tests
38
+ run: uv run pytest tests
39
+
40
+ - name: Minimize uv cache
41
+ run: uv cache prune --ci
@@ -0,0 +1,31 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ pypi-publish:
8
+ name: Upload release to PyPI
9
+ runs-on: ubuntu-latest
10
+ environment:
11
+ name: pypi
12
+ url: https://pypi.org/p/anime-sama_api
13
+ permissions:
14
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v5
21
+ with:
22
+ version: "0.6.3"
23
+ python-version-file: "pyproject.toml"
24
+ enable-cache: true
25
+ # cache-dependency-glob: "uv.lock"
26
+
27
+ - name: Build package
28
+ run: uv build
29
+
30
+ - name: Publish package distributions to PyPI
31
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,16 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+
12
+ # OS files
13
+ .DS_Store
14
+
15
+ # IDE
16
+ .vscode
@@ -0,0 +1 @@
1
+ 3.10