anime-sama-cli 1.0.1__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 (58) hide show
  1. anime_sama_cli-1.0.1/.github/workflows/pypi.yml +51 -0
  2. anime_sama_cli-1.0.1/.gitignore +17 -0
  3. anime_sama_cli-1.0.1/.python-version +1 -0
  4. anime_sama_cli-1.0.1/LICENSE +674 -0
  5. anime_sama_cli-1.0.1/PKG-INFO +265 -0
  6. anime_sama_cli-1.0.1/README.md +236 -0
  7. anime_sama_cli-1.0.1/anisama-cli +21 -0
  8. anime_sama_cli-1.0.1/examples/new_episodes_rss.py +39 -0
  9. anime_sama_cli-1.0.1/pyproject.toml +60 -0
  10. anime_sama_cli-1.0.1/scripts/debug_vidmoly.py +42 -0
  11. anime_sama_cli-1.0.1/src/anime_sama_api/__init__.py +49 -0
  12. anime_sama_cli-1.0.1/src/anime_sama_api/assets/ascii_art +6 -0
  13. anime_sama_cli-1.0.1/src/anime_sama_api/catalogue.py +157 -0
  14. anime_sama_cli-1.0.1/src/anime_sama_api/cli/__main__.py +96 -0
  15. anime_sama_cli-1.0.1/src/anime_sama_api/cli/config.py +119 -0
  16. anime_sama_cli-1.0.1/src/anime_sama_api/cli/config.toml +35 -0
  17. anime_sama_cli-1.0.1/src/anime_sama_api/cli/downloader.py +217 -0
  18. anime_sama_cli-1.0.1/src/anime_sama_api/cli/episode_extra_info.py +136 -0
  19. anime_sama_cli-1.0.1/src/anime_sama_api/cli/episode_tree.py +345 -0
  20. anime_sama_cli-1.0.1/src/anime_sama_api/cli/error_handeling.py +79 -0
  21. anime_sama_cli-1.0.1/src/anime_sama_api/cli/internal_player.py +61 -0
  22. anime_sama_cli-1.0.1/src/anime_sama_api/cli/play_menu.py +30 -0
  23. anime_sama_cli-1.0.1/src/anime_sama_api/cli/utils.py +98 -0
  24. anime_sama_cli-1.0.1/src/anime_sama_api/cli_standalone.py +20 -0
  25. anime_sama_cli-1.0.1/src/anime_sama_api/episode.py +143 -0
  26. anime_sama_cli-1.0.1/src/anime_sama_api/langs.py +76 -0
  27. anime_sama_cli-1.0.1/src/anime_sama_api/season.py +227 -0
  28. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/__init__.py +8 -0
  29. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/anilist.py +308 -0
  30. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/api_helpers.py +43 -0
  31. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/catalogue_tui.py +90 -0
  32. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/completions.py +109 -0
  33. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/config.py +87 -0
  34. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/constants.py +47 -0
  35. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/download_utils.py +69 -0
  36. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/flows.py +361 -0
  37. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/fzf_utils.py +339 -0
  38. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/history.py +39 -0
  39. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/menus.py +404 -0
  40. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/planning.py +351 -0
  41. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/planning_tui.py +95 -0
  42. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/playback.py +84 -0
  43. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/runner.py +175 -0
  44. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/system_deps.py +78 -0
  45. anime_sama_cli-1.0.1/src/anime_sama_api/standalone/terminal.py +100 -0
  46. anime_sama_cli-1.0.1/src/anime_sama_api/top_level.py +353 -0
  47. anime_sama_cli-1.0.1/src/anime_sama_api/utils.py +58 -0
  48. anime_sama_cli-1.0.1/tests/__init__.py +0 -0
  49. anime_sama_cli-1.0.1/tests/data/catalogue_data.py +6 -0
  50. anime_sama_cli-1.0.1/tests/data/episode_data.py +1911 -0
  51. anime_sama_cli-1.0.1/tests/data/season_data.py +32 -0
  52. anime_sama_cli-1.0.1/tests/test_catalogue.py +35 -0
  53. anime_sama_cli-1.0.1/tests/test_cli_utils.py +89 -0
  54. anime_sama_cli-1.0.1/tests/test_download.py +27 -0
  55. anime_sama_cli-1.0.1/tests/test_seasons.py +12 -0
  56. anime_sama_cli-1.0.1/tests/test_top_level.py +23 -0
  57. anime_sama_cli-1.0.1/tests/test_utils.py +20 -0
  58. anime_sama_cli-1.0.1/uv.lock +668 -0
@@ -0,0 +1,51 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*" # ex. v2.0.0, v2.0.1
7
+
8
+ jobs:
9
+ build:
10
+ name: Build distribution
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ with:
15
+ persist-credentials: false
16
+
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.12"
21
+
22
+ - name: Install build
23
+ run: python -m pip install build --user
24
+
25
+ - name: Build wheel and sdist
26
+ run: python -m build
27
+
28
+ - name: Upload distributions
29
+ uses: actions/upload-artifact@v4
30
+ with:
31
+ name: python-package-distributions
32
+ path: dist/
33
+
34
+ publish-to-pypi:
35
+ name: Publish to PyPI
36
+ needs: build
37
+ runs-on: ubuntu-latest
38
+ environment:
39
+ name: pypi
40
+ url: https://pypi.org/project/anime-sama-cli/
41
+ permissions:
42
+ id-token: write # requis pour Trusted Publishing (OIDC)
43
+ steps:
44
+ - name: Download distributions
45
+ uses: actions/download-artifact@v4
46
+ with:
47
+ name: python-package-distributions
48
+ path: dist/
49
+
50
+ - name: Publish to PyPI
51
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,17 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ .pytest_cache/
4
+ *.py[oc]
5
+ build/
6
+ dist/
7
+ wheels/
8
+ *.egg-info
9
+
10
+ # Virtual environments
11
+ .venv
12
+
13
+ # OS files
14
+ .DS_Store
15
+
16
+ # IDE
17
+ .vscode
@@ -0,0 +1 @@
1
+ 3.10