ymdantic 0.2.1__tar.gz → 0.2.3__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 (133) hide show
  1. ymdantic-0.2.3/.github/workflows/tests.yml +104 -0
  2. {ymdantic-0.2.1 → ymdantic-0.2.3}/.pre-commit-config.yaml +6 -1
  3. {ymdantic-0.2.1 → ymdantic-0.2.3}/PKG-INFO +1 -1
  4. {ymdantic-0.2.1 → ymdantic-0.2.3}/pyproject.toml +1 -1
  5. ymdantic-0.2.3/tests/albums/test_get_album_with_tracks.py +64 -0
  6. {ymdantic-0.2.1 → ymdantic-0.2.3}/uv.lock +23 -23
  7. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/client/session/aiohttp_client.py +62 -3
  8. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/client/yandex_music.py +12 -6
  9. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/search/base.py +16 -1
  10. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/album.py +1 -1
  11. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/track.py +2 -0
  12. ymdantic-0.2.3/ymdantic/py.typed +0 -0
  13. ymdantic-0.2.1/.github/workflows/tests.yml +0 -40
  14. {ymdantic-0.2.1 → ymdantic-0.2.3}/.editorconfig +0 -0
  15. {ymdantic-0.2.1 → ymdantic-0.2.3}/.github/workflows/pypi-release.yml +0 -0
  16. {ymdantic-0.2.1 → ymdantic-0.2.3}/.gitignore +0 -0
  17. {ymdantic-0.2.1 → ymdantic-0.2.3}/LICENSE +0 -0
  18. {ymdantic-0.2.1 → ymdantic-0.2.3}/README.md +0 -0
  19. {ymdantic-0.2.1 → ymdantic-0.2.3}/examples/chart.py +0 -0
  20. {ymdantic-0.2.1 → ymdantic-0.2.3}/tests/__init__.py +0 -0
  21. {ymdantic-0.2.1 → ymdantic-0.2.3}/tests/account/__init__.py +0 -0
  22. {ymdantic-0.2.1 → ymdantic-0.2.3}/tests/account/test_settings.py +0 -0
  23. {ymdantic-0.2.1/tests/search → ymdantic-0.2.3/tests/albums}/__init__.py +0 -0
  24. {ymdantic-0.2.1 → ymdantic-0.2.3}/tests/conftest.py +0 -0
  25. {ymdantic-0.2.1/tests/tracks → ymdantic-0.2.3/tests/search}/__init__.py +0 -0
  26. {ymdantic-0.2.1 → ymdantic-0.2.3}/tests/search/test_search_instant_mixed.py +0 -0
  27. {ymdantic-0.2.1/ymdantic/models/clips → ymdantic-0.2.3/tests/tracks}/__init__.py +0 -0
  28. {ymdantic-0.2.1 → ymdantic-0.2.3}/tests/tracks/test_get_track.py +0 -0
  29. {ymdantic-0.2.1 → ymdantic-0.2.3}/tests/tracks/test_get_track_download_info.py +0 -0
  30. {ymdantic-0.2.1 → ymdantic-0.2.3}/tests/tracks/test_get_track_file_info.py +0 -0
  31. {ymdantic-0.2.1 → ymdantic-0.2.3}/tests/tracks/test_get_tracks.py +0 -0
  32. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/__init__.py +0 -0
  33. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/adapters/__init__.py +0 -0
  34. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/adapters/pydantic_factory.py +0 -0
  35. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/adapters/to_camel.py +0 -0
  36. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/adapters/to_query_params.py +0 -0
  37. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/client/__init__.py +0 -0
  38. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/client/session/__init__.py +0 -0
  39. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/client/session/aiohttp_method.py +0 -0
  40. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/enums/__init__.py +0 -0
  41. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/enums/editorial_artists.py +0 -0
  42. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/enums/editorial_compilation.py +0 -0
  43. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/enums/editorial_new_releases.py +0 -0
  44. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/enums/editorial_promotion.py +0 -0
  45. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/enums/language.py +0 -0
  46. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/enums/open_playlist.py +0 -0
  47. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/enums/special.py +0 -0
  48. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/exceptions/__init__.py +0 -0
  49. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/exceptions/custom_exceptions.py +0 -0
  50. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/mixins.py +0 -0
  51. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/__init__.py +0 -0
  52. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/account/__init__.py +0 -0
  53. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/account/settings.py +0 -0
  54. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/action_button.py +0 -0
  55. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/agent.py +0 -0
  56. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/albums/__init__.py +0 -0
  57. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/albums/album.py +0 -0
  58. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/albums/label.py +0 -0
  59. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/__init__.py +0 -0
  60. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/artist.py +0 -0
  61. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/artist_data.py +0 -0
  62. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/artist_track_chart_position.py +0 -0
  63. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/band_link_scanner_link.py +0 -0
  64. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/concert.py +0 -0
  65. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/counts.py +0 -0
  66. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/description.py +0 -0
  67. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/extra_action.py +0 -0
  68. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/ratings.py +0 -0
  69. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/social_link.py +0 -0
  70. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/artists/video.py +0 -0
  71. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/base.py +0 -0
  72. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/chart_position.py +0 -0
  73. {ymdantic-0.2.1/ymdantic/models/concerts → ymdantic-0.2.3/ymdantic/models/clips}/__init__.py +0 -0
  74. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/clips/clip.py +0 -0
  75. /ymdantic-0.2.1/ymdantic/py.typed → /ymdantic-0.2.3/ymdantic/models/concerts/__init__.py +0 -0
  76. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/concerts/city_case_forms.py +0 -0
  77. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/concerts/concert.py +0 -0
  78. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/content_restrictions.py +0 -0
  79. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/cover.py +0 -0
  80. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/custom_wave.py +0 -0
  81. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/derived_colors.py +0 -0
  82. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/error.py +0 -0
  83. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/__init__.py +0 -0
  84. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/album.py +0 -0
  85. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/artist.py +0 -0
  86. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/chart.py +0 -0
  87. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/chart_block.py +0 -0
  88. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/cover.py +0 -0
  89. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/editorial/__init__.py +0 -0
  90. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/editorial/new_releases.py +0 -0
  91. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/editorial/response.py +0 -0
  92. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/in_style.py +0 -0
  93. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/liked_playlist.py +0 -0
  94. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/open_playlist.py +0 -0
  95. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/personal_playlist.py +0 -0
  96. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/playlist.py +0 -0
  97. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/promotion.py +0 -0
  98. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/skeleton/__init__.py +0 -0
  99. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/skeleton/skeleton_response.py +0 -0
  100. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/skeleton/tab_block.py +0 -0
  101. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/skeleton/tab_data.py +0 -0
  102. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/skeleton/tab_source.py +0 -0
  103. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/skeleton/tabs_block.py +0 -0
  104. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/skeleton/tabs_source.py +0 -0
  105. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/special.py +0 -0
  106. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/view_all_action.py +0 -0
  107. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing/waves.py +0 -0
  108. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing3/__init__.py +0 -0
  109. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing3/block.py +0 -0
  110. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing3/chart.py +0 -0
  111. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/landing3/menu.py +0 -0
  112. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/pager.py +0 -0
  113. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/playlists/__init__.py +0 -0
  114. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/playlists/cover.py +0 -0
  115. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/playlists/owner.py +0 -0
  116. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/playlists/playlist.py +0 -0
  117. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/playlists/tag.py +0 -0
  118. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/playlists/track.py +0 -0
  119. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/response.py +0 -0
  120. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/s3.py +0 -0
  121. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/search/__init__.py +0 -0
  122. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/search/results.py +0 -0
  123. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/theme.py +0 -0
  124. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/__init__.py +0 -0
  125. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/download_info.py +0 -0
  126. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/fade.py +0 -0
  127. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/file_info.py +0 -0
  128. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/lyrics_info.py +0 -0
  129. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/major.py +0 -0
  130. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/podcast.py +0 -0
  131. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/position.py +0 -0
  132. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/tracks/r128.py +0 -0
  133. {ymdantic-0.2.1 → ymdantic-0.2.3}/ymdantic/models/trailer.py +0 -0
@@ -0,0 +1,104 @@
1
+ name: Testing YMdantic
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ pull_request_target:
7
+ types: [opened, synchronize, reopened]
8
+
9
+ jobs:
10
+ lint:
11
+ if: github.event_name != 'pull_request_target'
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ python-version: ["3.12", "3.13", "3.14"]
17
+ check:
18
+ - name: Ruff format
19
+ cmd: ruff format --diff
20
+ - name: Ruff check
21
+ cmd: ruff check ymdantic tests
22
+ - name: Mypy
23
+ cmd: mypy ymdantic tests
24
+
25
+ name: "${{ matrix.check.name }} (py${{ matrix.python-version }})"
26
+
27
+ steps:
28
+ - uses: actions/checkout@v6
29
+
30
+ - name: Install uv
31
+ uses: astral-sh/setup-uv@v7
32
+ with:
33
+ version: "0.9.17"
34
+ python-version: ${{ matrix.python-version }}
35
+ enable-cache: true
36
+
37
+ - name: Install deps
38
+ run: uv sync --locked --all-groups
39
+
40
+ - name: Run check
41
+ run: uv run ${{ matrix.check.cmd }}
42
+
43
+ test_push:
44
+ if: github.event_name == 'push'
45
+ runs-on: ubuntu-latest
46
+ strategy:
47
+ fail-fast: false
48
+ matrix:
49
+ python-version: ["3.12", "3.13", "3.14"]
50
+
51
+ name: "Pytest push (py${{ matrix.python-version }})"
52
+
53
+ steps:
54
+ - uses: actions/checkout@v6
55
+
56
+ - name: Install uv
57
+ uses: astral-sh/setup-uv@v7
58
+ with:
59
+ version: "0.9.17"
60
+ python-version: ${{ matrix.python-version }}
61
+ enable-cache: true
62
+
63
+ - name: Install deps
64
+ run: uv sync --locked --all-groups
65
+
66
+ - name: Run Pytest
67
+ env:
68
+ YM_TOKEN: ${{ secrets.YM_TOKEN }}
69
+ run: uv run pytest -vv tests
70
+
71
+ test_pr_approved:
72
+ if: github.event_name == 'pull_request_target'
73
+ runs-on: ubuntu-latest
74
+ environment: pull_requests
75
+ strategy:
76
+ fail-fast: false
77
+ matrix:
78
+ python-version: ["3.12", "3.13", "3.14"]
79
+
80
+ name: "Pytest PR approved (py${{ matrix.python-version }})"
81
+
82
+ permissions:
83
+ contents: read
84
+ pull-requests: read
85
+
86
+ steps:
87
+ - uses: actions/checkout@v6
88
+ with:
89
+ ref: ${{ github.event.pull_request.head.sha }}
90
+
91
+ - name: Install uv
92
+ uses: astral-sh/setup-uv@v7
93
+ with:
94
+ version: "0.9.17"
95
+ python-version: ${{ matrix.python-version }}
96
+ enable-cache: true
97
+
98
+ - name: Install deps
99
+ run: uv sync --locked --all-groups
100
+
101
+ - name: Run Pytest
102
+ env:
103
+ YM_TOKEN: ${{ secrets.YM_TOKEN }}
104
+ run: uv run pytest -vv tests
@@ -1,4 +1,9 @@
1
1
  repos:
2
+ - repo: https://github.com/astral-sh/uv-pre-commit
3
+ rev: 0.9.7
4
+ hooks:
5
+ - id: uv-lock
6
+
2
7
  - repo: https://github.com/pre-commit/pre-commit-hooks
3
8
  rev: v6.0.0
4
9
  hooks:
@@ -12,7 +17,7 @@ repos:
12
17
  - id: "check-toml"
13
18
 
14
19
  - repo: https://github.com/astral-sh/ruff-pre-commit
15
- rev: 'v0.14.9'
20
+ rev: 'v0.15.9'
16
21
  hooks:
17
22
  - id: ruff-check
18
23
  args: ["--fix"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ymdantic
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: Фреймворк предоставляющий доступ к API Яндекс Музыки (с Pydantic валидацией)
5
5
  Author-email: KatantDev <vlad26@mail.ru>
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ymdantic"
3
- version = "0.2.1"
3
+ version = "0.2.3"
4
4
  description = "Фреймворк предоставляющий доступ к API Яндекс Музыки (с Pydantic валидацией)"
5
5
  authors = [{ name = "KatantDev", email = "vlad26@mail.ru" }]
6
6
  requires-python = ">=3.12,<3.15"
@@ -0,0 +1,64 @@
1
+ import asyncio
2
+ import secrets
3
+
4
+ import pytest
5
+ from ymdantic import YMClient
6
+ from ymdantic.exceptions import YMError
7
+ from ymdantic.models import Album
8
+
9
+
10
+ @pytest.mark.anyio
11
+ async def test_get_available_album_with_tracks(client: YMClient) -> None:
12
+ album_id = 1814060
13
+
14
+ result = await client.get_album_with_tracks(album_id=album_id)
15
+
16
+ assert result is not None
17
+ assert isinstance(result, Album)
18
+ assert result.meta_type == "music"
19
+ assert result.id == album_id
20
+ assert result.title is not None
21
+ assert result.artists is not None
22
+ assert len(result.artists) > 0
23
+ assert result.track_count > 0
24
+ assert result.volumes is not None
25
+ assert len(result.volumes) > 0
26
+ assert len(result.volumes[0]) > 0
27
+
28
+
29
+ @pytest.mark.anyio
30
+ async def test_get_not_found_album_with_tracks(client: YMClient) -> None:
31
+ with pytest.raises(YMError):
32
+ await client.get_album_with_tracks(album_id=181406011111)
33
+
34
+
35
+ async def test_get_available_album_with_podcast(client: YMClient) -> None:
36
+ album_id = 10141723
37
+
38
+ result = await client.get_album_with_tracks(album_id=album_id)
39
+
40
+ assert result is not None
41
+ assert isinstance(result, Album)
42
+ assert result.meta_type == "podcast"
43
+ assert result.id == album_id
44
+ assert result.title is not None
45
+ assert result.artists is not None
46
+ assert result.track_count > 0
47
+ assert result.volumes is not None
48
+ assert len(result.volumes) > 0
49
+ assert len(result.volumes[0]) > 0
50
+
51
+
52
+ @pytest.mark.anyio
53
+ async def test_get_random_album(client: YMClient) -> None:
54
+ album_ids = [secrets.randbelow(140_000_000) for _ in range(50)]
55
+ results = await asyncio.gather(
56
+ *[client.get_album_with_tracks(album_id=album_id) for album_id in album_ids],
57
+ return_exceptions=True,
58
+ )
59
+ error_results = [
60
+ result
61
+ for result in results
62
+ if isinstance(result, BaseException) and not isinstance(result, YMError)
63
+ ]
64
+ assert len(error_results) == 0
@@ -4,11 +4,11 @@ requires-python = ">=3.12, <3.15"
4
4
 
5
5
  [[package]]
6
6
  name = "adaptix"
7
- version = "3.0.0b11"
7
+ version = "3.0.0b12"
8
8
  source = { registry = "https://pypi.org/simple" }
9
- sdist = { url = "https://files.pythonhosted.org/packages/58/ea/f55d4de521cb237b1dd9c4a21c6ae3885d21b4f90130d15fd88020d6d1ca/adaptix-3.0.0b11.tar.gz", hash = "sha256:3d3d660d97d9e1a85d133b181fdac8a200ff3185422fdf686601bc9ed0017162", size = 134021, upload-time = "2025-05-09T14:51:09.977Z" }
9
+ sdist = { url = "https://files.pythonhosted.org/packages/5d/82/aa17eb2968cf7c78caf4915ca62397214f196dc1bef07e4d81bfb4c4abc5/adaptix-3.0.0b12.tar.gz", hash = "sha256:906053a39ff509f0aa4ca9faa07dffa205bd90fa41d9774cd849d3454565b0ea", size = 128634, upload-time = "2026-04-04T17:31:01.084Z" }
10
10
  wheels = [
11
- { url = "https://files.pythonhosted.org/packages/76/70/b087e09db584c2718cfff4a354c98dfac1844e7e7d0c75dc38685823eec1/adaptix-3.0.0b11-py3-none-any.whl", hash = "sha256:5afa7197d1a084fc93da852bf58194de4a1c506caa3f5889c9953a27ce515bda", size = 179291, upload-time = "2025-05-09T14:51:08.288Z" },
11
+ { url = "https://files.pythonhosted.org/packages/11/66/abcca849b17e4a3adf5116e58c51471f37264a190cee2c67f1ba57782a7f/adaptix-3.0.0b12-py3-none-any.whl", hash = "sha256:8156f0549b96fcd193d13efca7bfbda39b3d6389085556d930e204c09f9ae6ed", size = 188651, upload-time = "2026-04-04T17:30:59.17Z" },
12
12
  ]
13
13
 
14
14
  [[package]]
@@ -948,27 +948,27 @@ wheels = [
948
948
 
949
949
  [[package]]
950
950
  name = "ruff"
951
- version = "0.15.8"
951
+ version = "0.15.9"
952
952
  source = { registry = "https://pypi.org/simple" }
953
- sdist = { url = "https://files.pythonhosted.org/packages/14/b0/73cf7550861e2b4824950b8b52eebdcc5adc792a00c514406556c5b80817/ruff-0.15.8.tar.gz", hash = "sha256:995f11f63597ee362130d1d5a327a87cb6f3f5eae3094c620bcc632329a4d26e", size = 4610921, upload-time = "2026-03-26T18:39:38.675Z" }
953
+ sdist = { url = "https://files.pythonhosted.org/packages/e6/97/e9f1ca355108ef7194e38c812ef40ba98c7208f47b13ad78d023caa583da/ruff-0.15.9.tar.gz", hash = "sha256:29cbb1255a9797903f6dde5ba0188c707907ff44a9006eb273b5a17bfa0739a2", size = 4617361, upload-time = "2026-04-02T18:17:20.829Z" }
954
954
  wheels = [
955
- { url = "https://files.pythonhosted.org/packages/4a/92/c445b0cd6da6e7ae51e954939cb69f97e008dbe750cfca89b8cedc081be7/ruff-0.15.8-py3-none-linux_armv6l.whl", hash = "sha256:cbe05adeba76d58162762d6b239c9056f1a15a55bd4b346cfd21e26cd6ad7bc7", size = 10527394, upload-time = "2026-03-26T18:39:41.566Z" },
956
- { url = "https://files.pythonhosted.org/packages/eb/92/f1c662784d149ad1414cae450b082cf736430c12ca78367f20f5ed569d65/ruff-0.15.8-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:d3e3d0b6ba8dca1b7ef9ab80a28e840a20070c4b62e56d675c24f366ef330570", size = 10905693, upload-time = "2026-03-26T18:39:30.364Z" },
957
- { url = "https://files.pythonhosted.org/packages/ca/f2/7a631a8af6d88bcef997eb1bf87cc3da158294c57044aafd3e17030613de/ruff-0.15.8-py3-none-macosx_11_0_arm64.whl", hash = "sha256:6ee3ae5c65a42f273f126686353f2e08ff29927b7b7e203b711514370d500de3", size = 10323044, upload-time = "2026-03-26T18:39:33.37Z" },
958
- { url = "https://files.pythonhosted.org/packages/67/18/1bf38e20914a05e72ef3b9569b1d5c70a7ef26cd188d69e9ca8ef588d5bf/ruff-0.15.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fdce027ada77baa448077ccc6ebb2fa9c3c62fd110d8659d601cf2f475858d94", size = 10629135, upload-time = "2026-03-26T18:39:44.142Z" },
959
- { url = "https://files.pythonhosted.org/packages/d2/e9/138c150ff9af60556121623d41aba18b7b57d95ac032e177b6a53789d279/ruff-0.15.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:12e617fc01a95e5821648a6df341d80456bd627bfab8a829f7cfc26a14a4b4a3", size = 10348041, upload-time = "2026-03-26T18:39:52.178Z" },
960
- { url = "https://files.pythonhosted.org/packages/02/f1/5bfb9298d9c323f842c5ddeb85f1f10ef51516ac7a34ba446c9347d898df/ruff-0.15.8-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:432701303b26416d22ba696c39f2c6f12499b89093b61360abc34bcc9bf07762", size = 11121987, upload-time = "2026-03-26T18:39:55.195Z" },
961
- { url = "https://files.pythonhosted.org/packages/10/11/6da2e538704e753c04e8d86b1fc55712fdbdcc266af1a1ece7a51fff0d10/ruff-0.15.8-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d910ae974b7a06a33a057cb87d2a10792a3b2b3b35e33d2699fdf63ec8f6b17a", size = 11951057, upload-time = "2026-03-26T18:39:19.18Z" },
962
- { url = "https://files.pythonhosted.org/packages/83/f0/c9208c5fd5101bf87002fed774ff25a96eea313d305f1e5d5744698dc314/ruff-0.15.8-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2033f963c43949d51e6fdccd3946633c6b37c484f5f98c3035f49c27395a8ab8", size = 11464613, upload-time = "2026-03-26T18:40:06.301Z" },
963
- { url = "https://files.pythonhosted.org/packages/f8/22/d7f2fabdba4fae9f3b570e5605d5eb4500dcb7b770d3217dca4428484b17/ruff-0.15.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f29b989a55572fb885b77464cf24af05500806ab4edf9a0fd8977f9759d85b1", size = 11257557, upload-time = "2026-03-26T18:39:57.972Z" },
964
- { url = "https://files.pythonhosted.org/packages/71/8c/382a9620038cf6906446b23ce8632ab8c0811b8f9d3e764f58bedd0c9a6f/ruff-0.15.8-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:ac51d486bf457cdc985a412fb1801b2dfd1bd8838372fc55de64b1510eff4bec", size = 11169440, upload-time = "2026-03-26T18:39:22.205Z" },
965
- { url = "https://files.pythonhosted.org/packages/4d/0d/0994c802a7eaaf99380085e4e40c845f8e32a562e20a38ec06174b52ef24/ruff-0.15.8-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c9861eb959edab053c10ad62c278835ee69ca527b6dcd72b47d5c1e5648964f6", size = 10605963, upload-time = "2026-03-26T18:39:46.682Z" },
966
- { url = "https://files.pythonhosted.org/packages/19/aa/d624b86f5b0aad7cef6bbf9cd47a6a02dfdc4f72c92a337d724e39c9d14b/ruff-0.15.8-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8d9a5b8ea13f26ae90838afc33f91b547e61b794865374f114f349e9036835fb", size = 10357484, upload-time = "2026-03-26T18:39:49.176Z" },
967
- { url = "https://files.pythonhosted.org/packages/35/c3/e0b7835d23001f7d999f3895c6b569927c4d39912286897f625736e1fd04/ruff-0.15.8-py3-none-musllinux_1_2_i686.whl", hash = "sha256:c2a33a529fb3cbc23a7124b5c6ff121e4d6228029cba374777bd7649cc8598b8", size = 10830426, upload-time = "2026-03-26T18:40:03.702Z" },
968
- { url = "https://files.pythonhosted.org/packages/f0/51/ab20b322f637b369383adc341d761eaaa0f0203d6b9a7421cd6e783d81b9/ruff-0.15.8-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:75e5cd06b1cf3f47a3996cfc999226b19aa92e7cce682dcd62f80d7035f98f49", size = 11345125, upload-time = "2026-03-26T18:39:27.799Z" },
969
- { url = "https://files.pythonhosted.org/packages/37/e6/90b2b33419f59d0f2c4c8a48a4b74b460709a557e8e0064cf33ad894f983/ruff-0.15.8-py3-none-win32.whl", hash = "sha256:bc1f0a51254ba21767bfa9a8b5013ca8149dcf38092e6a9eb704d876de94dc34", size = 10571959, upload-time = "2026-03-26T18:39:36.117Z" },
970
- { url = "https://files.pythonhosted.org/packages/1f/a2/ef467cb77099062317154c63f234b8a7baf7cb690b99af760c5b68b9ee7f/ruff-0.15.8-py3-none-win_amd64.whl", hash = "sha256:04f79eff02a72db209d47d665ba7ebcad609d8918a134f86cb13dd132159fc89", size = 11743893, upload-time = "2026-03-26T18:39:25.01Z" },
971
- { url = "https://files.pythonhosted.org/packages/15/e2/77be4fff062fa78d9b2a4dea85d14785dac5f1d0c1fb58ed52331f0ebe28/ruff-0.15.8-py3-none-win_arm64.whl", hash = "sha256:cf891fa8e3bb430c0e7fac93851a5978fc99c8fa2c053b57b118972866f8e5f2", size = 11048175, upload-time = "2026-03-26T18:40:01.06Z" },
955
+ { url = "https://files.pythonhosted.org/packages/0b/1f/9cdfd0ac4b9d1e5a6cf09bedabdf0b56306ab5e333c85c87281273e7b041/ruff-0.15.9-py3-none-linux_armv6l.whl", hash = "sha256:6efbe303983441c51975c243e26dff328aca11f94b70992f35b093c2e71801e1", size = 10511206, upload-time = "2026-04-02T18:16:41.574Z" },
956
+ { url = "https://files.pythonhosted.org/packages/3d/f6/32bfe3e9c136b35f02e489778d94384118bb80fd92c6d92e7ccd97db12ce/ruff-0.15.9-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:4965bac6ac9ea86772f4e23587746f0b7a395eccabb823eb8bfacc3fa06069f7", size = 10923307, upload-time = "2026-04-02T18:17:08.645Z" },
957
+ { url = "https://files.pythonhosted.org/packages/ca/25/de55f52ab5535d12e7aaba1de37a84be6179fb20bddcbe71ec091b4a3243/ruff-0.15.9-py3-none-macosx_11_0_arm64.whl", hash = "sha256:eaf05aad70ca5b5a0a4b0e080df3a6b699803916d88f006efd1f5b46302daab8", size = 10316722, upload-time = "2026-04-02T18:16:44.206Z" },
958
+ { url = "https://files.pythonhosted.org/packages/48/11/690d75f3fd6278fe55fff7c9eb429c92d207e14b25d1cae4064a32677029/ruff-0.15.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9439a342adb8725f32f92732e2bafb6d5246bd7a5021101166b223d312e8fc59", size = 10623674, upload-time = "2026-04-02T18:16:50.951Z" },
959
+ { url = "https://files.pythonhosted.org/packages/bd/ec/176f6987be248fc5404199255522f57af1b4a5a1b57727e942479fec98ad/ruff-0.15.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9c5e6faf9d97c8edc43877c3f406f47446fc48c40e1442d58cfcdaba2acea745", size = 10351516, upload-time = "2026-04-02T18:16:57.206Z" },
960
+ { url = "https://files.pythonhosted.org/packages/b2/fc/51cffbd2b3f240accc380171d51446a32aa2ea43a40d4a45ada67368fbd2/ruff-0.15.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7b34a9766aeec27a222373d0b055722900fbc0582b24f39661aa96f3fe6ad901", size = 11150202, upload-time = "2026-04-02T18:17:06.452Z" },
961
+ { url = "https://files.pythonhosted.org/packages/d6/d4/25292a6dfc125f6b6528fe6af31f5e996e19bf73ca8e3ce6eb7fa5b95885/ruff-0.15.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:89dd695bc72ae76ff484ae54b7e8b0f6b50f49046e198355e44ea656e521fef9", size = 11988891, upload-time = "2026-04-02T18:17:18.575Z" },
962
+ { url = "https://files.pythonhosted.org/packages/13/e1/1eebcb885c10e19f969dcb93d8413dfee8172578709d7ee933640f5e7147/ruff-0.15.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ce187224ef1de1bd225bc9a152ac7102a6171107f026e81f317e4257052916d5", size = 11480576, upload-time = "2026-04-02T18:16:52.986Z" },
963
+ { url = "https://files.pythonhosted.org/packages/ff/6b/a1548ac378a78332a4c3dcf4a134c2475a36d2a22ddfa272acd574140b50/ruff-0.15.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2b0c7c341f68adb01c488c3b7d4b49aa8ea97409eae6462d860a79cf55f431b6", size = 11254525, upload-time = "2026-04-02T18:17:02.041Z" },
964
+ { url = "https://files.pythonhosted.org/packages/42/aa/4bb3af8e61acd9b1281db2ab77e8b2c3c5e5599bf2a29d4a942f1c62b8d6/ruff-0.15.9-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:55cc15eee27dc0eebdfcb0d185a6153420efbedc15eb1d38fe5e685657b0f840", size = 11204072, upload-time = "2026-04-02T18:17:13.581Z" },
965
+ { url = "https://files.pythonhosted.org/packages/69/48/d550dc2aa6e423ea0bcc1d0ff0699325ffe8a811e2dba156bd80750b86dc/ruff-0.15.9-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a6537f6eed5cda688c81073d46ffdfb962a5f29ecb6f7e770b2dc920598997ed", size = 10594998, upload-time = "2026-04-02T18:16:46.369Z" },
966
+ { url = "https://files.pythonhosted.org/packages/63/47/321167e17f5344ed5ec6b0aa2cff64efef5f9e985af8f5622cfa6536043f/ruff-0.15.9-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:6d3fcbca7388b066139c523bda744c822258ebdcfbba7d24410c3f454cc9af71", size = 10359769, upload-time = "2026-04-02T18:17:10.994Z" },
967
+ { url = "https://files.pythonhosted.org/packages/67/5e/074f00b9785d1d2c6f8c22a21e023d0c2c1817838cfca4c8243200a1fa87/ruff-0.15.9-py3-none-musllinux_1_2_i686.whl", hash = "sha256:058d8e99e1bfe79d8a0def0b481c56059ee6716214f7e425d8e737e412d69677", size = 10850236, upload-time = "2026-04-02T18:16:48.749Z" },
968
+ { url = "https://files.pythonhosted.org/packages/76/37/804c4135a2a2caf042925d30d5f68181bdbd4461fd0d7739da28305df593/ruff-0.15.9-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:8e1ddb11dbd61d5983fa2d7d6370ef3eb210951e443cace19594c01c72abab4c", size = 11358343, upload-time = "2026-04-02T18:16:55.068Z" },
969
+ { url = "https://files.pythonhosted.org/packages/88/3d/1364fcde8656962782aa9ea93c92d98682b1ecec2f184e625a965ad3b4a6/ruff-0.15.9-py3-none-win32.whl", hash = "sha256:bde6ff36eaf72b700f32b7196088970bf8fdb2b917b7accd8c371bfc0fd573ec", size = 10583382, upload-time = "2026-04-02T18:17:04.261Z" },
970
+ { url = "https://files.pythonhosted.org/packages/4c/56/5c7084299bd2cacaa07ae63a91c6f4ba66edc08bf28f356b24f6b717c799/ruff-0.15.9-py3-none-win_amd64.whl", hash = "sha256:45a70921b80e1c10cf0b734ef09421f71b5aa11d27404edc89d7e8a69505e43d", size = 11744969, upload-time = "2026-04-02T18:16:59.611Z" },
971
+ { url = "https://files.pythonhosted.org/packages/03/36/76704c4f312257d6dbaae3c959add2a622f63fcca9d864659ce6d8d97d3d/ruff-0.15.9-py3-none-win_arm64.whl", hash = "sha256:0694e601c028fd97dc5c6ee244675bc241aeefced7ef80cd9c6935a871078f53", size = 11005870, upload-time = "2026-04-02T18:17:15.773Z" },
972
972
  ]
973
973
 
974
974
  [[package]]
@@ -1122,7 +1122,7 @@ wheels = [
1122
1122
 
1123
1123
  [[package]]
1124
1124
  name = "ymdantic"
1125
- version = "0.2.1"
1125
+ version = "0.2.3"
1126
1126
  source = { editable = "." }
1127
1127
  dependencies = [
1128
1128
  { name = "aiohttp" },
@@ -3,7 +3,7 @@ import urllib.parse
3
3
  from types import TracebackType
4
4
  from typing import Any, Optional, Self
5
5
 
6
- from aiohttp import ClientError, ClientSession, ClientTimeout, FormData
6
+ from aiohttp import ClientError, ClientSession, ClientTimeout, FormData, TCPConnector
7
7
  from dataclass_rest.base_client import BaseClient
8
8
  from dataclass_rest.exceptions import ClientLibraryError
9
9
  from dataclass_rest.http_request import HttpRequest
@@ -22,14 +22,73 @@ class AiohttpClient(BaseClient):
22
22
  session: Optional[ClientSession] = None,
23
23
  headers: Optional[dict[str, Any]] = None,
24
24
  timeout: Optional[ClientTimeout] = None,
25
+ proxy: Optional[str] = None,
25
26
  ) -> None:
26
27
  super().__init__()
27
28
  self.base_url = base_url
28
29
  self.headers = headers or {}
30
+ self.proxy = proxy
31
+ self.timeout = timeout
29
32
 
30
- self._session = session or ClientSession(
33
+ self._session = session or self._create_session(headers=headers)
34
+
35
+ def _create_session(self, headers: dict[str, Any] | None) -> ClientSession:
36
+ """
37
+ Создает ClientSession с учетом прокси.
38
+
39
+ Поддерживает HTTP, HTTPS и SOCKS прокси (4, 4a, 5).
40
+
41
+ :param headers:
42
+ :return: aiohttp ClientSession.
43
+ """
44
+ if self.proxy is None:
45
+ return ClientSession(
46
+ headers=headers,
47
+ timeout=self.timeout or ClientTimeout(total=0),
48
+ )
49
+
50
+ try:
51
+ from aiohttp_socks import ProxyConnector # noqa: PLC0415
52
+ except ImportError as e:
53
+ raise ImportError(
54
+ "Warning: aiohttp_socks not installed. "
55
+ "SOCKS proxies will not work. "
56
+ "Install with: pip install aiohttp_socks",
57
+ ) from e
58
+
59
+ # Определяем тип прокси по схеме
60
+ proxy_lower = self.proxy.lower()
61
+
62
+ # SOCKS прокси (поддерживаются socks4, socks4a, socks5, socks5h)
63
+ if any(
64
+ scheme in proxy_lower
65
+ for scheme in ["socks4", "socks5", "socks5h", "socks4a"]
66
+ ):
67
+ # Используем ProxyConnector для SOCKS
68
+ connector = ProxyConnector.from_url(self.proxy)
69
+ return ClientSession(
70
+ connector=connector,
71
+ headers=headers,
72
+ timeout=self.timeout or ClientTimeout(total=0),
73
+ )
74
+
75
+ # HTTP/HTTPS прокси
76
+ if proxy_lower.startswith(("http://", "https://")):
77
+ connector = TCPConnector()
78
+ return ClientSession(
79
+ connector=connector,
80
+ proxy=self.proxy,
81
+ headers=headers,
82
+ timeout=self.timeout or ClientTimeout(total=0),
83
+ )
84
+
85
+ # Если схема не распознана, предполагаем HTTP
86
+ connector = TCPConnector()
87
+ return ClientSession(
88
+ connector=connector,
89
+ proxy=f"http://{self.proxy}",
31
90
  headers=headers,
32
- timeout=timeout or ClientTimeout(total=0),
91
+ timeout=self.timeout or ClientTimeout(total=0),
33
92
  )
34
93
 
35
94
  async def close(self) -> None:
@@ -51,6 +51,7 @@ from ymdantic.models import (
51
51
  )
52
52
  from ymdantic.models.account import AccountSettings, SetAccountSettingsParams
53
53
  from ymdantic.models.landing.artist import LandingArtistItemData
54
+ from ymdantic.models.search.base import SearchParamsDict
54
55
 
55
56
 
56
57
  class YMClient(AiohttpClient):
@@ -61,15 +62,20 @@ class YMClient(AiohttpClient):
61
62
  token: str,
62
63
  user_id: int | None = None,
63
64
  base_url: str = "https://api.music.yandex.net/",
65
+ proxy: str | None = None, # Формат: scheme://login:password@ip:port
64
66
  ) -> None:
65
67
  self.user_id = user_id
68
+
69
+ headers = {
70
+ "Accept": "application/json",
71
+ "Authorization": f"OAuth {token}",
72
+ "X-Yandex-Music-Client": "YandexMusicAndroid/24023621",
73
+ }
74
+
66
75
  super().__init__(
67
76
  base_url=base_url,
68
- headers={
69
- "Accept": "application/json",
70
- "Authorization": f"OAuth {token}",
71
- "X-Yandex-Music-Client": "YandexMusicAndroid/24023621",
72
- },
77
+ headers=headers,
78
+ proxy=proxy,
73
79
  )
74
80
 
75
81
  def _init_request_body_factory(self) -> FactoryProtocol:
@@ -441,7 +447,7 @@ class YMClient(AiohttpClient):
441
447
 
442
448
  async def search_instant_mixed(
443
449
  self,
444
- **params: Unpack[SearchParams], # type: ignore[misc]
450
+ **params: Unpack[SearchParamsDict],
445
451
  ) -> SearchInstantMixedResponse:
446
452
  response = await self.search_instant_mixed_request(
447
453
  params=SearchParams(**params),
@@ -1,4 +1,4 @@
1
- from typing import Annotated, Literal
1
+ from typing import Annotated, Literal, NotRequired, TypedDict
2
2
 
3
3
  from pydantic import Field
4
4
 
@@ -24,6 +24,21 @@ class SearchParams(YMPostBaseModel):
24
24
  nocorrect: bool = False
25
25
 
26
26
 
27
+ class SearchParamsDict(TypedDict, total=False):
28
+ """Fields for search function."""
29
+
30
+ text: str
31
+ with_likes_count: NotRequired[bool]
32
+ page: NotRequired[int]
33
+ page_size: NotRequired[int]
34
+ with_best_results: NotRequired[bool]
35
+ type: NotRequired[Literal["all"]]
36
+ filter: NotRequired[
37
+ Literal["track", "artist", "album", "playlist", "podcast", "book", "clip"]
38
+ ]
39
+ nocorrect: NotRequired[bool]
40
+
41
+
27
42
  class SearchFilter(YMBaseModel):
28
43
  """Фильтры для поиска."""
29
44
 
@@ -12,4 +12,4 @@ class TrackAlbum(BaseAlbum):
12
12
  # Дата начала альбома.
13
13
  track_position: Optional[TrackPosition] = None
14
14
  # Позиция трека в альбоме (если есть).
15
- listening_finished: bool
15
+ listening_finished: bool | None = None
@@ -81,6 +81,8 @@ class BaseTrack(YMBaseModel, DeprecatedMixin):
81
81
  best: bool | None = None
82
82
  # Является ли трек лучшим (поле доступно при получении альбома с треками
83
83
  # `get_album_with_tracks`).
84
+ listening_finished: bool | None = None
85
+ # Флаг, указывающий, завершено ли прослушивание альбома.
84
86
 
85
87
  @property
86
88
  def artists_names(self) -> str | None:
File without changes
@@ -1,40 +0,0 @@
1
- name: Testing YMdantic
2
-
3
- on: push
4
-
5
- jobs:
6
- lint:
7
- runs-on: ubuntu-latest
8
- strategy:
9
- fail-fast: false
10
- matrix:
11
- python-version: ["3.12", "3.13", "3.14"]
12
- check:
13
- - name: Ruff format
14
- cmd: ruff format --diff
15
- - name: Ruff check
16
- cmd: ruff check ymdantic tests
17
- - name: Mypy
18
- cmd: mypy ymdantic tests
19
- - name: Pytest
20
- cmd: pytest -vv tests
21
-
22
- name: "${{ matrix.check.name }} (py${{ matrix.python-version }})"
23
-
24
- steps:
25
- - uses: actions/checkout@v6
26
-
27
- - name: Install uv
28
- uses: astral-sh/setup-uv@v7
29
- with:
30
- version: "0.9.17"
31
- python-version: ${{ matrix.python-version }}
32
- enable-cache: true
33
-
34
- - name: Install deps
35
- run: uv sync --locked --all-groups
36
-
37
- - name: Run check
38
- env:
39
- YM_TOKEN: ${{ secrets.YM_TOKEN }}
40
- run: uv run ${{ matrix.check.cmd }}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes