anime-sama-cli-api 0.4.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 (44) hide show
  1. anime_sama_cli_api-0.4.0/.github/workflows/ci.yaml +41 -0
  2. anime_sama_cli_api-0.4.0/.github/workflows/release.yaml +31 -0
  3. anime_sama_cli_api-0.4.0/.gitignore +29 -0
  4. anime_sama_cli_api-0.4.0/.python-version +1 -0
  5. anime_sama_cli_api-0.4.0/LICENSE +674 -0
  6. anime_sama_cli_api-0.4.0/PKG-INFO +103 -0
  7. anime_sama_cli_api-0.4.0/README.md +73 -0
  8. anime_sama_cli_api-0.4.0/TODO.md +30 -0
  9. anime_sama_cli_api-0.4.0/Tree.md +58 -0
  10. anime_sama_cli_api-0.4.0/anime_sama_api/__init__.py +52 -0
  11. anime_sama_cli_api-0.4.0/anime_sama_api/catalogue.py +252 -0
  12. anime_sama_cli_api-0.4.0/anime_sama_api/cli/__main__.py +80 -0
  13. anime_sama_cli_api-0.4.0/anime_sama_api/cli/config.py +119 -0
  14. anime_sama_cli_api-0.4.0/anime_sama_api/cli/config.toml +35 -0
  15. anime_sama_cli_api-0.4.0/anime_sama_api/cli/downloader.py +323 -0
  16. anime_sama_cli_api-0.4.0/anime_sama_api/cli/error_handling.py +66 -0
  17. anime_sama_cli_api-0.4.0/anime_sama_api/cli/internal_player.py +56 -0
  18. anime_sama_cli_api-0.4.0/anime_sama_api/cli/play_menu.py +61 -0
  19. anime_sama_cli_api-0.4.0/anime_sama_api/cli/utils.py +142 -0
  20. anime_sama_cli_api-0.4.0/anime_sama_api/episode.py +207 -0
  21. anime_sama_cli_api-0.4.0/anime_sama_api/langs.py +76 -0
  22. anime_sama_cli_api-0.4.0/anime_sama_api/link_resolver.py +187 -0
  23. anime_sama_cli_api-0.4.0/anime_sama_api/season.py +226 -0
  24. anime_sama_cli_api-0.4.0/anime_sama_api/top_level.py +376 -0
  25. anime_sama_cli_api-0.4.0/anime_sama_api/utils.py +54 -0
  26. anime_sama_cli_api-0.4.0/examples/new_episodes_rss.py +39 -0
  27. anime_sama_cli_api-0.4.0/examples/run_cli_(for_debugging).py +4 -0
  28. anime_sama_cli_api-0.4.0/examples/scan_catalogue.py +24 -0
  29. anime_sama_cli_api-0.4.0/pyproject.toml +74 -0
  30. anime_sama_cli_api-0.4.0/tests/__init__.py +0 -0
  31. anime_sama_cli_api-0.4.0/tests/data/catalogue_data.py +5 -0
  32. anime_sama_cli_api-0.4.0/tests/data/episode_data.py +2007 -0
  33. anime_sama_cli_api-0.4.0/tests/data/season_data.py +32 -0
  34. anime_sama_cli_api-0.4.0/tests/data/update_episode_data.py +11 -0
  35. anime_sama_cli_api-0.4.0/tests/test_api_portage.py +186 -0
  36. anime_sama_cli_api-0.4.0/tests/test_catalogue.py +83 -0
  37. anime_sama_cli_api-0.4.0/tests/test_cli_utils.py +89 -0
  38. anime_sama_cli_api-0.4.0/tests/test_download.py +25 -0
  39. anime_sama_cli_api-0.4.0/tests/test_link_resolver_portage.py +147 -0
  40. anime_sama_cli_api-0.4.0/tests/test_module_consolidation.py +59 -0
  41. anime_sama_cli_api-0.4.0/tests/test_seasons.py +123 -0
  42. anime_sama_cli_api-0.4.0/tests/test_top_level.py +24 -0
  43. anime_sama_cli_api-0.4.0/tests/test_utils.py +20 -0
  44. anime_sama_cli_api-0.4.0/uv.lock +805 -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.11"
15
+ - "3.12"
16
+ - "3.13"
17
+ - "3.14"
18
+ - "3.15"
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.13.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_cli_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
+ enable-cache: true
23
+
24
+ - name: Install Python
25
+ run: uv python install
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,29 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+ .pytest_cache
9
+
10
+ # Virtual environments
11
+ .venv
12
+
13
+ # OS files
14
+ .DS_Store
15
+
16
+ # IDE
17
+ .vscode
18
+
19
+ #Ruff
20
+ .ruff_cache
21
+
22
+ #MyPy
23
+ .mypy_cache
24
+
25
+
26
+ .portage_backups/
27
+
28
+ **/timings.log
29
+
@@ -0,0 +1 @@
1
+ 3.15