veltrixcode commited on
Commit
b1e3e0a
·
verified ·
1 Parent(s): 291ade9

Upload 170 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Dockerfile +5 -1
  2. README.md +285 -12
  3. app.py +12 -2
  4. index.html +77 -0
  5. jiosaavn_helpers.py +100 -0
  6. requirements.txt +4 -1
  7. routes.py +259 -4
  8. routes_entities.py +167 -8
  9. routes_explore.py +41 -8
  10. routes_jiosaavn.py +262 -0
  11. routes_youtube.py +150 -0
  12. ytmusicapi/.github/ISSUE_TEMPLATE/bug_report.md +30 -0
  13. ytmusicapi/.github/ISSUE_TEMPLATE/feature_request.md +22 -0
  14. ytmusicapi/.github/dependabot.yml +12 -0
  15. ytmusicapi/.github/workflows/coverage.yml +58 -0
  16. ytmusicapi/.github/workflows/lint.yml +31 -0
  17. ytmusicapi/.github/workflows/pdm.yml +14 -0
  18. ytmusicapi/.github/workflows/pythonpublish.yml +29 -0
  19. ytmusicapi/.gitignore +18 -0
  20. ytmusicapi/.pre-commit-config.yaml +18 -0
  21. ytmusicapi/.readthedocs.yml +20 -0
  22. ytmusicapi/CONTRIBUTING.rst +37 -0
  23. ytmusicapi/LICENSE +21 -0
  24. ytmusicapi/README.rst +114 -0
  25. ytmusicapi/docs/Makefile +21 -0
  26. ytmusicapi/docs/make.bat +36 -0
  27. ytmusicapi/docs/source/_static/css/custom.css +19 -0
  28. ytmusicapi/docs/source/_templates/layout.html +4 -0
  29. ytmusicapi/docs/source/conf.py +66 -0
  30. ytmusicapi/docs/source/faq.rst +428 -0
  31. ytmusicapi/docs/source/index.rst +30 -0
  32. ytmusicapi/docs/source/reference/browsing.rst +17 -0
  33. ytmusicapi/docs/source/reference/explore.rst +7 -0
  34. ytmusicapi/docs/source/reference/index.rst +19 -0
  35. ytmusicapi/docs/source/reference/library.rst +23 -0
  36. ytmusicapi/docs/source/reference/oauth.rst +9 -0
  37. ytmusicapi/docs/source/reference/playlists.rst +10 -0
  38. ytmusicapi/docs/source/reference/podcasts.rst +9 -0
  39. ytmusicapi/docs/source/reference/search.rst +7 -0
  40. ytmusicapi/docs/source/reference/setup.rst +8 -0
  41. ytmusicapi/docs/source/reference/uploads.rst +11 -0
  42. ytmusicapi/docs/source/reference/watch.rst +5 -0
  43. ytmusicapi/docs/source/reference/ytmusic.rst +6 -0
  44. ytmusicapi/docs/source/requirements.txt +3 -0
  45. ytmusicapi/docs/source/setup/browser.rst +93 -0
  46. ytmusicapi/docs/source/setup/headers_auth.json.example +9 -0
  47. ytmusicapi/docs/source/setup/index.rst +24 -0
  48. ytmusicapi/docs/source/setup/oauth.rst +32 -0
  49. ytmusicapi/docs/source/usage.rst +53 -0
  50. ytmusicapi/pdm.lock +826 -0
Dockerfile CHANGED
@@ -5,13 +5,17 @@ ENV DEBIAN_FRONTEND=noninteractive \
5
  PIP_NO_CACHE_DIR=1 \
6
  PORT=7860
7
 
8
- # System deps and Python (Ubuntu 22.04 provides Python 3.10)
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  ca-certificates \
11
  curl \
 
 
 
12
  python3 \
13
  python3-pip \
14
  python3-venv \
 
15
  && update-ca-certificates \
16
  && rm -rf /var/lib/apt/lists/*
17
 
 
5
  PIP_NO_CACHE_DIR=1 \
6
  PORT=7860
7
 
8
+ # System deps and Python 3.10 (default in Ubuntu 22.04)
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  ca-certificates \
11
  curl \
12
+ git \
13
+ build-essential \
14
+ pkg-config \
15
  python3 \
16
  python3-pip \
17
  python3-venv \
18
+ python3-distutils \
19
  && update-ca-certificates \
20
  && rm -rf /var/lib/apt/lists/*
21
 
README.md CHANGED
@@ -1,12 +1,285 @@
1
- ---
2
- title: Ytm
3
- emoji: 💻
4
- colorFrom: pink
5
- colorTo: purple
6
- sdk: docker
7
- pinned: false
8
- license: mit
9
- short_description: aaa
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # YouTube Music & YouTube API (Unofficial)
2
+
3
+ Flask wrapper around `ytmusicapi` and `youtube-search-python-fork` exposing simple unauthenticated endpoints for both YouTube Music and regular YouTube content.
4
+
5
+ **Base URL**: `https://ytm-jgmk.onrender.com`
6
+
7
+ **Interactive API Docs**: https://ytm-jgmk.onrender.com/docs/
8
+
9
+ ## Quick Start
10
+
11
+ ### Local Development
12
+
13
+ 1. Create a virtualenv (optional)
14
+ 2. Install dependencies:
15
+ ```bash
16
+ pip install -r requirements.txt
17
+ ```
18
+ 3. Run the server:
19
+ ```bash
20
+ python app.py
21
+ ```
22
+ - Server: http://localhost:8000
23
+ - Docs: http://localhost:8000/docs/
24
+
25
+ ### Production Deployment
26
+ ```bash
27
+ waitress-serve --host=0.0.0.0 --port=8000 app:app
28
+ ```
29
+
30
+ ## API Endpoints
31
+
32
+ ### Health Check
33
+ - **GET** `/health` - API health status
34
+
35
+ ### YouTube Music API (via ytmusicapi)
36
+
37
+ #### Search
38
+ - **GET** `/api/search?q={query}&filter={filter}&limit={limit}`
39
+ - Search YouTube Music content
40
+ - **Filters**: `songs`, `videos`, `albums`, `artists`, `playlists`, `profiles`, `podcasts`, `episodes`, `community_playlists`
41
+ - **Example**: `https://ytm-jgmk.onrender.com/api/search?q=oasis&filter=songs&limit=10`
42
+
43
+ - **GET** `/api/search/suggestions?q={query}`
44
+ - Get search suggestions
45
+ - **Example**: `https://ytm-jgmk.onrender.com/api/search/suggestions?q=oasi`
46
+
47
+ #### Content Details
48
+ - **GET** `/api/songs/{video_id}`
49
+ - Get song details by video ID
50
+ - **Example**: `https://ytm-jgmk.onrender.com/api/songs/ZuB1I4eY2vE`
51
+
52
+ - **GET** `/api/albums/{browse_id}`
53
+ - Get album details and tracks
54
+ - **Example**: `https://ytm-jgmk.onrender.com/api/albums/MPREb_DemoBrowseId`
55
+
56
+ - **GET** `/api/artists/{browse_id}`
57
+ - Get artist information and releases
58
+ - **Example**: `https://ytm-jgmk.onrender.com/api/artists/UC123ArtistBrowseId`
59
+
60
+ - **GET** `/api/playlists/{playlist_id}?limit={limit}`
61
+ - Get playlist details and items
62
+ - **Example**: `https://ytm-jgmk.onrender.com/api/playlists/PL123456789?limit=50`
63
+
64
+ #### Explore & Discovery
65
+ - **GET** `/api/charts?country={country}`
66
+ - Get music charts (global or by country)
67
+ - **Example**: `https://ytm-jgmk.onrender.com/api/charts?country=US`
68
+
69
+ - **GET** `/api/moods`
70
+ - Get mood/genre categories
71
+ - **Example**: `https://ytm-jgmk.onrender.com/api/moods`
72
+
73
+ - **GET** `/api/moods/{category_id}`
74
+ - Get playlists for a mood/genre category
75
+ - **Example**: `https://ytm-jgmk.onrender.com/api/moods/egVnKQ`
76
+
77
+ - **GET** `/api/watch_playlist?videoId={id}&radio={bool}&shuffle={bool}&limit={limit}`
78
+ - Get watch playlist (radio/shuffle)
79
+ - **Example**: `https://ytm-jgmk.onrender.com/api/watch_playlist?videoId=ZuB1I4eY2vE&radio=true&limit=25`
80
+
81
+ ### YouTube API (via youtube-search-python-fork)
82
+
83
+ #### Search
84
+ - **GET** `/api/yt_search?q={query}&filter={filter}&limit={limit}`
85
+ - Search YouTube content
86
+ - **Filters**: `all`, `videos`, `channels`, `playlists`
87
+ - **Example**: `https://ytm-jgmk.onrender.com/api/yt_search?q=music&filter=videos&limit=10`
88
+
89
+ #### Content Details
90
+ - **GET** `/api/yt_channel/{channel_id}`
91
+ - Get YouTube channel information
92
+ - **Example**: `https://ytm-jgmk.onrender.com/api/yt_channel/UC_x5XG1OV2P6uZZ5FSM9Ttw`
93
+
94
+ - **GET** `/api/yt_playlists?q={query}&limit={limit}`
95
+ - Search YouTube playlists
96
+ - **Example**: `https://ytm-jgmk.onrender.com/api/yt_playlists?q=music&limit=20`
97
+
98
+ ## Usage Examples
99
+
100
+ ### YouTube Music Search
101
+ ```bash
102
+ # Search for songs
103
+ curl "https://ytm-jgmk.onrender.com/api/search?q=oasis&filter=songs&limit=5"
104
+
105
+ # Get search suggestions
106
+ curl "https://ytm-jgmk.onrender.com/api/search/suggestions?q=oasi"
107
+
108
+ # Get charts
109
+ curl "https://ytm-jgmk.onrender.com/api/charts?country=US"
110
+ ```
111
+
112
+ ### YouTube Search
113
+ ```bash
114
+ # Search videos
115
+ curl "https://ytm-jgmk.onrender.com/api/yt_search?q=music&filter=videos&limit=5"
116
+
117
+ # Search channels
118
+ curl "https://ytm-jgmk.onrender.com/api/yt_search?q=tech&filter=channels&limit=3"
119
+
120
+ # Search playlists
121
+ curl "https://ytm-jgmk.onrender.com/api/yt_playlists?q=music&limit=10"
122
+ ```
123
+
124
+ ## Sample Responses (local run snapshots)
125
+
126
+ Note: These are abbreviated examples to illustrate the response shape. Fields may vary based on content and availability.
127
+
128
+ ### Health
129
+ GET `/health`
130
+ ```json
131
+ { "status": "ok" }
132
+ ```
133
+
134
+ ### YouTube Music
135
+
136
+ GET `/api/search?q=music&filter=songs&limit=1`
137
+ ```json
138
+ {
139
+ "results": [
140
+ {
141
+ "resultType": "song",
142
+ "title": "Rain Sound (Pure White Noise for Natural Deep Sleep Inducing)",
143
+ "videoId": "13EL6Mgeocc",
144
+ "duration": "3:20:01",
145
+ "duration_seconds": 12001,
146
+ "artists": [
147
+ { "id": "UCo5JkRVziPY8hl5VCpukMkQ", "name": "White Noise Masters" },
148
+ { "id": "UC0VD-Sorq2XpUagaoemRAMA", "name": "Deep Sleep" }
149
+ ],
150
+ "album": {
151
+ "id": "MPREb_k9b0KESuAJF",
152
+ "name": "Rain Sound 200 Minutes for Deep Sleep Inducing – White Noise..."
153
+ },
154
+ "thumbnails": [ { "url": "https://lh3.googleusercontent.com/...", "width": 60, "height": 60 } ]
155
+ }
156
+ ]
157
+ }
158
+ ```
159
+
160
+ GET `/api/search/suggestions?q=music`
161
+ ```json
162
+ { "suggestions": ["music", "music to watch boys to", "sleeping music"] }
163
+ ```
164
+
165
+ GET `/api/songs/{video_id}` (example: `13EL6Mgeocc`)
166
+ ```json
167
+ {
168
+ "videoDetails": {
169
+ "videoId": "13EL6Mgeocc",
170
+ "title": "Rain Sound (Pure White Noise for Natural Deep Sleep Inducing)",
171
+ "author": "White Noise Masters - Topic",
172
+ "lengthSeconds": "12001"
173
+ },
174
+ "microformat": { "microformatDataRenderer": { "appName": "YouTube Music" } }
175
+ }
176
+ ```
177
+
178
+ GET `/api/albums/{browse_id}` (example: `MPREb_k9b0KESuAJF`)
179
+ ```json
180
+ {
181
+ "title": "Rain Sound 200 Minutes for Deep Sleep Inducing – White Noise...",
182
+ "artists": [{ "id": "UCo5JkRVziPY8hl5VCpukMkQ", "name": "White Noise Masters" }],
183
+ "tracks": [ { "videoId": "13EL6Mgeocc", "title": "Rain Sound ...", "length": "3:20:01" } ]
184
+ }
185
+ ```
186
+
187
+ GET `/api/artists/{browse_id}` (example: `UCyX0TcJ20FifnGP3M6J-IXQ`)
188
+ ```json
189
+ {
190
+ "name": "Meditation Music",
191
+ "songs": { "results": [ { "videoId": "...", "title": "..." } ] },
192
+ "albums": { "results": [ { "browseId": "...", "title": "..." } ] }
193
+ }
194
+ ```
195
+
196
+ GET `/api/playlists/{playlist_id}?limit=5`
197
+ ```json
198
+ {
199
+ "id": "RDCLAK5uy_nDL8KeBrUagwyISwNmyEiSfYgz1gVCesg",
200
+ "title": "Mellow Pop Classics",
201
+ "author": "YouTube Music",
202
+ "tracks": [ { "videoId": "...", "title": "...", "artists": [ { "name": "..." } ] } ]
203
+ }
204
+ ```
205
+
206
+ GET `/api/charts?country=US`
207
+ ```json
208
+ {
209
+ "error": "Charts data unavailable: Charts service temporarily unavailable",
210
+ "message": "YouTube Music charts are currently not accessible. This may be due to regional restrictions or service limitations.",
211
+ "fallback": "Try using the search endpoint instead: /api/search?q=trending&filter=songs"
212
+ }
213
+ ```
214
+
215
+ GET `/api/moods`
216
+ ```json
217
+ {
218
+ "Genres": [ { "title": "African", "params": "ggMPOg1uX0..." }, { "title": "Arabic" } ],
219
+ "Moods & moments": [ { "title": "Chill", "params": "ggMPOg1uX1..." }, { "title": "Sleep" } ]
220
+ }
221
+ ```
222
+
223
+ GET `/api/moods/{category_id}` (example: Chill category param)
224
+ ```json
225
+ [
226
+ {
227
+ "title": "Coffee Shop Blend",
228
+ "description": "Playlist • YouTube Music",
229
+ "playlistId": "RDCLAK5uy_nBE4bLuBHUXWZrF59ZrkPEToKt8M_I3Vc",
230
+ "thumbnails": [ { "url": "https://lh3.googleusercontent.com/...", "width": 226, "height": 226 } ]
231
+ }
232
+ ]
233
+ ```
234
+
235
+ GET `/api/watch_playlist?videoId=13EL6Mgeocc&radio=true&limit=3`
236
+ ```json
237
+ {
238
+ "tracks": [ { "videoId": "...", "title": "...", "length": "..." } ],
239
+ "related": true
240
+ }
241
+ ```
242
+
243
+ ### YouTube
244
+
245
+ GET `/api/yt_search?q=music&filter=videos&limit=1`
246
+ ```json
247
+ {
248
+ "query": "music",
249
+ "filter": "videos",
250
+ "results": [ { "title": "Shaky (Official Video) ...", "channel": { "name": "..." }, "duration": "3 minutes, 35 seconds" } ]
251
+ }
252
+ ```
253
+
254
+ GET `/api/yt_channel/{channel_id}` (example: `UC_x5XG1OV2P6uZZ5FSM9Ttw`)
255
+ ```json
256
+ {
257
+ "channel_id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
258
+ "channel_info": { "title": "Google for Developers", "subscribers": "...", "link": "https://round-darkness-b543.bob17040246.workers.dev/..." }
259
+ }
260
+ ```
261
+
262
+ GET `/api/yt_playlists?q=music&limit=1`
263
+ ```json
264
+ {
265
+ "query": "music",
266
+ "playlists": [ { "title": "...", "playlistId": "PL...", "channel": { "name": "..." } } ]
267
+ }
268
+ ```
269
+
270
+ ### Standard Error Response
271
+ ```json
272
+ { "error": "Human-readable error message" }
273
+ ```
274
+
275
+ ## Rate Limits & Notes
276
+
277
+ - **Unauthenticated Access**: This API uses unauthenticated access, so some features may be limited compared to logged-in YouTube Music
278
+ - **Rate Limits**: No explicit rate limits, but please use responsibly
279
+ - **Data Source**: YouTube Music data via `ytmusicapi`, YouTube data via `youtube-search-python-fork`
280
+
281
+ ## References
282
+
283
+ - **ytmusicapi documentation**: https://ytmusicapi.readthedocs.io/en/stable/
284
+ - **youtube-search-python-fork**: https://github.com/ahmedayyad-dev/youtube-search-python-fork
285
+ - **Interactive API Docs**: https://ytm-jgmk.onrender.com/docs/
app.py CHANGED
@@ -1,15 +1,23 @@
1
  from flask import Flask, jsonify
 
 
 
 
2
  from ytmusicapi import YTMusic
3
  from routes import bp as api_bp
4
  from routes_entities import bp_entities
5
  from routes_explore import bp_explore
 
 
6
  from swagger import init_swagger
7
- import os
8
 
9
 
10
  def create_app() -> Flask:
11
  app = Flask(__name__)
12
 
 
 
 
13
  # Unauthenticated client (no OAuth or cookies)
14
  # See: https://ytmusicapi.readthedocs.io/en/stable/
15
  ytmusic = YTMusic()
@@ -28,6 +36,8 @@ def create_app() -> Flask:
28
  app.register_blueprint(api_bp, url_prefix="/api")
29
  app.register_blueprint(bp_entities, url_prefix="/api")
30
  app.register_blueprint(bp_explore, url_prefix="/api")
 
 
31
  return app
32
 
33
 
@@ -37,5 +47,5 @@ app = create_app()
37
 
38
  if __name__ == "__main__":
39
  # Local dev server
40
- port = int(os.environ.get("PORT", 8000))
41
  app.run(host="0.0.0.0", port=port, debug=True)
 
1
  from flask import Flask, jsonify
2
+ from flask_cors import CORS
3
+ import os, sys
4
+ # Prefer vendored ytmusicapi over site-packages
5
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "ytmusicapi"))
6
  from ytmusicapi import YTMusic
7
  from routes import bp as api_bp
8
  from routes_entities import bp_entities
9
  from routes_explore import bp_explore
10
+ from routes_youtube import bp_youtube
11
+ from routes_jiosaavn import bp_jiosaavn
12
  from swagger import init_swagger
 
13
 
14
 
15
  def create_app() -> Flask:
16
  app = Flask(__name__)
17
 
18
+ # Enable CORS for all domains
19
+ CORS(app, origins="*")
20
+
21
  # Unauthenticated client (no OAuth or cookies)
22
  # See: https://ytmusicapi.readthedocs.io/en/stable/
23
  ytmusic = YTMusic()
 
36
  app.register_blueprint(api_bp, url_prefix="/api")
37
  app.register_blueprint(bp_entities, url_prefix="/api")
38
  app.register_blueprint(bp_explore, url_prefix="/api")
39
+ app.register_blueprint(bp_youtube, url_prefix="/api")
40
+ app.register_blueprint(bp_jiosaavn, url_prefix="/api")
41
  return app
42
 
43
 
 
47
 
48
  if __name__ == "__main__":
49
  # Local dev server
50
+ port = int(os.environ.get("PORT", 5000))
51
  app.run(host="0.0.0.0", port=port, debug=True)
index.html ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Play Audio from URL</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ background: #0d1117;
11
+ color: #e6edf3;
12
+ display: flex;
13
+ flex-direction: column;
14
+ align-items: center;
15
+ justify-content: center;
16
+ height: 100vh;
17
+ }
18
+
19
+ input {
20
+ width: 80%;
21
+ max-width: 500px;
22
+ padding: 10px;
23
+ margin-bottom: 20px;
24
+ border-radius: 8px;
25
+ border: none;
26
+ outline: none;
27
+ font-size: 16px;
28
+ }
29
+
30
+ button {
31
+ padding: 10px 20px;
32
+ font-size: 16px;
33
+ background-color: #238636;
34
+ border: none;
35
+ border-radius: 8px;
36
+ color: white;
37
+ cursor: pointer;
38
+ transition: background 0.2s;
39
+ }
40
+
41
+ button:hover {
42
+ background-color: #2ea043;
43
+ }
44
+
45
+ audio {
46
+ margin-top: 30px;
47
+ width: 80%;
48
+ max-width: 500px;
49
+ }
50
+ </style>
51
+ </head>
52
+ <body>
53
+ <h2>🎵 Play Audio from URL</h2>
54
+ <input type="text" id="audioUrl" placeholder="Enter audio URL (e.g. https://example.com/song.mp3)" />
55
+ <button onclick="playAudio()">Play</button>
56
+
57
+ <audio id="audioPlayer" controls></audio>
58
+
59
+ <script>
60
+ function playAudio() {
61
+ const url = document.getElementById("audioUrl").value.trim();
62
+ const player = document.getElementById("audioPlayer");
63
+
64
+ if (!url) {
65
+ alert("Please enter a valid audio URL!");
66
+ return;
67
+ }
68
+
69
+ player.src = url;
70
+ player.play().catch(err => {
71
+ alert("Error playing audio. Check the URL or CORS restrictions.");
72
+ console.error(err);
73
+ });
74
+ }
75
+ </script>
76
+ </body>
77
+ </html>
jiosaavn_helpers.py ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import base64
2
+ import re
3
+ from typing import List, Dict, Any, Optional
4
+ from Crypto.Cipher import DES
5
+
6
+
7
+ def create_download_links(encrypted_media_url: str) -> Optional[str]:
8
+ """Create download links from encrypted media URL"""
9
+ if not encrypted_media_url:
10
+ return None
11
+
12
+ try:
13
+ key = '38346591'
14
+ iv = '00000000'
15
+
16
+ # Decode base64
17
+ encrypted = base64.b64decode(encrypted_media_url)
18
+
19
+ # Create DES cipher
20
+ cipher = DES.new(key.encode(), DES.MODE_ECB)
21
+
22
+ # Decrypt
23
+ decrypted_link = cipher.decrypt(encrypted).decode('utf-8', errors='ignore')
24
+
25
+ # Ensure https
26
+ return decrypted_link.replace('http:', 'https:')
27
+ except Exception as e:
28
+ print(f"Error decrypting download link: {e}")
29
+ return None
30
+
31
+
32
+ def create_image_links(link: str) -> List[Dict[str, str]]:
33
+ """Create image links with different qualities"""
34
+ if not link:
35
+ return []
36
+
37
+ qualities = ['50x50', '150x150', '500x500']
38
+ quality_regex = re.compile(r'150x150|50x50')
39
+ protocol_regex = re.compile(r'^http://')
40
+
41
+ return [
42
+ {
43
+ 'quality': quality,
44
+ 'url': protocol_regex.sub('https://', quality_regex.sub(quality, link))
45
+ }
46
+ for quality in qualities
47
+ ]
48
+
49
+
50
+ def create_artist_map_payload(artist: Dict[str, Any]) -> Dict[str, Any]:
51
+ """Create artist payload from raw artist data"""
52
+ return {
53
+ 'id': artist.get('id'),
54
+ 'name': artist.get('name'),
55
+ 'role': artist.get('role'),
56
+ 'image': create_image_links(artist.get('image', '')),
57
+ 'type': artist.get('type'),
58
+ 'url': artist.get('perma_url')
59
+ }
60
+
61
+
62
+ def create_song_payload(song: Dict[str, Any]) -> Dict[str, Any]:
63
+ """Create song payload from raw song data"""
64
+ more_info = song.get('more_info', {})
65
+ artist_map = more_info.get('artistMap', {})
66
+
67
+ return {
68
+ 'id': song.get('id'),
69
+ 'name': song.get('title'),
70
+ 'type': song.get('type'),
71
+ 'year': song.get('year'),
72
+ 'releaseDate': more_info.get('release_date'),
73
+ 'duration': int(more_info.get('duration', 0)) if more_info.get('duration') else None,
74
+ 'label': more_info.get('label'),
75
+ 'explicitContent': song.get('explicit_content') == '1',
76
+ 'playCount': int(song.get('play_count', 0)) if song.get('play_count') else None,
77
+ 'language': song.get('language'),
78
+ 'hasLyrics': more_info.get('has_lyrics') == 'true',
79
+ 'lyricsId': more_info.get('lyrics_id'),
80
+ 'url': song.get('perma_url'),
81
+ 'copyright': more_info.get('copyright_text'),
82
+ 'album': {
83
+ 'id': more_info.get('album_id'),
84
+ 'name': more_info.get('album'),
85
+ 'url': more_info.get('album_url')
86
+ },
87
+ 'artists': {
88
+ 'primary': [create_artist_map_payload(artist) for artist in artist_map.get('primary_artists', [])],
89
+ 'featured': [create_artist_map_payload(artist) for artist in artist_map.get('featured_artists', [])],
90
+ 'all': [create_artist_map_payload(artist) for artist in artist_map.get('artists', [])]
91
+ },
92
+ 'image': create_image_links(song.get('image', '')),
93
+ 'downloadUrl': create_download_links(more_info.get('encrypted_media_url'))
94
+ }
95
+
96
+
97
+ def normalize_string(text: str) -> str:
98
+ """Normalize string by removing diacritics"""
99
+ import unicodedata
100
+ return unicodedata.normalize('NFD', text).encode('ascii', 'ignore').decode('ascii')
requirements.txt CHANGED
@@ -1,4 +1,7 @@
1
  Flask==3.0.3
2
  flasgger==0.9.7.1
3
- ytmusicapi==1.9.0
4
  waitress==3.0.0
 
 
 
 
 
1
  Flask==3.0.3
2
  flasgger==0.9.7.1
 
3
  waitress==3.0.0
4
+ flask-cors==4.0.0
5
+ git+https://github.com/ahmedayyad-dev/youtube-search-python-fork.git
6
+ requests>=2.31.0
7
+ pycryptodome>=3.19.0
routes.py CHANGED
@@ -1,5 +1,7 @@
1
  from flask import Blueprint, current_app, jsonify, request
2
  from typing import Optional
 
 
3
 
4
  bp = Blueprint("api", __name__)
5
 
@@ -21,6 +23,217 @@ def _client():
21
  return current_app.config["YTMUSIC_CLIENT"]
22
 
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  @bp.get("/search")
25
  def search():
26
  """Search YouTube Music
@@ -59,8 +272,34 @@ def search():
59
  if flt and flt not in ALLOWED_FILTERS:
60
  return jsonify({"error": f"Invalid filter. Allowed: {sorted(list(ALLOWED_FILTERS))}"}), 400
61
 
62
- results = _client().search(query, filter=flt, limit=limit, ignore_spelling=False)
63
- return jsonify({"results": results})
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
 
66
  @bp.get("/search/suggestions")
@@ -73,6 +312,11 @@ def suggestions():
73
  type: string
74
  required: true
75
  description: Partial query to get suggestions for
 
 
 
 
 
76
  responses:
77
  200:
78
  description: Suggestions
@@ -83,5 +327,16 @@ def suggestions():
83
  if not query:
84
  return jsonify({"error": "Missing required query parameter 'q'"}), 400
85
 
86
- sugs = _client().get_search_suggestions(query)
87
- return jsonify({"suggestions": sugs})
 
 
 
 
 
 
 
 
 
 
 
 
1
  from flask import Blueprint, current_app, jsonify, request
2
  from typing import Optional
3
+ import requests
4
+ import json
5
 
6
  bp = Blueprint("api", __name__)
7
 
 
23
  return current_app.config["YTMUSIC_CLIENT"]
24
 
25
 
26
+ def _get_youtube_suggestions_fallback(query: str) -> list:
27
+ """Fallback method using a different approach"""
28
+ try:
29
+ # Try multiple fallback endpoints
30
+ endpoints = [
31
+ {
32
+ "url": "https://clients1.google.com/complete/search",
33
+ "params": {
34
+ "client": "youtube",
35
+ "hl": "en",
36
+ "gl": "in",
37
+ "q": query,
38
+ "callback": "google.sbox.p50"
39
+ }
40
+ },
41
+ {
42
+ "url": "https://suggestqueries-clients6.youtube.com/complete/search",
43
+ "params": {
44
+ "ds": "yt",
45
+ "hl": "en",
46
+ "gl": "in",
47
+ "client": "youtube",
48
+ "q": query
49
+ }
50
+ }
51
+ ]
52
+
53
+ headers = {
54
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
55
+ "Accept": "*/*",
56
+ "Referer": "https://round-darkness-b543.bob17040246.workers.dev/"
57
+ }
58
+
59
+ for endpoint in endpoints:
60
+ try:
61
+ response = requests.get(endpoint["url"], params=endpoint["params"], headers=headers, timeout=10)
62
+ if response.status_code == 200:
63
+ content = response.text
64
+
65
+ # Handle different callback formats
66
+ if content.startswith("google.sbox.p50(") and content.endswith(");"):
67
+ content = content[16:-2]
68
+ elif content.startswith("window.google.ac.h(") and content.endswith(");"):
69
+ content = content[20:-2]
70
+ elif content.startswith("window.google.ac.s(") and content.endswith(");"):
71
+ content = content[20:-2]
72
+ else:
73
+ # Try to find the start and end of the JSON
74
+ start_idx = content.find('(')
75
+ end_idx = content.rfind(')')
76
+ if start_idx != -1 and end_idx != -1:
77
+ content = content[start_idx + 1:end_idx]
78
+
79
+ data = json.loads(content)
80
+ if len(data) >= 2 and isinstance(data[1], list):
81
+ suggestions = []
82
+ for item in data[1]:
83
+ if isinstance(item, list) and len(item) > 0:
84
+ suggestions.append(item[0])
85
+ elif isinstance(item, str):
86
+ suggestions.append(item)
87
+
88
+ if suggestions:
89
+ print(f"Fallback API returned {len(suggestions)} suggestions")
90
+ return suggestions[:10] # Limit to 10 suggestions
91
+ except Exception as e:
92
+ print(f"Fallback endpoint failed: {e}")
93
+ continue
94
+
95
+ # If all APIs fail, return basic suggestions based on query
96
+ return _get_static_suggestions(query)
97
+ except:
98
+ return _get_static_suggestions(query)
99
+
100
+
101
+ def _get_static_suggestions(query: str) -> list:
102
+ """Static fallback suggestions for common queries"""
103
+ query_lower = query.lower()
104
+
105
+ # Common suggestion patterns
106
+ suggestions_map = {
107
+ "music": ["music", "music video", "music song", "music 2024", "music playlist"],
108
+ "video": ["video", "video song", "video 2024", "video download", "video editing"],
109
+ "movie": ["movie", "movie trailer", "movie song", "movie review", "movie 2024"],
110
+ "song": ["song", "song 2024", "song download", "song lyrics", "song video"],
111
+ "dance": ["dance", "dance video", "dance song", "dance tutorial", "dance 2024"],
112
+ "comedy": ["comedy", "comedy video", "comedy show", "comedy movie", "comedy 2024"],
113
+ "tutorial": ["tutorial", "tutorial video", "tutorial 2024", "tutorial hindi", "tutorial english"],
114
+ "news": ["news", "news today", "news 2024", "news hindi", "news english"],
115
+ "cooking": ["cooking", "cooking video", "cooking recipe", "cooking tutorial", "cooking 2024"],
116
+ "fitness": ["fitness", "fitness video", "fitness workout", "fitness tips", "fitness 2024"]
117
+ }
118
+
119
+ # Check for exact matches first
120
+ if query_lower in suggestions_map:
121
+ return suggestions_map[query_lower]
122
+
123
+ # Check for partial matches
124
+ for key, suggestions in suggestions_map.items():
125
+ if key in query_lower or query_lower in key:
126
+ return suggestions
127
+
128
+ # Default generic suggestions
129
+ return [query, f"{query} video", f"{query} 2024", f"{query} tutorial", f"{query} song"]
130
+
131
+
132
+ def _get_youtube_suggestions(query: str) -> list:
133
+ """Get search suggestions from YouTube's internal API"""
134
+ try:
135
+ # YouTube's internal suggestions API
136
+ url = "https://suggestqueries-clients6.youtube.com/complete/search"
137
+ params = {
138
+ "ds": "yt",
139
+ "hl": "en",
140
+ "gl": "in",
141
+ "client": "youtube",
142
+ "gs_ri": "youtube",
143
+ "sugexp": "yrpeb_p,ytpso.bo.rwjb=50,ytpso.bo.rlcft=0.01",
144
+ "tok": "cmbVoqd59wmnnS3CDslsDQ",
145
+ "h": "180",
146
+ "w": "320",
147
+ "ytvs": "1",
148
+ "gs_id": "1",
149
+ "q": query,
150
+ "cp": "1"
151
+ }
152
+
153
+ # Use a more generic user agent that's less likely to be blocked
154
+ # Remove Accept-Encoding to avoid compression issues on server
155
+ headers = {
156
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
157
+ "Accept": "*/*",
158
+ "Accept-Language": "en-US,en;q=0.9",
159
+ "Referer": "https://round-darkness-b543.bob17040246.workers.dev/",
160
+ "Origin": "https://round-darkness-b543.bob17040246.workers.dev",
161
+ "Cache-Control": "no-cache",
162
+ "Pragma": "no-cache"
163
+ }
164
+
165
+ response = requests.get(url, params=params, headers=headers, timeout=15)
166
+
167
+ # Log response details for debugging
168
+ print(f"YouTube API Response - Status: {response.status_code}, Length: {len(response.text)}")
169
+
170
+ if response.status_code != 200:
171
+ print(f"YouTube API Error - Status: {response.status_code}, Response: {response.text[:200]}")
172
+ return []
173
+
174
+ # Parse the JSONP response
175
+ content = response.text
176
+
177
+ # Check if response is empty or invalid
178
+ if not content or len(content) < 10:
179
+ print(f"YouTube API returned empty/invalid response: {content}")
180
+ return []
181
+
182
+ # Check if content looks like binary/compressed data
183
+ if any(ord(c) < 32 and c not in '\t\n\r' for c in content[:50]):
184
+ print(f"YouTube API returned binary/compressed data, trying fallback...")
185
+ return _get_youtube_suggestions_fallback(query)
186
+
187
+ # Remove the callback wrapper (e.g., "window.google.ac.h(" and ");")
188
+ if content.startswith("window.google.ac.h(") and content.endswith(");"):
189
+ content = content[20:-2]
190
+ elif content.startswith("window.google.ac.s(") and content.endswith(");"):
191
+ content = content[20:-2]
192
+ else:
193
+ # Try to find the start and end of the JSON
194
+ start_idx = content.find('(')
195
+ end_idx = content.rfind(')')
196
+ if start_idx != -1 and end_idx != -1:
197
+ content = content[start_idx + 1:end_idx]
198
+ else:
199
+ print(f"Could not parse YouTube API response: {content[:100]}...")
200
+ return []
201
+
202
+ data = json.loads(content)
203
+
204
+ # Extract suggestions from the response
205
+ # The response format is: [query, [[suggestion, 0, [512]], ...], {}, {}]
206
+ if len(data) >= 2 and isinstance(data[1], list):
207
+ suggestions = []
208
+ for item in data[1]:
209
+ if isinstance(item, list) and len(item) > 0:
210
+ suggestions.append(item[0]) # First element is the suggestion text
211
+ print(f"YouTube API returned {len(suggestions)} suggestions")
212
+ return suggestions
213
+
214
+ print(f"YouTube API response format unexpected: {data}")
215
+ # Try fallback method
216
+ print("Trying fallback method...")
217
+ return _get_youtube_suggestions_fallback(query)
218
+
219
+ except requests.exceptions.RequestException as e:
220
+ print(f"Network error getting YouTube suggestions: {e}")
221
+ # Try fallback method
222
+ print("Trying fallback method...")
223
+ return _get_youtube_suggestions_fallback(query)
224
+ except json.JSONDecodeError as e:
225
+ print(f"JSON decode error getting YouTube suggestions: {e}")
226
+ # Try fallback method
227
+ print("Trying fallback method...")
228
+ return _get_youtube_suggestions_fallback(query)
229
+ except Exception as e:
230
+ # Log the error but don't fail completely
231
+ print(f"Unexpected error getting YouTube suggestions: {e}")
232
+ # Try fallback method
233
+ print("Trying fallback method...")
234
+ return _get_youtube_suggestions_fallback(query)
235
+
236
+
237
  @bp.get("/search")
238
  def search():
239
  """Search YouTube Music
 
272
  if flt and flt not in ALLOWED_FILTERS:
273
  return jsonify({"error": f"Invalid filter. Allowed: {sorted(list(ALLOWED_FILTERS))}"}), 400
274
 
275
+ try:
276
+ results = _client().search(query, filter=flt, limit=limit, ignore_spelling=False)
277
+ return jsonify({"results": results})
278
+ except Exception as e:
279
+ return jsonify({"error": f"Search failed: {str(e)}"}), 500
280
+
281
+
282
+ @bp.get("/search/suggestions/debug")
283
+ def suggestions_debug():
284
+ """Debug endpoint to test YouTube suggestions API directly"""
285
+ query = request.args.get("q", type=str)
286
+ if not query:
287
+ return jsonify({"error": "Missing required query parameter 'q'"}), 400
288
+
289
+ try:
290
+ # Test the YouTube suggestions function directly
291
+ suggestions = _get_youtube_suggestions(query)
292
+ return jsonify({
293
+ "query": query,
294
+ "suggestions": suggestions,
295
+ "count": len(suggestions),
296
+ "source": "youtube_debug"
297
+ })
298
+ except Exception as e:
299
+ return jsonify({
300
+ "error": f"Debug failed: {str(e)}",
301
+ "query": query
302
+ }), 500
303
 
304
 
305
  @bp.get("/search/suggestions")
 
312
  type: string
313
  required: true
314
  description: Partial query to get suggestions for
315
+ - name: music
316
+ in: query
317
+ type: integer
318
+ required: false
319
+ description: If 1, get suggestions from YouTube Music. If not present or 0, get suggestions from YouTube
320
  responses:
321
  200:
322
  description: Suggestions
 
327
  if not query:
328
  return jsonify({"error": "Missing required query parameter 'q'"}), 400
329
 
330
+ music = request.args.get("music", type=int)
331
+
332
+ try:
333
+ if music == 1:
334
+ # Get suggestions from YouTube Music
335
+ sugs = _client().get_search_suggestions(query)
336
+ return jsonify({"suggestions": sugs, "source": "youtube_music"})
337
+ else:
338
+ # Get suggestions from YouTube
339
+ sugs = _get_youtube_suggestions(query)
340
+ return jsonify({"suggestions": sugs, "source": "youtube"})
341
+ except Exception as e:
342
+ return jsonify({"error": f"Suggestions failed: {str(e)}"}), 500
routes_entities.py CHANGED
@@ -1,4 +1,5 @@
1
  from flask import Blueprint, current_app, jsonify, request
 
2
 
3
  bp_entities = Blueprint("entities", __name__)
4
 
@@ -19,9 +20,14 @@ def get_song(video_id: str):
19
  responses:
20
  200:
21
  description: Song metadata
 
 
22
  """
23
- data = _client().get_song(video_id)
24
- return jsonify(data)
 
 
 
25
 
26
 
27
  @bp_entities.get("/albums/<browse_id>")
@@ -36,9 +42,14 @@ def get_album(browse_id: str):
36
  responses:
37
  200:
38
  description: Album metadata and tracks
 
 
39
  """
40
- data = _client().get_album(browse_id)
41
- return jsonify(data)
 
 
 
42
 
43
 
44
  @bp_entities.get("/artists/<browse_id>")
@@ -53,9 +64,14 @@ def get_artist(browse_id: str):
53
  responses:
54
  200:
55
  description: Artist info and releases
 
 
56
  """
57
- data = _client().get_artist(browse_id)
58
- return jsonify(data)
 
 
 
59
 
60
 
61
  @bp_entities.get("/playlists/<playlist_id>")
@@ -75,7 +91,150 @@ def get_playlist(playlist_id: str):
75
  responses:
76
  200:
77
  description: Playlist metadata and items
 
 
78
  """
79
  limit = request.args.get("limit", default=100, type=int)
80
- data = _client().get_playlist(playlist_id, limit=limit)
81
- return jsonify(data)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from flask import Blueprint, current_app, jsonify, request
2
+ import requests
3
 
4
  bp_entities = Blueprint("entities", __name__)
5
 
 
20
  responses:
21
  200:
22
  description: Song metadata
23
+ 500:
24
+ description: Song data unavailable
25
  """
26
+ try:
27
+ data = _client().get_song(video_id)
28
+ return jsonify(data)
29
+ except Exception as e:
30
+ return jsonify({"error": f"Song data unavailable: {str(e)}"}), 500
31
 
32
 
33
  @bp_entities.get("/albums/<browse_id>")
 
42
  responses:
43
  200:
44
  description: Album metadata and tracks
45
+ 500:
46
+ description: Album data unavailable
47
  """
48
+ try:
49
+ data = _client().get_album(browse_id)
50
+ return jsonify(data)
51
+ except Exception as e:
52
+ return jsonify({"error": f"Album data unavailable: {str(e)}"}), 500
53
 
54
 
55
  @bp_entities.get("/artists/<browse_id>")
 
64
  responses:
65
  200:
66
  description: Artist info and releases
67
+ 500:
68
+ description: Artist data unavailable
69
  """
70
+ try:
71
+ data = _client().get_artist(browse_id)
72
+ return jsonify(data)
73
+ except Exception as e:
74
+ return jsonify({"error": f"Artist data unavailable: {str(e)}"}), 500
75
 
76
 
77
  @bp_entities.get("/playlists/<playlist_id>")
 
91
  responses:
92
  200:
93
  description: Playlist metadata and items
94
+ 500:
95
+ description: Playlist data unavailable
96
  """
97
  limit = request.args.get("limit", default=100, type=int)
98
+ try:
99
+ data = _client().get_playlist(playlist_id, limit=limit)
100
+ return jsonify(data)
101
+ except Exception as e:
102
+ return jsonify({"error": f"Playlist data unavailable: {str(e)}"}), 500
103
+
104
+
105
+ @bp_entities.get("/artist/<artist_id>")
106
+ def get_artist_summary(artist_id: str):
107
+ """Get artist summary via youtubei browse (Top songs, recommendations, featured-on)
108
+ ---
109
+ parameters:
110
+ - name: artist_id
111
+ in: path
112
+ type: string
113
+ required: true
114
+ - name: country
115
+ in: query
116
+ type: string
117
+ required: false
118
+ default: US
119
+ responses:
120
+ 200:
121
+ description: Artist summary payload
122
+ 500:
123
+ description: Artist data unavailable
124
+ """
125
+ YOUTUBE_MUSIC_API_URL = "https://summer-darkness-1435.bob17040246.workers.dev/youtubei/v1/browse?prettyPrint=false"
126
+ country = request.args.get("country", default="US", type=str)
127
+ try:
128
+ body = {
129
+ "browseId": artist_id,
130
+ "context": {
131
+ "client": {
132
+ "clientName": "WEB_REMIX",
133
+ "clientVersion": "1.20250915.03.00",
134
+ "gl": country,
135
+ }
136
+ }
137
+ }
138
+ resp = requests.post(
139
+ YOUTUBE_MUSIC_API_URL,
140
+ headers={"Content-Type": "application/json"},
141
+ json=body,
142
+ timeout=15,
143
+ )
144
+ if not resp.ok:
145
+ return jsonify({"error": f"HTTP error: {resp.status_code}"}), 500
146
+ data = resp.json()
147
+
148
+ # Parse like the TS logic
149
+ contents = (
150
+ data.get("contents", {})
151
+ .get("singleColumnBrowseResultsRenderer", {})
152
+ .get("tabs", [])[0]
153
+ .get("tabRenderer", {})
154
+ .get("content", {})
155
+ .get("sectionListRenderer", {})
156
+ .get("contents", [])
157
+ )
158
+
159
+ artist_header = (
160
+ data.get("header", {})
161
+ .get("musicImmersiveHeaderRenderer", {})
162
+ .get("title", {})
163
+ .get("runs", [{}])[0]
164
+ .get("text")
165
+ )
166
+
167
+ # Top songs shelf
168
+ top_songs_shelf = None
169
+ for item in contents:
170
+ if isinstance(item, dict) and "musicShelfRenderer" in item:
171
+ title_runs = (
172
+ item["musicShelfRenderer"]
173
+ .get("title", {})
174
+ .get("runs", [{}])
175
+ )
176
+ if title_runs and title_runs[0].get("text") == "Top songs":
177
+ top_songs_shelf = item["musicShelfRenderer"]
178
+ break
179
+ playlist_id = None
180
+ if top_songs_shelf:
181
+ try:
182
+ playlist_id = (
183
+ top_songs_shelf["contents"][0]
184
+ ["musicResponsiveListItemRenderer"]["flexColumns"][0]
185
+ ["musicResponsiveListItemFlexColumnRenderer"]["text"]["runs"][0]
186
+ .get("navigationEndpoint", {})
187
+ .get("watchEndpoint", {})
188
+ .get("playlistId")
189
+ )
190
+ except Exception:
191
+ playlist_id = None
192
+
193
+ # Recommended artists
194
+ recommended_artists = None
195
+ for item in contents:
196
+ if isinstance(item, dict) and "musicCarouselShelfRenderer" in item:
197
+ header = (
198
+ item["musicCarouselShelfRenderer"]["header"]
199
+ .get("musicCarouselShelfBasicHeaderRenderer", {})
200
+ )
201
+ header_title = header.get("title", {}).get("runs", [{}])[0].get("text")
202
+ if header_title == "Fans might also like":
203
+ recommended_artists = []
204
+ for it in item["musicCarouselShelfRenderer"].get("contents", []):
205
+ two_row = it.get("musicTwoRowItemRenderer", {})
206
+ recommended_artists.append({
207
+ "name": two_row.get("title", {}).get("runs", [{}])[0].get("text"),
208
+ "browseId": two_row.get("navigationEndpoint", {}).get("browseEndpoint", {}).get("browseId"),
209
+ "thumbnail": two_row.get("thumbnailRenderer", {}).get("musicThumbnailRenderer", {}).get("thumbnail", {}).get("thumbnails", [{}])[0].get("url"),
210
+ })
211
+ break
212
+
213
+ # Featured on
214
+ featured_on_playlists = None
215
+ for item in contents:
216
+ if isinstance(item, dict) and "musicCarouselShelfRenderer" in item:
217
+ header = (
218
+ item["musicCarouselShelfRenderer"]["header"]
219
+ .get("musicCarouselShelfBasicHeaderRenderer", {})
220
+ )
221
+ header_title = header.get("title", {}).get("runs", [{}])[0].get("text")
222
+ if header_title == "Featured on":
223
+ featured_on_playlists = []
224
+ for it in item["musicCarouselShelfRenderer"].get("contents", []):
225
+ two_row = it.get("musicTwoRowItemRenderer", {})
226
+ featured_on_playlists.append({
227
+ "title": two_row.get("title", {}).get("runs", [{}])[0].get("text"),
228
+ "browseId": two_row.get("navigationEndpoint", {}).get("browseEndpoint", {}).get("browseId"),
229
+ "thumbnail": two_row.get("thumbnailRenderer", {}).get("musicThumbnailRenderer", {}).get("thumbnail", {}).get("thumbnails", [{}])[0].get("url"),
230
+ })
231
+ break
232
+
233
+ return jsonify({
234
+ "artistName": artist_header,
235
+ "playlistId": playlist_id,
236
+ "recommendedArtists": recommended_artists,
237
+ "featuredOnPlaylists": featured_on_playlists,
238
+ })
239
+ except Exception as e:
240
+ return jsonify({"error": f"Artist data unavailable: {str(e)}"}), 500
routes_explore.py CHANGED
@@ -19,10 +19,20 @@ def charts():
19
  responses:
20
  200:
21
  description: Charts data
 
 
22
  """
23
  country = request.args.get("country", default=None, type=str)
24
- data = _client().get_charts(country=country)
25
- return jsonify(data)
 
 
 
 
 
 
 
 
26
 
27
 
28
  @bp_explore.get("/moods")
@@ -32,9 +42,19 @@ def moods():
32
  responses:
33
  200:
34
  description: Mood categories
 
 
35
  """
36
- data = _client().get_mood_categories()
37
- return jsonify(data)
 
 
 
 
 
 
 
 
38
 
39
 
40
  @bp_explore.get("/moods/<category_id>")
@@ -49,9 +69,19 @@ def moods_playlists(category_id: str):
49
  responses:
50
  200:
51
  description: Mood playlists
 
 
52
  """
53
- data = _client().get_mood_playlists(category_id)
54
- return jsonify(data)
 
 
 
 
 
 
 
 
55
 
56
 
57
  @bp_explore.get("/watch_playlist")
@@ -95,5 +125,8 @@ def watch_playlist():
95
  limit = request.args.get("limit", default=25, type=int)
96
  if not video_id and not playlist_id:
97
  return jsonify({"error": "Provide either videoId or playlistId"}), 400
98
- data = _client().get_watch_playlist(videoId=video_id, playlistId=playlist_id, radio=radio, shuffle=shuffle, limit=limit)
99
- return jsonify(data)
 
 
 
 
19
  responses:
20
  200:
21
  description: Charts data
22
+ 500:
23
+ description: Charts data unavailable
24
  """
25
  country = request.args.get("country", default=None, type=str)
26
+ try:
27
+ data = _client().get_charts(country=country)
28
+ return jsonify(data)
29
+ except Exception as e:
30
+ error_msg = str(e) if str(e).strip() else "Charts service temporarily unavailable"
31
+ return jsonify({
32
+ "error": f"Charts data unavailable: {error_msg}",
33
+ "message": "YouTube Music charts are currently not accessible. This may be due to regional restrictions or service limitations.",
34
+ "fallback": "Try using the search endpoint instead: /api/search?q=trending&filter=songs"
35
+ }), 500
36
 
37
 
38
  @bp_explore.get("/moods")
 
42
  responses:
43
  200:
44
  description: Mood categories
45
+ 500:
46
+ description: Mood categories unavailable
47
  """
48
+ try:
49
+ data = _client().get_mood_categories()
50
+ return jsonify(data)
51
+ except Exception as e:
52
+ error_msg = str(e) if str(e).strip() else "Mood categories service temporarily unavailable"
53
+ return jsonify({
54
+ "error": f"Mood categories unavailable: {error_msg}",
55
+ "message": "YouTube Music mood categories are currently not accessible.",
56
+ "fallback": "Try using the search endpoint instead: /api/search?q=relaxing&filter=playlists"
57
+ }), 500
58
 
59
 
60
  @bp_explore.get("/moods/<category_id>")
 
69
  responses:
70
  200:
71
  description: Mood playlists
72
+ 500:
73
+ description: Mood playlists unavailable
74
  """
75
+ try:
76
+ data = _client().get_mood_playlists(category_id)
77
+ return jsonify(data)
78
+ except Exception as e:
79
+ error_msg = str(e) if str(e).strip() else "Mood playlists service temporarily unavailable"
80
+ return jsonify({
81
+ "error": f"Mood playlists unavailable: {error_msg}",
82
+ "message": f"Mood playlists for category '{category_id}' are currently not accessible.",
83
+ "fallback": "Try using the search endpoint instead: /api/search?q=mood&filter=playlists"
84
+ }), 500
85
 
86
 
87
  @bp_explore.get("/watch_playlist")
 
125
  limit = request.args.get("limit", default=25, type=int)
126
  if not video_id and not playlist_id:
127
  return jsonify({"error": "Provide either videoId or playlistId"}), 400
128
+ try:
129
+ data = _client().get_watch_playlist(videoId=video_id, playlistId=playlist_id, radio=radio, shuffle=shuffle, limit=limit)
130
+ return jsonify(data)
131
+ except Exception as e:
132
+ return jsonify({"error": f"Watch playlist unavailable: {str(e)}"}), 500
routes_jiosaavn.py ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Blueprint, jsonify, request
2
+ import requests
3
+ import time
4
+ from jiosaavn_helpers import create_song_payload, normalize_string
5
+ from typing import Dict, Any, List
6
+
7
+ bp_jiosaavn = Blueprint("jiosaavn", __name__)
8
+
9
+
10
+ @bp_jiosaavn.get("/jiosaavn/search")
11
+ def jiosaavn_search():
12
+ """Search for music on JioSaavn
13
+ ---
14
+ parameters:
15
+ - name: title
16
+ in: query
17
+ type: string
18
+ required: true
19
+ description: Song title
20
+ - name: artist
21
+ in: query
22
+ type: string
23
+ required: true
24
+ description: Artist name
25
+ responses:
26
+ 200:
27
+ description: Song information with download URL
28
+ 400:
29
+ description: Missing title or artist parameters
30
+ 404:
31
+ description: Music stream not found
32
+ 500:
33
+ description: Internal server error
34
+ """
35
+ title = request.args.get("title", type=str)
36
+ artist = request.args.get("artist", type=str)
37
+ debug = request.args.get("debug", default=0, type=int) == 1
38
+
39
+ if not title or not artist:
40
+ return jsonify({"error": "Missing title or artist parameters"}), 400
41
+
42
+ # Construct JioSaavn API URL
43
+ search_query = f"{title} {artist}"
44
+ jiosaavn_api_url = (
45
+ f"https://fragrant-rain-244a.bob17040246.workers.dev/api.php"
46
+ f"?_format=json"
47
+ f"&_marker=0"
48
+ f"&api_version=4"
49
+ f"&ctx=web6dot0"
50
+ f"&__call=search.getResults"
51
+ f"&q={requests.utils.quote(search_query)}"
52
+ f"&p=0"
53
+ f"&n=10"
54
+ )
55
+
56
+ try:
57
+ t0 = time.time()
58
+ print(f"[JioSaavn] /jiosaavn/search title='{title}' artist='{artist}' url='{jiosaavn_api_url}'")
59
+ response = requests.get(jiosaavn_api_url, headers={
60
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'
61
+ }, timeout=15)
62
+ dt_ms = int((time.time() - t0) * 1000)
63
+ print(f"[JioSaavn] status={response.status_code} time_ms={dt_ms} len={len(response.text)} content_type='{response.headers.get('Content-Type')}'")
64
+
65
+ if not response.ok:
66
+ snippet = response.text[:300] if response.text else ''
67
+ print(f"[JioSaavn][ERR] Non-200 response body_snippet='{snippet}'")
68
+ return jsonify({
69
+ "error": f"JioSaavn API returned {response.status_code}: {response.text[:200]}"
70
+ }), 500
71
+
72
+ try:
73
+ data = response.json()
74
+ except Exception as e:
75
+ snippet = response.text[:300]
76
+ print(f"[JioSaavn][ERR] JSON parse failed: {e}. body_snippet='{snippet}'")
77
+ return jsonify({"error": "Invalid JSON from JioSaavn proxy"}), 502
78
+
79
+ results = data.get('results') or []
80
+ print(f"[JioSaavn] results_count={len(results)}")
81
+ if not results:
82
+ return jsonify({"error": "Music stream not found in JioSaavn results"}), 404
83
+
84
+ # Process results
85
+ processed_results = [create_song_payload(raw_song) for raw_song in results]
86
+ print(f"[JioSaavn] processed_count={len(processed_results)} sample_titles={[r['name'] for r in processed_results[:3]]}")
87
+
88
+ # Find matching track
89
+ matching_track = None
90
+
91
+ def _norm(text: str) -> str:
92
+ return normalize_string(text or "").strip().lower()
93
+
94
+ def _starts_either(a: str, b: str) -> bool:
95
+ # True if either starts with the other (helps with minor differences)
96
+ return a.startswith(b) or b.startswith(a)
97
+
98
+ for track in processed_results:
99
+ # Get all artist names
100
+ primary_artists = [artist['name'].strip() for artist in (track['artists']['primary'] or [])]
101
+ singers = [artist['name'].strip() for artist in (track['artists']['all'] or []) if artist.get('role') == 'singer']
102
+ all_artists = primary_artists + singers
103
+
104
+ # Check if artist matches
105
+ artist_in = _norm(artist)
106
+ artist_matches = False
107
+ if all_artists:
108
+ for track_artist_name in all_artists:
109
+ if _starts_either(artist_in, _norm(track_artist_name)):
110
+ artist_matches = True
111
+ break
112
+
113
+ # Check if title matches
114
+ title_matches = _starts_either(_norm(title), _norm(track['name']))
115
+
116
+ if debug:
117
+ print(f"[JioSaavn][match_check] track='{track['name']}' artists={all_artists} title_matches={title_matches} artist_matches={artist_matches}")
118
+ if title_matches and (artist_matches or not all_artists):
119
+ matching_track = track
120
+ break
121
+
122
+ if not matching_track:
123
+ # Fallback: choose the first with title match only
124
+ title_only = next((t for t in processed_results if _starts_either(_norm(title), _norm(t['name']))), None)
125
+ if title_only:
126
+ matching_track = title_only
127
+ print("[JioSaavn] Falling back to title-only match")
128
+ else:
129
+ # Log a concise summary to help debugging on server
130
+ sample = [
131
+ {
132
+ "name": tr.get('name'),
133
+ "artists": [a.get('name') for a in (tr.get('artists', {}).get('primary') or [])]
134
+ }
135
+ for tr in processed_results[:5]
136
+ ]
137
+ print(f"[JioSaavn] No exact match after processing. sample_candidates={sample}")
138
+ return jsonify({"error": "Music stream not found in JioSaavn results"}), 404
139
+
140
+ # Create final response
141
+ final_response = {
142
+ "name": matching_track['name'],
143
+ "year": matching_track['year'],
144
+ "copyright": matching_track['copyright'],
145
+ "duration": matching_track['duration'],
146
+ "label": matching_track['label'],
147
+ "albumName": matching_track['album']['name'] if matching_track['album'] else None,
148
+ "artists": [
149
+ *(matching_track['artists']['primary'] or []),
150
+ *(matching_track['artists']['featured'] or []),
151
+ *(matching_track['artists']['all'] or [])
152
+ ],
153
+ "downloadUrl": matching_track['downloadUrl']
154
+ }
155
+
156
+ if debug:
157
+ final_response["_debug"] = {
158
+ "queried_url": jiosaavn_api_url,
159
+ "time_ms": dt_ms,
160
+ "matched_artists": matching_track['artists']
161
+ }
162
+ return jsonify(final_response)
163
+
164
+ except requests.exceptions.RequestException as e:
165
+ print(f"[JioSaavn][ERR] Network error: {e}")
166
+ return jsonify({"error": f"Network error: {str(e)}"}), 500
167
+ except Exception as e:
168
+ print(f"[JioSaavn][ERR] Unexpected error: {e}")
169
+ return jsonify({"error": f"Internal server error: {str(e)}"}), 500
170
+
171
+
172
+ @bp_jiosaavn.get("/jiosaavn/search/all")
173
+ def jiosaavn_search_all():
174
+ """Search for all music results on JioSaavn
175
+ ---
176
+ parameters:
177
+ - name: q
178
+ in: query
179
+ type: string
180
+ required: true
181
+ description: Search query
182
+ - name: limit
183
+ in: query
184
+ type: integer
185
+ required: false
186
+ default: 10
187
+ description: Number of results to return
188
+ responses:
189
+ 200:
190
+ description: List of all matching songs
191
+ 400:
192
+ description: Missing query parameter
193
+ 500:
194
+ description: Internal server error
195
+ """
196
+ query = request.args.get("q", type=str)
197
+ limit = request.args.get("limit", default=10, type=int)
198
+ debug = request.args.get("debug", default=0, type=int) == 1
199
+
200
+ if not query:
201
+ return jsonify({"error": "Missing query parameter 'q'"}), 400
202
+
203
+ # Construct JioSaavn API URL
204
+ jiosaavn_api_url = (
205
+ f"https://fragrant-rain-244a.bob17040246.workers.dev/api.php"
206
+ f"?_format=json"
207
+ f"&_marker=0"
208
+ f"&api_version=4"
209
+ f"&ctx=web6dot0"
210
+ f"&__call=search.getResults"
211
+ f"&q={requests.utils.quote(query)}"
212
+ f"&p=0"
213
+ f"&n={limit}"
214
+ )
215
+
216
+ try:
217
+ t0 = time.time()
218
+ print(f"[JioSaavn] /jiosaavn/search/all q='{query}' limit={limit} url='{jiosaavn_api_url}'")
219
+ response = requests.get(jiosaavn_api_url, headers={
220
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'
221
+ }, timeout=15)
222
+ dt_ms = int((time.time() - t0) * 1000)
223
+ print(f"[JioSaavn] status={response.status_code} time_ms={dt_ms} len={len(response.text)} content_type='{response.headers.get('Content-Type')}'")
224
+
225
+ if not response.ok:
226
+ snippet = response.text[:300] if response.text else ''
227
+ print(f"[JioSaavn][ERR] Non-200 response body_snippet='{snippet}'")
228
+ return jsonify({
229
+ "error": f"JioSaavn API returned {response.status_code}: {response.text[:200]}"
230
+ }), 500
231
+
232
+ try:
233
+ data = response.json()
234
+ except Exception as e:
235
+ snippet = response.text[:300]
236
+ print(f"[JioSaavn][ERR] JSON parse failed: {e}. body_snippet='{snippet}'")
237
+ return jsonify({"error": "Invalid JSON from JioSaavn proxy"}), 502
238
+
239
+ results = data.get('results') or []
240
+ print(f"[JioSaavn] results_count={len(results)}")
241
+ if not results:
242
+ return jsonify({"results": []})
243
+
244
+ # Process all results
245
+ processed_results = [create_song_payload(raw_song) for raw_song in results]
246
+ print(f"[JioSaavn] processed_count={len(processed_results)} sample_titles={[r['name'] for r in processed_results[:3]]}")
247
+
248
+ resp = {
249
+ "query": query,
250
+ "total": len(processed_results),
251
+ "results": processed_results
252
+ }
253
+ if debug:
254
+ resp["_debug"] = {"queried_url": jiosaavn_api_url, "time_ms": dt_ms}
255
+ return jsonify(resp)
256
+
257
+ except requests.exceptions.RequestException as e:
258
+ print(f"[JioSaavn][ERR] Network error: {e}")
259
+ return jsonify({"error": f"Network error: {str(e)}"}), 500
260
+ except Exception as e:
261
+ print(f"[JioSaavn][ERR] Unexpected error: {e}")
262
+ return jsonify({"error": f"Internal server error: {str(e)}"}), 500
routes_youtube.py ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Blueprint, current_app, jsonify, request
2
+ from youtubesearchpython import VideosSearch, ChannelsSearch, PlaylistsSearch
3
+ from typing import Optional
4
+
5
+ bp_youtube = Blueprint("youtube", __name__)
6
+
7
+ # YouTube search filters
8
+ YT_FILTERS = {
9
+ "all",
10
+ "channels",
11
+ "playlists",
12
+ "videos"
13
+ }
14
+
15
+ @bp_youtube.get("/yt_search")
16
+ def youtube_search():
17
+ """Search YouTube
18
+ ---
19
+ parameters:
20
+ - name: q
21
+ in: query
22
+ type: string
23
+ required: true
24
+ description: Search query string
25
+ - name: filter
26
+ in: query
27
+ type: string
28
+ required: false
29
+ enum: [all, channels, playlists, videos]
30
+ default: all
31
+ description: Filter results by type
32
+ - name: limit
33
+ in: query
34
+ type: integer
35
+ required: false
36
+ default: 20
37
+ description: Maximum number of results
38
+ responses:
39
+ 200:
40
+ description: YouTube search results
41
+ 400:
42
+ description: Missing/invalid params
43
+ """
44
+ query = request.args.get("q", type=str)
45
+ if not query:
46
+ return jsonify({"error": "Missing required query parameter 'q'"}), 400
47
+
48
+ flt: str = request.args.get("filter", default="all", type=str)
49
+ limit: int = request.args.get("limit", default=20, type=int)
50
+
51
+ if flt not in YT_FILTERS:
52
+ return jsonify({"error": f"Invalid filter. Allowed: {sorted(list(YT_FILTERS))}"}), 400
53
+
54
+ try:
55
+ results = []
56
+
57
+ if flt == "videos" or flt == "all":
58
+ videos_search = VideosSearch(query, limit=limit)
59
+ video_results = videos_search.result()
60
+ results.extend(video_results.get("result", []))
61
+
62
+ if flt == "channels" or flt == "all":
63
+ channels_search = ChannelsSearch(query, limit=limit)
64
+ channel_results = channels_search.result()
65
+ results.extend(channel_results.get("result", []))
66
+
67
+ if flt == "playlists" or flt == "all":
68
+ playlists_search = PlaylistsSearch(query, limit=limit)
69
+ playlist_results = playlists_search.result()
70
+ results.extend(playlist_results.get("result", []))
71
+
72
+ return jsonify({
73
+ "query": query,
74
+ "filter": flt,
75
+ "results": results
76
+ })
77
+ except Exception as e:
78
+ return jsonify({"error": f"Search failed: {str(e)}"}), 500
79
+
80
+ @bp_youtube.get("/yt_channel/<channel_id>")
81
+ def youtube_channel(channel_id: str):
82
+ """Get YouTube channel information
83
+ ---
84
+ parameters:
85
+ - name: channel_id
86
+ in: path
87
+ type: string
88
+ required: true
89
+ description: YouTube channel ID
90
+ responses:
91
+ 200:
92
+ description: Channel information
93
+ 400:
94
+ description: Invalid channel ID
95
+ """
96
+ try:
97
+ # Get channel info using search
98
+ channels_search = ChannelsSearch(f"channel:{channel_id}", limit=1)
99
+ results = channels_search.result()
100
+ channel_results = results.get("result", [])
101
+
102
+ if not channel_results:
103
+ return jsonify({"error": "Channel not found"}), 404
104
+
105
+ return jsonify({
106
+ "channel_id": channel_id,
107
+ "channel_info": channel_results[0]
108
+ })
109
+ except Exception as e:
110
+ return jsonify({"error": f"Failed to get channel info: {str(e)}"}), 500
111
+
112
+ @bp_youtube.get("/yt_playlists")
113
+ def youtube_playlists():
114
+ """Search YouTube playlists
115
+ ---
116
+ parameters:
117
+ - name: q
118
+ in: query
119
+ type: string
120
+ required: true
121
+ description: Search query for playlists
122
+ - name: limit
123
+ in: query
124
+ type: integer
125
+ required: false
126
+ default: 20
127
+ description: Maximum number of playlists
128
+ responses:
129
+ 200:
130
+ description: YouTube playlists
131
+ 400:
132
+ description: Missing/invalid params
133
+ """
134
+ query = request.args.get("q", type=str)
135
+ if not query:
136
+ return jsonify({"error": "Missing required query parameter 'q'"}), 400
137
+
138
+ limit: int = request.args.get("limit", default=20, type=int)
139
+
140
+ try:
141
+ playlists_search = PlaylistsSearch(query, limit=limit)
142
+ results = playlists_search.result()
143
+ playlist_results = results.get("result", [])
144
+
145
+ return jsonify({
146
+ "query": query,
147
+ "playlists": playlist_results
148
+ })
149
+ except Exception as e:
150
+ return jsonify({"error": f"Failed to search playlists: {str(e)}"}), 500
ytmusicapi/.github/ISSUE_TEMPLATE/bug_report.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ - [ ] I confirm that I have read the [FAQ](https://ytmusicapi.readthedocs.io/en/stable/faq.html#why-is-ytmusicapi-returning-more-results-than-requested-with-the-limit-parameter)
11
+
12
+ **Describe the bug**
13
+
14
+ A clear and concise description of what the bug is.
15
+
16
+ **ytmusicapi version**
17
+
18
+ x.x.x
19
+
20
+ **To Reproduce**
21
+
22
+ Steps to reproduce the behavior:
23
+ 1. Go to '...'
24
+ 2. Click on '....'
25
+ 3. Scroll down to '....'
26
+ 4. See error
27
+
28
+ **Additional context**
29
+
30
+ Add any other context about the problem here, such as a code sample.
ytmusicapi/.github/ISSUE_TEMPLATE/feature_request.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ # Hello and thanks for using ytmusicapi! Please fill out the issue template below. Issues not following this template will be closed without comment. If you have a question only, please use GitHub discussions or gitter (linked in README).
11
+ ~~~~~~~~~~~~~
12
+ **Is your feature request related to a problem? Please describe.**
13
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
14
+
15
+ **Describe the solution you'd like**
16
+ A clear and concise description of what you want to happen.
17
+
18
+ **Describe alternatives you've considered**
19
+ A clear and concise description of any alternative solutions or features you've considered.
20
+
21
+ **Additional context**
22
+ Add any other context or screenshots about the feature request here.
ytmusicapi/.github/dependabot.yml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "github-actions" # See documentation for possible values
9
+ directory: "/" # Location of package manifests
10
+ schedule:
11
+ interval: "weekly"
12
+
ytmusicapi/.github/workflows/coverage.yml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Code coverage
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - ytmusicapi/**
9
+ - tests/**
10
+ pull_request_target:
11
+ paths:
12
+ - ytmusicapi/**
13
+ - tests/**
14
+
15
+ jobs:
16
+ build:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@master
20
+ with:
21
+ ref: ${{ github.event.pull_request.head.sha }}
22
+ - name: Setup Python
23
+ uses: actions/setup-python@v5
24
+ with:
25
+ python-version: "3.10"
26
+ - name: Setup PDM
27
+ uses: pdm-project/setup-pdm@v4
28
+ - name: create-json
29
+ uses: jsdaniell/create-json@v1.2.3
30
+ with:
31
+ name: "oauth.json"
32
+ dir: "tests/"
33
+ json: ${{ secrets.OAUTH_JSON }}
34
+ - name: Install dependencies
35
+ run: pdm install
36
+ - name: Generate coverage report
37
+ env:
38
+ HEADERS_AUTH: ${{ secrets.HEADERS_AUTH }}
39
+ TEST_CFG: ${{ secrets.TEST_CFG }}
40
+ run: |
41
+ curl -o tests/test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
42
+ cat <<< "$HEADERS_AUTH" > tests/browser.json
43
+ cat <<< "$TEST_CFG" > tests/test.cfg
44
+ pdm run pytest --junitxml=test-results.xml
45
+ pdm run coverage xml
46
+ - name: Upload coverage to Codecov
47
+ uses: codecov/codecov-action@v5
48
+ if: ${{ !cancelled() }}
49
+ with:
50
+ flags: unittests
51
+ fail_ci_if_error: true
52
+ token: ${{ secrets.CODECOV_TOKEN }}
53
+ - name: Upload test results to Codecov
54
+ if: ${{ !cancelled() }}
55
+ uses: codecov/test-results-action@v1
56
+ with:
57
+ token: ${{ secrets.CODECOV_TOKEN }}
58
+ files: test-results.xml
ytmusicapi/.github/workflows/lint.yml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: lint
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - ytmusicapi/**
9
+ - tests/**
10
+
11
+ jobs:
12
+ ruff:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v5
16
+ - uses: chartboost/ruff-action@v1
17
+ with:
18
+ version: 0.11.5
19
+ - uses: chartboost/ruff-action@v1
20
+ with:
21
+ version: 0.11.5
22
+ args: format --check
23
+ mypy:
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v5
27
+ - uses: actions/setup-python@v5
28
+ with:
29
+ python-version: "3.10"
30
+ - run: pip install mypy==1.15.0
31
+ - run: mypy --install-types --non-interactive
ytmusicapi/.github/workflows/pdm.yml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Update dependencies
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "5 3 1 * *"
6
+
7
+ jobs:
8
+ update-dependencies:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v5
12
+
13
+ - name: Update dependencies
14
+ uses: pdm-project/update-deps-action@main
ytmusicapi/.github/workflows/pythonpublish.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Upload Python Package
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ id-token: write # trusted publishing
9
+ contents: read
10
+
11
+ jobs:
12
+ deploy:
13
+
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v5
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: '3.x'
22
+ - name: Install dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install build
26
+ - name: Build package
27
+ run: python -m build
28
+ - name: Publish a Python distribution to PyPI
29
+ uses: pypa/gh-action-pypi-publish@release/v1
ytmusicapi/.gitignore ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .idea
2
+ .vscode
3
+ tests/*.json
4
+ tests/setup/*.json
5
+ docs/build
6
+ docs/source/reference/api
7
+ test.cfg
8
+ **.mp3
9
+ .coverage
10
+ **/__pycache__/
11
+ venv*/
12
+ *.egg-info/
13
+ build
14
+ dist
15
+ .pdm-python
16
+ .venv
17
+ *.log
18
+ *.xml
ytmusicapi/.pre-commit-config.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ # Ruff version.
4
+ rev: v0.11.5
5
+ hooks:
6
+ # Run the linter.
7
+ - id: ruff
8
+ args: [ --fix ]
9
+ # Run the formatter.
10
+ - id: ruff-format
11
+
12
+ - repo: https://github.com/pre-commit/mirrors-mypy
13
+ rev: v1.15.0
14
+ hooks:
15
+ - id: mypy
16
+ verbose: true
17
+ additional_dependencies: [ 'types-requests' ]
18
+ pass_filenames: false
ytmusicapi/.readthedocs.yml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: 2
2
+
3
+ build:
4
+ os: ubuntu-22.04
5
+ tools:
6
+ python: "3.10"
7
+ jobs:
8
+ pre_build:
9
+ - sphinx-apidoc -o docs/source/reference/api ytmusicapi
10
+
11
+ python:
12
+ install:
13
+ - requirements: docs/source/requirements.txt
14
+ - method: pip
15
+ path: .
16
+
17
+ sphinx:
18
+ configuration: docs/source/conf.py
19
+
20
+ formats: all
ytmusicapi/CONTRIBUTING.rst ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Contributing to ytmusicapi
2
+ ##########################
3
+
4
+ Issues
5
+ -------
6
+ Please make sure to include sufficient details for reproducing your issue.
7
+ This includes the version of the library used as well as detailed instructions for reproduction.
8
+ If needed, please include the YouTube Music API response as well by debugging the API (responses
9
+ may differ based on the user account, so this helps with reproducing new issues).
10
+
11
+
12
+ Pull requests
13
+ --------------
14
+ Please open an issue before submitting, unless it's just a typo or some other small error.
15
+
16
+ Before making changes to the code, install the development requirements using
17
+
18
+ .. code-block::
19
+
20
+ pip install pipx
21
+ pipx install pdm pre-commit
22
+ pdm install
23
+
24
+ Before committing, stage your files and run style and linter checks:
25
+
26
+ .. code-block::
27
+
28
+ git add .
29
+ pre-commit run
30
+
31
+ pre-commit will unstage any files that do not pass. Fix the issues until all checks pass and commit.
32
+
33
+ Code structure
34
+ ---------------
35
+ The folder ``ytmusicapi`` contains the main library which is distributed to the users.
36
+ Each main library function in ``ytmusic.py`` is covered by a test in the ``tests`` folder.
37
+ If you want to contribute a new function, please create a corresponding unittest.
ytmusicapi/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2024 sigma67
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.
ytmusicapi/README.rst ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ytmusicapi: Unofficial API for YouTube Music
2
+ ############################################
3
+
4
+ .. |pypi-downloads| image:: https://img.shields.io/pypi/dm/ytmusicapi?style=flat-square
5
+ :alt: PyPI Downloads
6
+ :target: https://pypi.org/project/ytmusicapi/
7
+
8
+ .. |gitter| image:: https://badges.gitter.im/sigma67/ytmusicapi.svg
9
+ :alt: Ask questions at https://gitter.im/sigma67/ytmusicapi
10
+ :target: https://gitter.im/sigma67/ytmusicapi
11
+
12
+ .. |code-coverage| image:: https://img.shields.io/codecov/c/github/sigma67/ytmusicapi?style=flat-square
13
+ :alt: Code coverage
14
+ :target: https://codecov.io/gh/sigma67/ytmusicapi
15
+
16
+ .. |latest-release| image:: https://img.shields.io/github/v/release/sigma67/ytmusicapi?style=flat-square
17
+ :alt: Latest release
18
+ :target: https://github.com/sigma67/ytmusicapi/releases/latest
19
+
20
+ .. |commits-since-latest| image:: https://img.shields.io/github/commits-since/sigma67/ytmusicapi/latest?style=flat-square
21
+ :alt: Commits since latest release
22
+ :target: https://github.com/sigma67/ytmusicapi/commits
23
+
24
+
25
+ |pypi-downloads| |gitter| |code-coverage| |latest-release| |commits-since-latest|
26
+
27
+ ytmusicapi is a Python 3 library to send requests to the YouTube Music API.
28
+ It emulates YouTube Music web client requests using the user's cookie data for authentication.
29
+
30
+ .. features
31
+
32
+ Features
33
+ --------
34
+
35
+ | **Browsing**:
36
+
37
+ * search (including all filters) and suggestions
38
+ * get artist information and releases (songs, videos, albums, singles, related artists)
39
+ * get user information (videos, playlists)
40
+ * get albums
41
+ * get song metadata
42
+ * get watch playlists (next songs when you press play/radio/shuffle in YouTube Music)
43
+ * get song lyrics
44
+
45
+ | **Exploring music**:
46
+
47
+ * get moods and genres playlists
48
+ * get latest charts (globally and per country)
49
+
50
+ | **Library management**:
51
+
52
+ * get library contents: playlists, songs, artists, albums and subscriptions, podcasts, channels
53
+ * add/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artists
54
+ * get and modify play history
55
+
56
+ | **Playlists**:
57
+
58
+ * create and delete playlists
59
+ * modify playlists: edit metadata, add/move/remove tracks
60
+ * get playlist contents
61
+ * get playlist suggestions
62
+
63
+ | **Podcasts**:
64
+
65
+ * get podcasts
66
+ * get episodes
67
+ * get channels
68
+ * get episodes playlists
69
+
70
+ | **Uploads**:
71
+
72
+ * upload songs and remove them again
73
+ * list uploaded songs, artists and albums
74
+
75
+ | **Localization**:
76
+
77
+ * all regions are supported (see `locations FAQ <https://ytmusicapi.readthedocs.io/en/stable/faq.html#which-values-can-i-use-for-locations>`__
78
+ * 16 languages are supported (see `languages FAQ <https://ytmusicapi.readthedocs.io/en/stable/faq.html#which-values-can-i-use-for-languages>`__
79
+
80
+
81
+ If you find something missing or broken,
82
+ check the `FAQ <https://ytmusicapi.readthedocs.io/en/stable/faq.html>`__ or
83
+ feel free to create an `issue <https://github.com/sigma67/ytmusicapi/issues/new/choose>`__.
84
+
85
+ Requirements
86
+ ------------
87
+
88
+ - Python 3.10 or higher - https://www.python.org
89
+
90
+ Setup
91
+ -----
92
+
93
+ See the `Documentation <https://ytmusicapi.readthedocs.io/en/stable/usage.html>`_ for detailed instructions
94
+
95
+ Usage
96
+ ------
97
+ .. code-block:: python
98
+
99
+ from ytmusicapi import YTMusic
100
+
101
+ yt = YTMusic('oauth.json')
102
+ playlistId = yt.create_playlist('test', 'test description')
103
+ search_results = yt.search('Oasis Wonderwall')
104
+ yt.add_playlist_items(playlistId, [search_results[0]['videoId']])
105
+
106
+ The `tests <https://github.com/sigma67/ytmusicapi/blob/master/tests/>`_ are also a great source of usage examples.
107
+
108
+ .. end-features
109
+
110
+ Contributing
111
+ ------------
112
+
113
+ Pull requests are welcome. There are still some features that are not yet implemented.
114
+ Please, refer to `CONTRIBUTING.rst <https://github.com/sigma67/ytmusicapi/blob/master/CONTRIBUTING.rst>`_ for guidance.
ytmusicapi/docs/Makefile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = source
9
+ BUILDDIR = build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ sphinx-apidoc -o source/reference/api ../ytmusicapi
21
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
ytmusicapi/docs/make.bat ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=source
11
+ set BUILDDIR=build
12
+
13
+ if "%1" == "" goto help
14
+
15
+ %SPHINXBUILD% >NUL 2>NUL
16
+ if errorlevel 9009 (
17
+ echo.
18
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19
+ echo.installed, then set the SPHINXBUILD environment variable to point
20
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
21
+ echo.may add the Sphinx directory to PATH.
22
+ echo.
23
+ echo.If you don't have Sphinx installed, grab it from
24
+ echo.http://sphinx-doc.org/
25
+ exit /b 1
26
+ )
27
+
28
+ sphinx-apidoc -o source/reference/api ../ytmusicapi
29
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
30
+ goto end
31
+
32
+ :help
33
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
34
+
35
+ :end
36
+ popd
ytmusicapi/docs/source/_static/css/custom.css ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wy-nav-content {
2
+ max-width: 1080px !important;
3
+ }
4
+ /* Newlines (\a) and spaces (\20) before each parameter */
5
+ .sig-param::before {
6
+ content: "\a\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20";
7
+ white-space: pre;
8
+ }
9
+
10
+ /* Newline after the last parameter (so the closing bracket is on a new line) */
11
+ dt em.sig-param:last-of-type::after {
12
+ content: "\a";
13
+ white-space: pre;
14
+ }
15
+
16
+ /* To have blue background of width of the block (instead of width of content) */
17
+ dl.class > dt:first-of-type {
18
+ display: block !important;
19
+ }
ytmusicapi/docs/source/_templates/layout.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {% extends "!layout.html" %}
2
+ {% block extrahead %}
3
+ <link _statichref="{{ pathto("/style.css", True) }}" rel="stylesheet" type="text/css">
4
+ {% endblock %}
ytmusicapi/docs/source/conf.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Configuration file for the Sphinx documentation builder.
2
+ #
3
+ # This file only contains a selection of the most common options. For a full
4
+ # list see the documentation:
5
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
6
+
7
+ # -- Path setup --------------------------------------------------------------
8
+
9
+ # If extensions (or modules to document with autodoc) are in another directory,
10
+ # add these directories to sys.path here. If the directory is relative to the
11
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
12
+ #
13
+ import os
14
+ import sys
15
+ from pathlib import Path
16
+
17
+ sys.path.insert(0, Path().resolve().as_posix())
18
+ sys.path.insert(0, "../..")
19
+ from ytmusicapi import __version__
20
+
21
+ on_rtd = os.environ.get("READTHEDOCS", None) == "True"
22
+
23
+ # -- Project information -----------------------------------------------------
24
+
25
+ project = "ytmusicapi"
26
+ copyright = "2024, sigma67"
27
+ author = "sigma67"
28
+
29
+ # The full version, including alpha/beta/rc tags
30
+ version = __version__
31
+ # The full version, including alpha/beta/rc tags.
32
+ release = __version__
33
+
34
+ # -- General configuration ---------------------------------------------------
35
+
36
+ # Add any Sphinx extension module names here, as strings. They can be
37
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
38
+ # ones.
39
+ extensions = ["sphinx.ext.autodoc", "sphinx_autodoc_typehints"]
40
+
41
+ typehints_use_signature = True
42
+ typehints_use_signature_return = True
43
+
44
+ # The suffix of source filenames.
45
+ source_suffix = ".rst"
46
+
47
+ # The master toctree document.
48
+ master_doc = "index"
49
+
50
+ # Add any paths that contain templates here, relative to this directory.
51
+ templates_path = ["_templates"]
52
+
53
+ # Add any paths that contain custom static files (such as style sheets) here,
54
+ # relative to this directory. They are copied after the builtin static files,
55
+ # so a file named "default.css" will overwrite the builtin "default.css".
56
+ html_static_path = ["_static"]
57
+ html_css_files = [
58
+ "css/custom.css",
59
+ ]
60
+
61
+ # List of patterns, relative to source directory, that match files and
62
+ # directories to ignore when looking for source files.
63
+ # This pattern also affects html_static_path and html_extra_path.
64
+ # exclude_patterns = []
65
+
66
+ html_theme = "sphinx_rtd_theme"
ytmusicapi/docs/source/faq.rst ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FAQ
2
+ =====
3
+
4
+ Frequently asked questions for ``ytmusicapi``. Contributions are welcome, please
5
+ `submit a PR <https://github.com/sigma67/ytmusicapi/pulls>`_.
6
+
7
+ Setup
8
+ ------------
9
+
10
+ My library results are empty even though I set up my cookie correctly.
11
+ ***********************************************************************
12
+ Please make sure that you don't have multiple Google accounts. ``ytmusicapi`` might be returning
13
+ results from a different account which is currently empty. You can set your account using ``X-Goog-AuthUser``
14
+ in your headers file (numeric index) or by providing the id of a brand account with ``ytmusic = YTMusic(headers, "1234..")``.
15
+ For more details see the :doc:`reference/index`.
16
+
17
+ Usage
18
+ -----------------------
19
+
20
+ How do I add content to my library?
21
+ ***********************************************************************
22
+ - **songs**: `edit_song_library_status <reference.html#ytmusicapi.YTMusic.edit_song_library_status>`__ .
23
+ Liking a song using `rate_song <reference.html#ytmusicapi.YTMusic.rate_song>`__
24
+ does *not* add it to your library, only to your liked songs playlist.
25
+ - **albums, playlists**: `rate_playlist <reference.html#ytmusicapi.YTMusic.rate_playlist>`__
26
+ - **artists**: `subscribe_artists <reference.html#ytmusicapi.YTMusic.subscribe_artists>`__ .
27
+ This will add the artist to your Subscriptions tab. The Artists tab is determined by the songs/albums you have
28
+ added to your library.
29
+ - **podcasts**: `rate_playlist <reference.html#ytmusicapi.YTMusic.rate_playlist>`__
30
+ - **episodes**: `add_playlist_items("SE", episode_id) <reference.html#ytmusicapi.YTMusic.add_playlist_items>`__
31
+
32
+
33
+
34
+ How can I get the radio playlist for a song, video, playlist or album?
35
+ ***********************************************************************
36
+ - **songs, videos**: ``RDAMVM`` + ``videoId``
37
+ - **playlists, albums**: ``RDAMPL`` + ``playlistId``
38
+
39
+ See also `What is a browseId <faq.html#what-is-a-browseid>`__ below.
40
+
41
+
42
+ How can I get the shuffle playlist for a playlist or album?
43
+ ***********************************************************************
44
+ Use `get_watch_playlist_shuffle <reference.html#ytmusicapi.YTMusic.get_watch_playlist_shuffle>`__
45
+ with the ``playlistId`` or ``audioPlaylistId`` (albums).
46
+
47
+ How can I get all my public playlists in a single request?
48
+ ***********************************************************************
49
+ Call `get_user_playlists <reference.html#ytmusicapi.YTMusic.get_user_playlists>`__
50
+ with your own ``channelId``.
51
+
52
+ Can I download songs?
53
+ ***********************************************************************
54
+ You can use `youtube-dl <https://github.com/ytdl-org/youtube-dl/>`_ for this purpose.
55
+
56
+ How do I package ytmusicapi with ``pyinstaller``?
57
+ *************************************************
58
+
59
+ To package ytmusicapi correctly, you need to add the locales files to your executable.
60
+
61
+ You can use ``--add-data path-to-ytmusicapi/locales`` or ``--collect-all ytmusicapi`` to accomplish this.
62
+
63
+
64
+ YouTube Music API Internals
65
+ ------------------------------
66
+
67
+ Is there a difference between songs and videos?
68
+ ***********************************************************************
69
+ Yes. Videos are regular videos from YouTube, which can be uploaded by any user. Songs are actual songs uploaded by artists.
70
+
71
+ You can also add songs to your library, while you can't add videos.
72
+
73
+ Is there a rate limit?
74
+ ***********************************************************************
75
+ There most certainly is, although you shouldn't run into it during normal usage.
76
+ See related issues:
77
+
78
+ - `Creating playlists <https://github.com/sigma67/ytmusicapi/issues/19>`_
79
+ - `Uploads <https://github.com/sigma67/ytmusicapi/issues/6>`_
80
+
81
+
82
+ What is a browseId?
83
+ ***********************************************************************
84
+ A ``browseId`` is an internal, globally unique identifier used by YouTube Music for browsable content.
85
+
86
+ In most cases you can compose it yourself:
87
+
88
+ +--------+------------+----------------------+
89
+ | Prefix | Main | Content |
90
+ +========+============+======================+
91
+ | VM | playlistId | Playlist |
92
+ +--------+------------+----------------------+
93
+ | RDAMVM | playlistId | Video-based Radio |
94
+ +--------+------------+----------------------+
95
+ | RDAMPL | videoId | Playlist-based Radio |
96
+ +--------+------------+----------------------+
97
+ | MPLA | channelId | Artist |
98
+ +--------+------------+----------------------+
99
+ | MPRE | custom | Album |
100
+ +--------+------------+----------------------+
101
+ | MPSP | playlistId | Podcast |
102
+ +--------+------------+----------------------+
103
+ | MPED | videoId | Episode |
104
+ +--------+------------+----------------------+
105
+
106
+
107
+ Which videoTypes exist and what do they mean?
108
+ ***********************************************************************
109
+
110
+ ``videoType`` is prefixed with ``MUSIC_VIDEO_TYPE_``, i.e. ``MUSIC_VIDEO_TYPE_OMV``.
111
+ Currently the following variants of ``videoType`` are known:
112
+
113
+ - ``OMV``: Original Music Video - uploaded by original artist with actual video content
114
+ - ``UGC``: User Generated Content - uploaded by regular YouTube user
115
+ - ``ATV``: High quality song uploaded by original artist with cover image
116
+ - ``OFFICIAL_SOURCE_MUSIC``: Official video content, but not for a single track
117
+
118
+
119
+ Why is ytmusicapi returning more results than requested with the limit parameter?
120
+ *********************************************************************************
121
+ YouTube Music always returns increments of a specific pagination value, usually between 20 and 100 items at a time.
122
+ This is the case if a ytmusicapi method supports the ``limit`` parameter. The default value of the ``limit`` parameter
123
+ indicates the server-side pagination increment. ytmusicapi will keep fetching continuations from the server until it has
124
+ reached at least the ``limit`` parameter, and return all of these results.
125
+
126
+
127
+ Which values can I use for languages?
128
+ *************************************
129
+
130
+ The ``language`` parameter determines the language of the returned results.
131
+ ``ytmusicapi`` only supports a subset of the languages supported by YouTube Music, as translations need to be done manually.
132
+ Contributions are welcome, see `here for instructions <https://github.com/sigma67/ytmusicapi/tree/master/ytmusicapi/locales>`__.
133
+
134
+ For the list of values you can use for the ``language`` parameter, see below:
135
+
136
+ .. raw:: html
137
+
138
+ <details>
139
+ <br>
140
+ <summary><a>Supported locations</a></summary>
141
+
142
+ .. container::
143
+
144
+ .. list-table::
145
+
146
+ * - **Language**
147
+ - **Value**
148
+ * - Arabic
149
+ - ar
150
+ * - German
151
+ - de
152
+ * - English (default)
153
+ - en
154
+ * - Spanish
155
+ - es
156
+ * - French
157
+ - fr
158
+ * - Hindi
159
+ - hi
160
+ * - Italian
161
+ - it
162
+ * - Japanese
163
+ - ja
164
+ * - Korean
165
+ - ko
166
+ * - Dutch
167
+ - nl
168
+ * - Portuguese
169
+ - pt
170
+ * - Russian
171
+ - ru
172
+ * - Turkish
173
+ - tr
174
+ * - Urdu
175
+ - ur
176
+ * - Chinese (Mainland)
177
+ - zh_CN
178
+ * - Chinese (Taiwan)
179
+ - zh_TW
180
+
181
+
182
+ .. raw:: html
183
+
184
+ </details>
185
+ </br>
186
+
187
+
188
+
189
+ Which values can I use for locations?
190
+ *************************************
191
+
192
+ Pick a value from the list below for your desired location and pass it using the ``location`` parameter.
193
+
194
+ .. raw:: html
195
+
196
+ <details>
197
+ <br>
198
+ <summary><a>Supported locations</a></summary>
199
+
200
+ .. container::
201
+
202
+ .. list-table::
203
+
204
+ * - **Location**
205
+ - **Value**
206
+ * - Algeria
207
+ - DZ
208
+ * - Argentina
209
+ - AR
210
+ * - Australia
211
+ - AU
212
+ * - Austria
213
+ - AT
214
+ * - Azerbaijan
215
+ - AZ
216
+ * - Bahrain
217
+ - BH
218
+ * - Bangladesh
219
+ - BD
220
+ * - Belarus
221
+ - BY
222
+ * - Belgium
223
+ - BE
224
+ * - Bolivia
225
+ - BO
226
+ * - Bosnia and Herzegovina
227
+ - BA
228
+ * - Brazil
229
+ - BR
230
+ * - Bulgaria
231
+ - BG
232
+ * - Cambodia
233
+ - KH
234
+ * - Canada
235
+ - CA
236
+ * - Chile
237
+ - CL
238
+ * - Colombia
239
+ - CO
240
+ * - Costa Rica
241
+ - CR
242
+ * - Croatia
243
+ - HR
244
+ * - Cyprus
245
+ - CY
246
+ * - Czechia
247
+ - CZ
248
+ * - Denmark
249
+ - DK
250
+ * - Dominican Republic
251
+ - DO
252
+ * - Ecuador
253
+ - EC
254
+ * - Egypt
255
+ - EG
256
+ * - El Salvador
257
+ - SV
258
+ * - Estonia
259
+ - EE
260
+ * - Finland
261
+ - FI
262
+ * - France
263
+ - FR
264
+ * - Georgia
265
+ - GE
266
+ * - Germany
267
+ - DE
268
+ * - Ghana
269
+ - GH
270
+ * - Greece
271
+ - GR
272
+ * - Guatemala
273
+ - GT
274
+ * - Honduras
275
+ - HN
276
+ * - Hong Kong
277
+ - HK
278
+ * - Hungary
279
+ - HU
280
+ * - Iceland
281
+ - IS
282
+ * - India
283
+ - IN
284
+ * - Indonesia
285
+ - ID
286
+ * - Iraq
287
+ - IQ
288
+ * - Ireland
289
+ - IE
290
+ * - Israel
291
+ - IL
292
+ * - Italy
293
+ - IT
294
+ * - Jamaica
295
+ - JM
296
+ * - Japan
297
+ - JP
298
+ * - Jordan
299
+ - JO
300
+ * - Kazakhstan
301
+ - KZ
302
+ * - Kenya
303
+ - KE
304
+ * - Kuwait
305
+ - KW
306
+ * - Laos
307
+ - LA
308
+ * - Latvia
309
+ - LV
310
+ * - Lebanon
311
+ - LB
312
+ * - Libya
313
+ - LY
314
+ * - Liechtenstein
315
+ - LI
316
+ * - Lithuania
317
+ - LT
318
+ * - Luxembourg
319
+ - LU
320
+ * - Malaysia
321
+ - MY
322
+ * - Malta
323
+ - MT
324
+ * - Mexico
325
+ - MX
326
+ * - Montenegro
327
+ - ME
328
+ * - Morocco
329
+ - MA
330
+ * - Nepal
331
+ - NP
332
+ * - Netherlands
333
+ - NL
334
+ * - New Zealand
335
+ - NZ
336
+ * - Nicaragua
337
+ - NI
338
+ * - Nigeria
339
+ - NG
340
+ * - North Macedonia
341
+ - MK
342
+ * - Norway
343
+ - NO
344
+ * - Oman
345
+ - OM
346
+ * - Pakistan
347
+ - PK
348
+ * - Panama
349
+ - PA
350
+ * - Papua New Guinea
351
+ - PG
352
+ * - Paraguay
353
+ - PY
354
+ * - Peru
355
+ - PE
356
+ * - Philippines
357
+ - PH
358
+ * - Poland
359
+ - PL
360
+ * - Portugal
361
+ - PT
362
+ * - Puerto Rico
363
+ - PR
364
+ * - Qatar
365
+ - QA
366
+ * - Romania
367
+ - RO
368
+ * - Russia
369
+ - RU
370
+ * - Saudi Arabia
371
+ - SA
372
+ * - Senegal
373
+ - SN
374
+ * - Serbia
375
+ - RS
376
+ * - Singapore
377
+ - SG
378
+ * - Slovakia
379
+ - SK
380
+ * - Slovenia
381
+ - SI
382
+ * - South Africa
383
+ - ZA
384
+ * - South Korea
385
+ - KR
386
+ * - Spain
387
+ - ES
388
+ * - Sri Lanka
389
+ - LK
390
+ * - Sweden
391
+ - SE
392
+ * - Switzerland
393
+ - CH
394
+ * - Taiwan
395
+ - TW
396
+ * - Tanzania
397
+ - TZ
398
+ * - Thailand
399
+ - TH
400
+ * - Tunisia
401
+ - TN
402
+ * - Turkey
403
+ - TR
404
+ * - Uganda
405
+ - UG
406
+ * - Ukraine
407
+ - UA
408
+ * - United Arab Emirates
409
+ - AE
410
+ * - United Kingdom
411
+ - GB
412
+ * - United States
413
+ - US
414
+ * - Uruguay
415
+ - UY
416
+ * - Venezuela
417
+ - VE
418
+ * - Vietnam
419
+ - VN
420
+ * - Yemen
421
+ - YE
422
+ * - Zimbabwe
423
+ - ZW
424
+
425
+ .. raw:: html
426
+
427
+ </details>
428
+ </br>
ytmusicapi/docs/source/index.rst ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ytmusicapi: Unofficial API for YouTube Music
2
+ ==================================================
3
+ The purpose of this library is to automate interactions with `YouTube Music <https://summer-darkness-1435.bob17040246.workers.dev/>`_,
4
+ such as retrieving your library content, managing playlists and uploading songs.
5
+ To achieve this, it emulates web requests that would occur if you performed the same actions in your web browser.
6
+
7
+ **This project is not supported nor endorsed by Google**
8
+
9
+ .. include:: ../../README.rst
10
+ :start-after: features
11
+ :end-before: end-features
12
+
13
+ To **get started**, read the :doc:`setup instructions <setup/index>`.
14
+
15
+ For a **complete documentation** of available functions, see the :doc:`Reference <reference/index>`.
16
+
17
+ Contents
18
+ --------
19
+
20
+ .. toctree::
21
+ :hidden:
22
+
23
+ Home <self>
24
+
25
+ .. toctree::
26
+
27
+ setup/index
28
+ usage
29
+ reference/index
30
+ faq
ytmusicapi/docs/source/reference/browsing.rst ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Browsing
2
+ --------
3
+
4
+ .. currentmodule:: ytmusicapi
5
+ .. automethod:: YTMusic.get_home
6
+ .. automethod:: YTMusic.get_artist
7
+ .. automethod:: YTMusic.get_artist_albums
8
+ .. automethod:: YTMusic.get_album
9
+ .. automethod:: YTMusic.get_album_browse_id
10
+ .. automethod:: YTMusic.get_user
11
+ .. automethod:: YTMusic.get_user_playlists
12
+ .. automethod:: YTMusic.get_user_videos
13
+ .. automethod:: YTMusic.get_song
14
+ .. automethod:: YTMusic.get_song_related
15
+ .. automethod:: YTMusic.get_lyrics
16
+ .. automethod:: YTMusic.get_tasteprofile
17
+ .. automethod:: YTMusic.set_tasteprofile
ytmusicapi/docs/source/reference/explore.rst ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Explore
2
+ --------
3
+
4
+ .. currentmodule:: ytmusicapi
5
+ .. automethod:: YTMusic.get_mood_categories
6
+ .. automethod:: YTMusic.get_mood_playlists
7
+ .. automethod:: YTMusic.get_charts
ytmusicapi/docs/source/reference/index.rst ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Reference
2
+ =========
3
+
4
+ Reference for the YTMusic class.
5
+
6
+
7
+ .. toctree::
8
+
9
+ ytmusic
10
+ setup
11
+ search
12
+ browsing
13
+ explore
14
+ watch
15
+ library
16
+ playlists
17
+ podcasts
18
+ uploads
19
+ api/modules
ytmusicapi/docs/source/reference/library.rst ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Library
2
+ -------
3
+
4
+ .. automodule:: ytmusicapi
5
+
6
+ .. automethod:: YTMusic.get_library_playlists
7
+ .. automethod:: YTMusic.get_library_songs
8
+ .. automethod:: YTMusic.get_library_albums
9
+ .. automethod:: YTMusic.get_library_artists
10
+ .. automethod:: YTMusic.get_library_subscriptions
11
+ .. automethod:: YTMusic.get_library_podcasts
12
+ .. automethod:: YTMusic.get_library_channels
13
+ .. automethod:: YTMusic.get_liked_songs
14
+ .. automethod:: YTMusic.get_saved_episodes
15
+ .. automethod:: YTMusic.get_history
16
+ .. automethod:: YTMusic.add_history_item
17
+ .. automethod:: YTMusic.remove_history_items
18
+ .. automethod:: YTMusic.rate_song
19
+ .. automethod:: YTMusic.edit_song_library_status
20
+ .. automethod:: YTMusic.rate_playlist
21
+ .. automethod:: YTMusic.subscribe_artists
22
+ .. automethod:: YTMusic.unsubscribe_artists
23
+ .. automethod:: YTMusic.get_account_info
ytmusicapi/docs/source/reference/oauth.rst ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ OAuth
2
+ =====
3
+
4
+ .. automodule:: ytmusicapi.auth.oauth
5
+ :ignore-module-all:
6
+ :members:
7
+ :undoc-members:
8
+ :show-inheritance:
9
+ :imported-members:
ytmusicapi/docs/source/reference/playlists.rst ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ Playlists
2
+ ---------
3
+
4
+ .. currentmodule:: ytmusicapi
5
+ .. automethod:: YTMusic.get_playlist
6
+ .. automethod:: YTMusic.create_playlist
7
+ .. automethod:: YTMusic.edit_playlist
8
+ .. automethod:: YTMusic.delete_playlist
9
+ .. automethod:: YTMusic.add_playlist_items
10
+ .. automethod:: YTMusic.remove_playlist_items
ytmusicapi/docs/source/reference/podcasts.rst ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ Podcasts
2
+ --------
3
+
4
+ .. currentmodule:: ytmusicapi
5
+ .. automethod:: YTMusic.get_channel
6
+ .. automethod:: YTMusic.get_channel_episodes
7
+ .. automethod:: YTMusic.get_podcast
8
+ .. automethod:: YTMusic.get_episode
9
+ .. automethod:: YTMusic.get_episodes_playlist
ytmusicapi/docs/source/reference/search.rst ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Search
2
+ ------
3
+
4
+ .. currentmodule:: ytmusicapi
5
+ .. automethod:: YTMusic.search
6
+ .. automethod:: YTMusic.get_search_suggestions
7
+ .. automethod:: YTMusic.remove_search_suggestions
ytmusicapi/docs/source/reference/setup.rst ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ Setup
2
+ -----
3
+
4
+ See also the :doc:`Setup <../setup/index>` page
5
+
6
+ .. currentmodule:: ytmusicapi
7
+ .. autofunction:: setup
8
+ .. autofunction:: setup_oauth
ytmusicapi/docs/source/reference/uploads.rst ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Uploads
2
+ -------
3
+
4
+ .. currentmodule:: ytmusicapi
5
+ .. automethod:: YTMusic.get_library_upload_songs
6
+ .. automethod:: YTMusic.get_library_upload_artists
7
+ .. automethod:: YTMusic.get_library_upload_albums
8
+ .. automethod:: YTMusic.get_library_upload_artist
9
+ .. automethod:: YTMusic.get_library_upload_album
10
+ .. automethod:: YTMusic.upload_song
11
+ .. automethod:: YTMusic.delete_upload_entity
ytmusicapi/docs/source/reference/watch.rst ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Watch
2
+ --------
3
+
4
+ .. currentmodule:: ytmusicapi
5
+ .. automethod:: YTMusic.get_watch_playlist
ytmusicapi/docs/source/reference/ytmusic.rst ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ YTMusic
2
+ -------
3
+
4
+ .. currentmodule:: ytmusicapi
5
+ .. autoclass:: YTMusic
6
+ .. automethod:: YTMusic.__init__
ytmusicapi/docs/source/requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ sphinx<7
2
+ sphinx-rtd-theme
3
+ sphinx-autodoc-typehints>=1.23.0
ytmusicapi/docs/source/setup/browser.rst ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Browser authentication
2
+ ======================
3
+
4
+ This method of authentication emulates your browser session by reusing its request headers.
5
+ Follow the instructions to have your browser's YouTube Music session request headers parsed
6
+ to a ``ytmusicapi`` configuration file.
7
+
8
+ Copy authentication headers
9
+ ---------------------------
10
+
11
+ To run authenticated requests, set it up by first copying your request headers from an authenticated POST request in your browser.
12
+ To do so, follow these steps:
13
+
14
+ - Open a new tab
15
+ - Open the developer tools (Ctrl-Shift-I) and select the "Network" tab
16
+ - Go to https://summer-darkness-1435.bob17040246.workers.dev and ensure you are logged in
17
+ - Find an authenticated POST request. The simplest way is to filter by ``/browse`` using the search bar of the developer tools.
18
+ If you don't see the request, try scrolling down a bit or clicking on the library button in the top bar.
19
+
20
+ .. raw:: html
21
+
22
+ <details open>
23
+ <summary><a>Firefox (recommended)</a></summary>
24
+
25
+ .. container::
26
+
27
+ - Verify that the request looks like this: **Status** 200, **Method** POST, **Domain** music.youtube.com, **File** ``browse?...``
28
+ - Copy the request headers (right click > copy > copy request headers)
29
+
30
+ .. raw:: html
31
+
32
+ </details>
33
+
34
+ .. raw:: html
35
+
36
+ <details>
37
+ <summary><a>Chromium (Chrome/Edge)</a></summary>
38
+
39
+ .. container::
40
+
41
+ - Verify that the request looks like this: **Status** 200, **Name** ``browse?...``
42
+ - Click on the Name of any matching request. In the "Headers" tab, scroll to the section "Request headers" and copy everything starting from "accept: \*/\*" to the end of the section
43
+
44
+ .. raw:: html
45
+
46
+ </details><br>
47
+
48
+ Using the headers in your project
49
+ ---------------------------------
50
+
51
+ To set up your project, open a console and call
52
+
53
+ .. code-block:: bash
54
+
55
+ ytmusicapi browser
56
+
57
+ Follow the instructions and paste the request headers to the terminal input.
58
+
59
+ If you don't want terminal interaction in your project, you can pass the request headers with the ``headers_raw`` parameter:
60
+
61
+ .. code-block:: python
62
+
63
+ import ytmusicapi
64
+ ytmusicapi.setup(filepath="browser.json", headers_raw="<headers copied above>")
65
+
66
+ The function returns a JSON string with the credentials needed for :doc:`../usage`. Alternatively, if you passed the filepath parameter as described above,
67
+ a file called ``browser.json`` will be created in the current directory, which you can pass to ``YTMusic()`` for authentication.
68
+
69
+ These credentials remain valid as long as your YTMusic browser session is valid (about 2 years unless you log out).
70
+
71
+ .. raw:: html
72
+
73
+ <details>
74
+ <summary><a>MacOS special pasting instructions</a></summary>
75
+
76
+ .. container::
77
+
78
+ - MacOS terminal application can only accept 1024 characters pasted to std input. To paste in terminal, a small utility called pbpaste must be used.
79
+ - In terminal just prefix the command used to run the script you created above with
80
+ ``pbpaste |``
81
+ - This will pipe the contents of the clipboard into the script just as if you had pasted it from the edit menu.
82
+
83
+ .. raw:: html
84
+
85
+ </details><br>
86
+
87
+ Manual file creation
88
+ --------------------
89
+
90
+ Alternatively, you can create your own file ``browser.json`` and paste the cookie:
91
+
92
+ .. literalinclude:: headers_auth.json.example
93
+ :language: JSON
ytmusicapi/docs/source/setup/headers_auth.json.example ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0",
3
+ "Accept": "*/*",
4
+ "Accept-Language": "en-US,en;q=0.5",
5
+ "Content-Type": "application/json",
6
+ "X-Goog-AuthUser": "0",
7
+ "x-origin": "https://summer-darkness-1435.bob17040246.workers.dev",
8
+ "Cookie" : "PASTE_COOKIE"
9
+ }
ytmusicapi/docs/source/setup/index.rst ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Setup
2
+ =====
3
+
4
+ To install, run:
5
+
6
+ .. code-block:: bash
7
+
8
+ pip install ytmusicapi
9
+
10
+
11
+ Further setup is only needed if you want to access account data using authenticated requests.
12
+
13
+ The simplest way of authentication is to use :doc:`oauth`.
14
+
15
+ However, these OAuth credentials do not work for uploads. If you need to upload music,
16
+ instead follow the instructions at :doc:`browser`.
17
+
18
+
19
+
20
+ .. toctree::
21
+ :caption: Table of Contents
22
+
23
+ oauth
24
+ browser
ytmusicapi/docs/source/setup/oauth.rst ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ OAuth authentication
2
+ ====================
3
+
4
+ .. attention::
5
+
6
+ As of November 2024, YouTube Music requires a Client Id and Secret for the YouTube Data API to connect to the API.
7
+
8
+ Go to the `YouTube Data API docs <https://developers.google.com/youtube/registering_an_application>`_ to
9
+ obtain the credentials. This requires a Google Cloud Console account and project.
10
+
11
+ For your new credentials, select ``OAuth client ID`` and pick ``TVs and Limited Input devices``.
12
+
13
+ After you have installed ``ytmusicapi``, run
14
+
15
+ .. code-block:: bash
16
+
17
+ ytmusicapi oauth
18
+
19
+ and follow the instructions. This will create a file ``oauth.json`` in the current directory.
20
+
21
+ You can pass this file to :py:class:`YTMusic` as explained in :doc:`../usage`.
22
+
23
+ You will also need to pass ``client_id`` and ``client_secret`` to :py:class:`YTMusic`:
24
+
25
+ .. code-block::
26
+
27
+ from ytmusicapi import YTMusic, OAuthCredentials
28
+
29
+ ytmusic = YTMusic('oauth.json', oauth_credentials=OAuthCredentials(client_id=client_id, client_secret=client_secret))
30
+
31
+ This OAuth flow uses the
32
+ `Google API flow for TV devices <https://developers.google.com/youtube/v3/guides/auth/devices>`_.
ytmusicapi/docs/source/usage.rst ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Usage
2
+ =======
3
+
4
+ Unauthenticated
5
+ ---------------
6
+ Unauthenticated requests for retrieving playlist content or searching:
7
+
8
+ .. code-block:: python
9
+
10
+ from ytmusicapi import YTMusic
11
+
12
+ ytmusic = YTMusic()
13
+
14
+
15
+ If an endpoint requires authentication you will receive an error:
16
+ ``Please provide authentication before using this function``
17
+
18
+ Authenticated
19
+ -------------
20
+ For authenticated requests you need to set up your credentials first: :doc:`Setup <setup/index>`
21
+
22
+ After you have created the authentication JSON, you can instantiate the class:
23
+
24
+ .. code-block:: python
25
+
26
+ from ytmusicapi import YTMusic, OAuthCredentials
27
+ ytmusic = YTMusic("browser.json") # or, alternatively
28
+ ytmusic = YTMusic("oauth.json", oauth_credentials=OAuthCredentials(client_id=client_id, client_secret=client_secret)
29
+
30
+
31
+ With the :code:`ytmusic` instance you can now perform authenticated requests:
32
+
33
+ .. code-block:: python
34
+
35
+ playlistId = ytmusic.create_playlist("test", "test description")
36
+ search_results = ytmusic.search("Oasis Wonderwall")
37
+ ytmusic.add_playlist_items(playlistId, [search_results[0]['videoId']])
38
+
39
+ Brand accounts
40
+ ##############
41
+ To send requests as a brand account, there is no need to change authentication credentials.
42
+ Simply provide the ID of the brand account when instantiating YTMusic.
43
+ You can get the ID from https://myaccount.google.com/ after selecting your brand account
44
+ (https://myaccount.google.com/b/21_digit_number).
45
+
46
+ Example:
47
+
48
+ .. code-block:: python
49
+
50
+ from ytmusicapi import YTMusic
51
+ ytmusic = YTMusic("oauth.json", "101234161234936123473")
52
+
53
+
ytmusicapi/pdm.lock ADDED
@@ -0,0 +1,826 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is @generated by PDM.
2
+ # It is not intended for manual editing.
3
+
4
+ [metadata]
5
+ groups = ["default", "dev"]
6
+ strategy = ["inherit_metadata"]
7
+ lock_version = "4.5.0"
8
+ content_hash = "sha256:7b171453e1787fabeb4b9f70f8a2a757516a30b9150b879cd2f8bb662f8aa793"
9
+
10
+ [[metadata.targets]]
11
+ requires_python = ">=3.10"
12
+
13
+ [[package]]
14
+ name = "alabaster"
15
+ version = "0.7.16"
16
+ requires_python = ">=3.9"
17
+ summary = "A light, configurable Sphinx theme"
18
+ groups = ["dev"]
19
+ files = [
20
+ {file = "alabaster-0.7.16-py3-none-any.whl", hash = "sha256:b46733c07dce03ae4e150330b975c75737fa60f0a7c591b6c8bf4928a28e2c92"},
21
+ {file = "alabaster-0.7.16.tar.gz", hash = "sha256:75a8b99c28a5dad50dd7f8ccdd447a121ddb3892da9e53d1ca5cca3106d58d65"},
22
+ ]
23
+
24
+ [[package]]
25
+ name = "babel"
26
+ version = "2.16.0"
27
+ requires_python = ">=3.8"
28
+ summary = "Internationalization utilities"
29
+ groups = ["dev"]
30
+ dependencies = [
31
+ "pytz>=2015.7; python_version < \"3.9\"",
32
+ ]
33
+ files = [
34
+ {file = "babel-2.16.0-py3-none-any.whl", hash = "sha256:368b5b98b37c06b7daf6696391c3240c938b37767d4584413e8438c5c435fa8b"},
35
+ {file = "babel-2.16.0.tar.gz", hash = "sha256:d1f3554ca26605fe173f3de0c65f750f5a42f924499bf134de6423582298e316"},
36
+ ]
37
+
38
+ [[package]]
39
+ name = "certifi"
40
+ version = "2025.1.31"
41
+ requires_python = ">=3.6"
42
+ summary = "Python package for providing Mozilla's CA Bundle."
43
+ groups = ["default", "dev"]
44
+ files = [
45
+ {file = "certifi-2025.1.31-py3-none-any.whl", hash = "sha256:ca78db4565a652026a4db2bcdf68f2fb589ea80d0be70e03929ed730746b84fe"},
46
+ {file = "certifi-2025.1.31.tar.gz", hash = "sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651"},
47
+ ]
48
+
49
+ [[package]]
50
+ name = "charset-normalizer"
51
+ version = "3.4.1"
52
+ requires_python = ">=3.7"
53
+ summary = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
54
+ groups = ["default", "dev"]
55
+ files = [
56
+ {file = "charset_normalizer-3.4.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:91b36a978b5ae0ee86c394f5a54d6ef44db1de0815eb43de826d41d21e4af3de"},
57
+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7461baadb4dc00fd9e0acbe254e3d7d2112e7f92ced2adc96e54ef6501c5f176"},
58
+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e218488cd232553829be0664c2292d3af2eeeb94b32bea483cf79ac6a694e037"},
59
+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:80ed5e856eb7f30115aaf94e4a08114ccc8813e6ed1b5efa74f9f82e8509858f"},
60
+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b010a7a4fd316c3c484d482922d13044979e78d1861f0e0650423144c616a46a"},
61
+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4532bff1b8421fd0a320463030c7520f56a79c9024a4e88f01c537316019005a"},
62
+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d973f03c0cb71c5ed99037b870f2be986c3c05e63622c017ea9816881d2dd247"},
63
+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:3a3bd0dcd373514dcec91c411ddb9632c0d7d92aed7093b8c3bbb6d69ca74408"},
64
+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:d9c3cdf5390dcd29aa8056d13e8e99526cda0305acc038b96b30352aff5ff2bb"},
65
+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:2bdfe3ac2e1bbe5b59a1a63721eb3b95fc9b6817ae4a46debbb4e11f6232428d"},
66
+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:eab677309cdb30d047996b36d34caeda1dc91149e4fdca0b1a039b3f79d9a807"},
67
+ {file = "charset_normalizer-3.4.1-cp310-cp310-win32.whl", hash = "sha256:c0429126cf75e16c4f0ad00ee0eae4242dc652290f940152ca8c75c3a4b6ee8f"},
68
+ {file = "charset_normalizer-3.4.1-cp310-cp310-win_amd64.whl", hash = "sha256:9f0b8b1c6d84c8034a44893aba5e767bf9c7a211e313a9605d9c617d7083829f"},
69
+ {file = "charset_normalizer-3.4.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:8bfa33f4f2672964266e940dd22a195989ba31669bd84629f05fab3ef4e2d125"},
70
+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:28bf57629c75e810b6ae989f03c0828d64d6b26a5e205535585f96093e405ed1"},
71
+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f08ff5e948271dc7e18a35641d2f11a4cd8dfd5634f55228b691e62b37125eb3"},
72
+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:234ac59ea147c59ee4da87a0c0f098e9c8d169f4dc2a159ef720f1a61bbe27cd"},
73
+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd4ec41f914fa74ad1b8304bbc634b3de73d2a0889bd32076342a573e0779e00"},
74
+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eea6ee1db730b3483adf394ea72f808b6e18cf3cb6454b4d86e04fa8c4327a12"},
75
+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c96836c97b1238e9c9e3fe90844c947d5afbf4f4c92762679acfe19927d81d77"},
76
+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:4d86f7aff21ee58f26dcf5ae81a9addbd914115cdebcbb2217e4f0ed8982e146"},
77
+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:09b5e6733cbd160dcc09589227187e242a30a49ca5cefa5a7edd3f9d19ed53fd"},
78
+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:5777ee0881f9499ed0f71cc82cf873d9a0ca8af166dfa0af8ec4e675b7df48e6"},
79
+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:237bdbe6159cff53b4f24f397d43c6336c6b0b42affbe857970cefbb620911c8"},
80
+ {file = "charset_normalizer-3.4.1-cp311-cp311-win32.whl", hash = "sha256:8417cb1f36cc0bc7eaba8ccb0e04d55f0ee52df06df3ad55259b9a323555fc8b"},
81
+ {file = "charset_normalizer-3.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:d7f50a1f8c450f3925cb367d011448c39239bb3eb4117c36a6d354794de4ce76"},
82
+ {file = "charset_normalizer-3.4.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:73d94b58ec7fecbc7366247d3b0b10a21681004153238750bb67bd9012414545"},
83
+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dad3e487649f498dd991eeb901125411559b22e8d7ab25d3aeb1af367df5efd7"},
84
+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c30197aa96e8eed02200a83fba2657b4c3acd0f0aa4bdc9f6c1af8e8962e0757"},
85
+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2369eea1ee4a7610a860d88f268eb39b95cb588acd7235e02fd5a5601773d4fa"},
86
+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc2722592d8998c870fa4e290c2eec2c1569b87fe58618e67d38b4665dfa680d"},
87
+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ffc9202a29ab3920fa812879e95a9e78b2465fd10be7fcbd042899695d75e616"},
88
+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:804a4d582ba6e5b747c625bf1255e6b1507465494a40a2130978bda7b932c90b"},
89
+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f55e69f030f7163dffe9fd0752b32f070566451afe180f99dbeeb81f511ad8d"},
90
+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c4c3e6da02df6fa1410a7680bd3f63d4f710232d3139089536310d027950696a"},
91
+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:5df196eb874dae23dcfb968c83d4f8fdccb333330fe1fc278ac5ceeb101003a9"},
92
+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e358e64305fe12299a08e08978f51fc21fac060dcfcddd95453eabe5b93ed0e1"},
93
+ {file = "charset_normalizer-3.4.1-cp312-cp312-win32.whl", hash = "sha256:9b23ca7ef998bc739bf6ffc077c2116917eabcc901f88da1b9856b210ef63f35"},
94
+ {file = "charset_normalizer-3.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:6ff8a4a60c227ad87030d76e99cd1698345d4491638dfa6673027c48b3cd395f"},
95
+ {file = "charset_normalizer-3.4.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:aabfa34badd18f1da5ec1bc2715cadc8dca465868a4e73a0173466b688f29dda"},
96
+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22e14b5d70560b8dd51ec22863f370d1e595ac3d024cb8ad7d308b4cd95f8313"},
97
+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8436c508b408b82d87dc5f62496973a1805cd46727c34440b0d29d8a2f50a6c9"},
98
+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2d074908e1aecee37a7635990b2c6d504cd4766c7bc9fc86d63f9c09af3fa11b"},
99
+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:955f8851919303c92343d2f66165294848d57e9bba6cf6e3625485a70a038d11"},
100
+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:44ecbf16649486d4aebafeaa7ec4c9fed8b88101f4dd612dcaf65d5e815f837f"},
101
+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0924e81d3d5e70f8126529951dac65c1010cdf117bb75eb02dd12339b57749dd"},
102
+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2967f74ad52c3b98de4c3b32e1a44e32975e008a9cd2a8cc8966d6a5218c5cb2"},
103
+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c75cb2a3e389853835e84a2d8fb2b81a10645b503eca9bcb98df6b5a43eb8886"},
104
+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:09b26ae6b1abf0d27570633b2b078a2a20419c99d66fb2823173d73f188ce601"},
105
+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fa88b843d6e211393a37219e6a1c1df99d35e8fd90446f1118f4216e307e48cd"},
106
+ {file = "charset_normalizer-3.4.1-cp313-cp313-win32.whl", hash = "sha256:eb8178fe3dba6450a3e024e95ac49ed3400e506fd4e9e5c32d30adda88cbd407"},
107
+ {file = "charset_normalizer-3.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:b1ac5992a838106edb89654e0aebfc24f5848ae2547d22c2c3f66454daa11971"},
108
+ {file = "charset_normalizer-3.4.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:b97e690a2118911e39b4042088092771b4ae3fc3aa86518f84b8cf6888dbdb41"},
109
+ {file = "charset_normalizer-3.4.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:78baa6d91634dfb69ec52a463534bc0df05dbd546209b79a3880a34487f4b84f"},
110
+ {file = "charset_normalizer-3.4.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1a2bc9f351a75ef49d664206d51f8e5ede9da246602dc2d2726837620ea034b2"},
111
+ {file = "charset_normalizer-3.4.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:75832c08354f595c760a804588b9357d34ec00ba1c940c15e31e96d902093770"},
112
+ {file = "charset_normalizer-3.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0af291f4fe114be0280cdd29d533696a77b5b49cfde5467176ecab32353395c4"},
113
+ {file = "charset_normalizer-3.4.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0167ddc8ab6508fe81860a57dd472b2ef4060e8d378f0cc555707126830f2537"},
114
+ {file = "charset_normalizer-3.4.1-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:2a75d49014d118e4198bcee5ee0a6f25856b29b12dbf7cd012791f8a6cc5c496"},
115
+ {file = "charset_normalizer-3.4.1-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:363e2f92b0f0174b2f8238240a1a30142e3db7b957a5dd5689b0e75fb717cc78"},
116
+ {file = "charset_normalizer-3.4.1-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:ab36c8eb7e454e34e60eb55ca5d241a5d18b2c6244f6827a30e451c42410b5f7"},
117
+ {file = "charset_normalizer-3.4.1-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:4c0907b1928a36d5a998d72d64d8eaa7244989f7aaaf947500d3a800c83a3fd6"},
118
+ {file = "charset_normalizer-3.4.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:04432ad9479fa40ec0f387795ddad4437a2b50417c69fa275e212933519ff294"},
119
+ {file = "charset_normalizer-3.4.1-cp39-cp39-win32.whl", hash = "sha256:3bed14e9c89dcb10e8f3a29f9ccac4955aebe93c71ae803af79265c9ca5644c5"},
120
+ {file = "charset_normalizer-3.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:49402233c892a461407c512a19435d1ce275543138294f7ef013f0b63d5d3765"},
121
+ {file = "charset_normalizer-3.4.1-py3-none-any.whl", hash = "sha256:d98b1668f06378c6dbefec3b92299716b931cd4e6061f3c875a71ced1780ab85"},
122
+ {file = "charset_normalizer-3.4.1.tar.gz", hash = "sha256:44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3"},
123
+ ]
124
+
125
+ [[package]]
126
+ name = "colorama"
127
+ version = "0.4.6"
128
+ requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
129
+ summary = "Cross-platform colored terminal text."
130
+ groups = ["dev"]
131
+ marker = "sys_platform == \"win32\""
132
+ files = [
133
+ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
134
+ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
135
+ ]
136
+
137
+ [[package]]
138
+ name = "coverage"
139
+ version = "7.6.10"
140
+ requires_python = ">=3.9"
141
+ summary = "Code coverage measurement for Python"
142
+ groups = ["dev"]
143
+ files = [
144
+ {file = "coverage-7.6.10-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5c912978f7fbf47ef99cec50c4401340436d200d41d714c7a4766f377c5b7b78"},
145
+ {file = "coverage-7.6.10-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a01ec4af7dfeb96ff0078ad9a48810bb0cc8abcb0115180c6013a6b26237626c"},
146
+ {file = "coverage-7.6.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a3b204c11e2b2d883946fe1d97f89403aa1811df28ce0447439178cc7463448a"},
147
+ {file = "coverage-7.6.10-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:32ee6d8491fcfc82652a37109f69dee9a830e9379166cb73c16d8dc5c2915165"},
148
+ {file = "coverage-7.6.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:675cefc4c06e3b4c876b85bfb7c59c5e2218167bbd4da5075cbe3b5790a28988"},
149
+ {file = "coverage-7.6.10-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f4f620668dbc6f5e909a0946a877310fb3d57aea8198bde792aae369ee1c23b5"},
150
+ {file = "coverage-7.6.10-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:4eea95ef275de7abaef630c9b2c002ffbc01918b726a39f5a4353916ec72d2f3"},
151
+ {file = "coverage-7.6.10-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e2f0280519e42b0a17550072861e0bc8a80a0870de260f9796157d3fca2733c5"},
152
+ {file = "coverage-7.6.10-cp310-cp310-win32.whl", hash = "sha256:bc67deb76bc3717f22e765ab3e07ee9c7a5e26b9019ca19a3b063d9f4b874244"},
153
+ {file = "coverage-7.6.10-cp310-cp310-win_amd64.whl", hash = "sha256:0f460286cb94036455e703c66988851d970fdfd8acc2a1122ab7f4f904e4029e"},
154
+ {file = "coverage-7.6.10-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ea3c8f04b3e4af80e17bab607c386a830ffc2fb88a5484e1df756478cf70d1d3"},
155
+ {file = "coverage-7.6.10-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:507a20fc863cae1d5720797761b42d2d87a04b3e5aeb682ef3b7332e90598f43"},
156
+ {file = "coverage-7.6.10-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d37a84878285b903c0fe21ac8794c6dab58150e9359f1aaebbeddd6412d53132"},
157
+ {file = "coverage-7.6.10-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a534738b47b0de1995f85f582d983d94031dffb48ab86c95bdf88dc62212142f"},
158
+ {file = "coverage-7.6.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0d7a2bf79378d8fb8afaa994f91bfd8215134f8631d27eba3e0e2c13546ce994"},
159
+ {file = "coverage-7.6.10-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6713ba4b4ebc330f3def51df1d5d38fad60b66720948112f114968feb52d3f99"},
160
+ {file = "coverage-7.6.10-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ab32947f481f7e8c763fa2c92fd9f44eeb143e7610c4ca9ecd6a36adab4081bd"},
161
+ {file = "coverage-7.6.10-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7bbd8c8f1b115b892e34ba66a097b915d3871db7ce0e6b9901f462ff3a975377"},
162
+ {file = "coverage-7.6.10-cp311-cp311-win32.whl", hash = "sha256:299e91b274c5c9cdb64cbdf1b3e4a8fe538a7a86acdd08fae52301b28ba297f8"},
163
+ {file = "coverage-7.6.10-cp311-cp311-win_amd64.whl", hash = "sha256:489a01f94aa581dbd961f306e37d75d4ba16104bbfa2b0edb21d29b73be83609"},
164
+ {file = "coverage-7.6.10-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:27c6e64726b307782fa5cbe531e7647aee385a29b2107cd87ba7c0105a5d3853"},
165
+ {file = "coverage-7.6.10-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c56e097019e72c373bae32d946ecf9858fda841e48d82df7e81c63ac25554078"},
166
+ {file = "coverage-7.6.10-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c7827a5bc7bdb197b9e066cdf650b2887597ad124dd99777332776f7b7c7d0d0"},
167
+ {file = "coverage-7.6.10-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:204a8238afe787323a8b47d8be4df89772d5c1e4651b9ffa808552bdf20e1d50"},
168
+ {file = "coverage-7.6.10-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e67926f51821b8e9deb6426ff3164870976fe414d033ad90ea75e7ed0c2e5022"},
169
+ {file = "coverage-7.6.10-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e78b270eadb5702938c3dbe9367f878249b5ef9a2fcc5360ac7bff694310d17b"},
170
+ {file = "coverage-7.6.10-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:714f942b9c15c3a7a5fe6876ce30af831c2ad4ce902410b7466b662358c852c0"},
171
+ {file = "coverage-7.6.10-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:abb02e2f5a3187b2ac4cd46b8ced85a0858230b577ccb2c62c81482ca7d18852"},
172
+ {file = "coverage-7.6.10-cp312-cp312-win32.whl", hash = "sha256:55b201b97286cf61f5e76063f9e2a1d8d2972fc2fcfd2c1272530172fd28c359"},
173
+ {file = "coverage-7.6.10-cp312-cp312-win_amd64.whl", hash = "sha256:e4ae5ac5e0d1e4edfc9b4b57b4cbecd5bc266a6915c500f358817a8496739247"},
174
+ {file = "coverage-7.6.10-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:05fca8ba6a87aabdd2d30d0b6c838b50510b56cdcfc604d40760dae7153b73d9"},
175
+ {file = "coverage-7.6.10-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9e80eba8801c386f72e0712a0453431259c45c3249f0009aff537a517b52942b"},
176
+ {file = "coverage-7.6.10-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a372c89c939d57abe09e08c0578c1d212e7a678135d53aa16eec4430adc5e690"},
177
+ {file = "coverage-7.6.10-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ec22b5e7fe7a0fa8509181c4aac1db48f3dd4d3a566131b313d1efc102892c18"},
178
+ {file = "coverage-7.6.10-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26bcf5c4df41cad1b19c84af71c22cbc9ea9a547fc973f1f2cc9a290002c8b3c"},
179
+ {file = "coverage-7.6.10-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4e4630c26b6084c9b3cb53b15bd488f30ceb50b73c35c5ad7871b869cb7365fd"},
180
+ {file = "coverage-7.6.10-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2396e8116db77789f819d2bc8a7e200232b7a282c66e0ae2d2cd84581a89757e"},
181
+ {file = "coverage-7.6.10-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:79109c70cc0882e4d2d002fe69a24aa504dec0cc17169b3c7f41a1d341a73694"},
182
+ {file = "coverage-7.6.10-cp313-cp313-win32.whl", hash = "sha256:9e1747bab246d6ff2c4f28b4d186b205adced9f7bd9dc362051cc37c4a0c7bd6"},
183
+ {file = "coverage-7.6.10-cp313-cp313-win_amd64.whl", hash = "sha256:254f1a3b1eef5f7ed23ef265eaa89c65c8c5b6b257327c149db1ca9d4a35f25e"},
184
+ {file = "coverage-7.6.10-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2ccf240eb719789cedbb9fd1338055de2761088202a9a0b73032857e53f612fe"},
185
+ {file = "coverage-7.6.10-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:0c807ca74d5a5e64427c8805de15b9ca140bba13572d6d74e262f46f50b13273"},
186
+ {file = "coverage-7.6.10-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2bcfa46d7709b5a7ffe089075799b902020b62e7ee56ebaed2f4bdac04c508d8"},
187
+ {file = "coverage-7.6.10-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4e0de1e902669dccbf80b0415fb6b43d27edca2fbd48c74da378923b05316098"},
188
+ {file = "coverage-7.6.10-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3f7b444c42bbc533aaae6b5a2166fd1a797cdb5eb58ee51a92bee1eb94a1e1cb"},
189
+ {file = "coverage-7.6.10-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b330368cb99ef72fcd2dc3ed260adf67b31499584dc8a20225e85bfe6f6cfed0"},
190
+ {file = "coverage-7.6.10-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:9a7cfb50515f87f7ed30bc882f68812fd98bc2852957df69f3003d22a2aa0abf"},
191
+ {file = "coverage-7.6.10-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6f93531882a5f68c28090f901b1d135de61b56331bba82028489bc51bdd818d2"},
192
+ {file = "coverage-7.6.10-cp313-cp313t-win32.whl", hash = "sha256:89d76815a26197c858f53c7f6a656686ec392b25991f9e409bcef020cd532312"},
193
+ {file = "coverage-7.6.10-cp313-cp313t-win_amd64.whl", hash = "sha256:54a5f0f43950a36312155dae55c505a76cd7f2b12d26abeebbe7a0b36dbc868d"},
194
+ {file = "coverage-7.6.10-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:656c82b8a0ead8bba147de9a89bda95064874c91a3ed43a00e687f23cc19d53a"},
195
+ {file = "coverage-7.6.10-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ccc2b70a7ed475c68ceb548bf69cec1e27305c1c2606a5eb7c3afff56a1b3b27"},
196
+ {file = "coverage-7.6.10-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5e37dc41d57ceba70956fa2fc5b63c26dba863c946ace9705f8eca99daecdc4"},
197
+ {file = "coverage-7.6.10-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0aa9692b4fdd83a4647eeb7db46410ea1322b5ed94cd1715ef09d1d5922ba87f"},
198
+ {file = "coverage-7.6.10-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa744da1820678b475e4ba3dfd994c321c5b13381d1041fe9c608620e6676e25"},
199
+ {file = "coverage-7.6.10-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:c0b1818063dc9e9d838c09e3a473c1422f517889436dd980f5d721899e66f315"},
200
+ {file = "coverage-7.6.10-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:59af35558ba08b758aec4d56182b222976330ef8d2feacbb93964f576a7e7a90"},
201
+ {file = "coverage-7.6.10-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:7ed2f37cfce1ce101e6dffdfd1c99e729dd2ffc291d02d3e2d0af8b53d13840d"},
202
+ {file = "coverage-7.6.10-cp39-cp39-win32.whl", hash = "sha256:4bcc276261505d82f0ad426870c3b12cb177752834a633e737ec5ee79bbdff18"},
203
+ {file = "coverage-7.6.10-cp39-cp39-win_amd64.whl", hash = "sha256:457574f4599d2b00f7f637a0700a6422243b3565509457b2dbd3f50703e11f59"},
204
+ {file = "coverage-7.6.10-pp39.pp310-none-any.whl", hash = "sha256:fd34e7b3405f0cc7ab03d54a334c17a9e802897580d964bd8c2001f4b9fd488f"},
205
+ {file = "coverage-7.6.10.tar.gz", hash = "sha256:7fb105327c8f8f0682e29843e2ff96af9dcbe5bab8eeb4b398c6a33a16d80a23"},
206
+ ]
207
+
208
+ [[package]]
209
+ name = "coverage"
210
+ version = "7.6.10"
211
+ extras = ["toml"]
212
+ requires_python = ">=3.9"
213
+ summary = "Code coverage measurement for Python"
214
+ groups = ["dev"]
215
+ dependencies = [
216
+ "coverage==7.6.10",
217
+ "tomli; python_full_version <= \"3.11.0a6\"",
218
+ ]
219
+ files = [
220
+ {file = "coverage-7.6.10-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5c912978f7fbf47ef99cec50c4401340436d200d41d714c7a4766f377c5b7b78"},
221
+ {file = "coverage-7.6.10-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a01ec4af7dfeb96ff0078ad9a48810bb0cc8abcb0115180c6013a6b26237626c"},
222
+ {file = "coverage-7.6.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a3b204c11e2b2d883946fe1d97f89403aa1811df28ce0447439178cc7463448a"},
223
+ {file = "coverage-7.6.10-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:32ee6d8491fcfc82652a37109f69dee9a830e9379166cb73c16d8dc5c2915165"},
224
+ {file = "coverage-7.6.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:675cefc4c06e3b4c876b85bfb7c59c5e2218167bbd4da5075cbe3b5790a28988"},
225
+ {file = "coverage-7.6.10-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f4f620668dbc6f5e909a0946a877310fb3d57aea8198bde792aae369ee1c23b5"},
226
+ {file = "coverage-7.6.10-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:4eea95ef275de7abaef630c9b2c002ffbc01918b726a39f5a4353916ec72d2f3"},
227
+ {file = "coverage-7.6.10-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e2f0280519e42b0a17550072861e0bc8a80a0870de260f9796157d3fca2733c5"},
228
+ {file = "coverage-7.6.10-cp310-cp310-win32.whl", hash = "sha256:bc67deb76bc3717f22e765ab3e07ee9c7a5e26b9019ca19a3b063d9f4b874244"},
229
+ {file = "coverage-7.6.10-cp310-cp310-win_amd64.whl", hash = "sha256:0f460286cb94036455e703c66988851d970fdfd8acc2a1122ab7f4f904e4029e"},
230
+ {file = "coverage-7.6.10-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ea3c8f04b3e4af80e17bab607c386a830ffc2fb88a5484e1df756478cf70d1d3"},
231
+ {file = "coverage-7.6.10-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:507a20fc863cae1d5720797761b42d2d87a04b3e5aeb682ef3b7332e90598f43"},
232
+ {file = "coverage-7.6.10-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d37a84878285b903c0fe21ac8794c6dab58150e9359f1aaebbeddd6412d53132"},
233
+ {file = "coverage-7.6.10-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a534738b47b0de1995f85f582d983d94031dffb48ab86c95bdf88dc62212142f"},
234
+ {file = "coverage-7.6.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0d7a2bf79378d8fb8afaa994f91bfd8215134f8631d27eba3e0e2c13546ce994"},
235
+ {file = "coverage-7.6.10-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6713ba4b4ebc330f3def51df1d5d38fad60b66720948112f114968feb52d3f99"},
236
+ {file = "coverage-7.6.10-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ab32947f481f7e8c763fa2c92fd9f44eeb143e7610c4ca9ecd6a36adab4081bd"},
237
+ {file = "coverage-7.6.10-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7bbd8c8f1b115b892e34ba66a097b915d3871db7ce0e6b9901f462ff3a975377"},
238
+ {file = "coverage-7.6.10-cp311-cp311-win32.whl", hash = "sha256:299e91b274c5c9cdb64cbdf1b3e4a8fe538a7a86acdd08fae52301b28ba297f8"},
239
+ {file = "coverage-7.6.10-cp311-cp311-win_amd64.whl", hash = "sha256:489a01f94aa581dbd961f306e37d75d4ba16104bbfa2b0edb21d29b73be83609"},
240
+ {file = "coverage-7.6.10-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:27c6e64726b307782fa5cbe531e7647aee385a29b2107cd87ba7c0105a5d3853"},
241
+ {file = "coverage-7.6.10-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c56e097019e72c373bae32d946ecf9858fda841e48d82df7e81c63ac25554078"},
242
+ {file = "coverage-7.6.10-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c7827a5bc7bdb197b9e066cdf650b2887597ad124dd99777332776f7b7c7d0d0"},
243
+ {file = "coverage-7.6.10-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:204a8238afe787323a8b47d8be4df89772d5c1e4651b9ffa808552bdf20e1d50"},
244
+ {file = "coverage-7.6.10-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e67926f51821b8e9deb6426ff3164870976fe414d033ad90ea75e7ed0c2e5022"},
245
+ {file = "coverage-7.6.10-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e78b270eadb5702938c3dbe9367f878249b5ef9a2fcc5360ac7bff694310d17b"},
246
+ {file = "coverage-7.6.10-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:714f942b9c15c3a7a5fe6876ce30af831c2ad4ce902410b7466b662358c852c0"},
247
+ {file = "coverage-7.6.10-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:abb02e2f5a3187b2ac4cd46b8ced85a0858230b577ccb2c62c81482ca7d18852"},
248
+ {file = "coverage-7.6.10-cp312-cp312-win32.whl", hash = "sha256:55b201b97286cf61f5e76063f9e2a1d8d2972fc2fcfd2c1272530172fd28c359"},
249
+ {file = "coverage-7.6.10-cp312-cp312-win_amd64.whl", hash = "sha256:e4ae5ac5e0d1e4edfc9b4b57b4cbecd5bc266a6915c500f358817a8496739247"},
250
+ {file = "coverage-7.6.10-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:05fca8ba6a87aabdd2d30d0b6c838b50510b56cdcfc604d40760dae7153b73d9"},
251
+ {file = "coverage-7.6.10-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9e80eba8801c386f72e0712a0453431259c45c3249f0009aff537a517b52942b"},
252
+ {file = "coverage-7.6.10-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a372c89c939d57abe09e08c0578c1d212e7a678135d53aa16eec4430adc5e690"},
253
+ {file = "coverage-7.6.10-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ec22b5e7fe7a0fa8509181c4aac1db48f3dd4d3a566131b313d1efc102892c18"},
254
+ {file = "coverage-7.6.10-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26bcf5c4df41cad1b19c84af71c22cbc9ea9a547fc973f1f2cc9a290002c8b3c"},
255
+ {file = "coverage-7.6.10-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4e4630c26b6084c9b3cb53b15bd488f30ceb50b73c35c5ad7871b869cb7365fd"},
256
+ {file = "coverage-7.6.10-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2396e8116db77789f819d2bc8a7e200232b7a282c66e0ae2d2cd84581a89757e"},
257
+ {file = "coverage-7.6.10-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:79109c70cc0882e4d2d002fe69a24aa504dec0cc17169b3c7f41a1d341a73694"},
258
+ {file = "coverage-7.6.10-cp313-cp313-win32.whl", hash = "sha256:9e1747bab246d6ff2c4f28b4d186b205adced9f7bd9dc362051cc37c4a0c7bd6"},
259
+ {file = "coverage-7.6.10-cp313-cp313-win_amd64.whl", hash = "sha256:254f1a3b1eef5f7ed23ef265eaa89c65c8c5b6b257327c149db1ca9d4a35f25e"},
260
+ {file = "coverage-7.6.10-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2ccf240eb719789cedbb9fd1338055de2761088202a9a0b73032857e53f612fe"},
261
+ {file = "coverage-7.6.10-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:0c807ca74d5a5e64427c8805de15b9ca140bba13572d6d74e262f46f50b13273"},
262
+ {file = "coverage-7.6.10-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2bcfa46d7709b5a7ffe089075799b902020b62e7ee56ebaed2f4bdac04c508d8"},
263
+ {file = "coverage-7.6.10-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4e0de1e902669dccbf80b0415fb6b43d27edca2fbd48c74da378923b05316098"},
264
+ {file = "coverage-7.6.10-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3f7b444c42bbc533aaae6b5a2166fd1a797cdb5eb58ee51a92bee1eb94a1e1cb"},
265
+ {file = "coverage-7.6.10-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b330368cb99ef72fcd2dc3ed260adf67b31499584dc8a20225e85bfe6f6cfed0"},
266
+ {file = "coverage-7.6.10-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:9a7cfb50515f87f7ed30bc882f68812fd98bc2852957df69f3003d22a2aa0abf"},
267
+ {file = "coverage-7.6.10-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6f93531882a5f68c28090f901b1d135de61b56331bba82028489bc51bdd818d2"},
268
+ {file = "coverage-7.6.10-cp313-cp313t-win32.whl", hash = "sha256:89d76815a26197c858f53c7f6a656686ec392b25991f9e409bcef020cd532312"},
269
+ {file = "coverage-7.6.10-cp313-cp313t-win_amd64.whl", hash = "sha256:54a5f0f43950a36312155dae55c505a76cd7f2b12d26abeebbe7a0b36dbc868d"},
270
+ {file = "coverage-7.6.10-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:656c82b8a0ead8bba147de9a89bda95064874c91a3ed43a00e687f23cc19d53a"},
271
+ {file = "coverage-7.6.10-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ccc2b70a7ed475c68ceb548bf69cec1e27305c1c2606a5eb7c3afff56a1b3b27"},
272
+ {file = "coverage-7.6.10-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5e37dc41d57ceba70956fa2fc5b63c26dba863c946ace9705f8eca99daecdc4"},
273
+ {file = "coverage-7.6.10-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0aa9692b4fdd83a4647eeb7db46410ea1322b5ed94cd1715ef09d1d5922ba87f"},
274
+ {file = "coverage-7.6.10-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa744da1820678b475e4ba3dfd994c321c5b13381d1041fe9c608620e6676e25"},
275
+ {file = "coverage-7.6.10-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:c0b1818063dc9e9d838c09e3a473c1422f517889436dd980f5d721899e66f315"},
276
+ {file = "coverage-7.6.10-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:59af35558ba08b758aec4d56182b222976330ef8d2feacbb93964f576a7e7a90"},
277
+ {file = "coverage-7.6.10-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:7ed2f37cfce1ce101e6dffdfd1c99e729dd2ffc291d02d3e2d0af8b53d13840d"},
278
+ {file = "coverage-7.6.10-cp39-cp39-win32.whl", hash = "sha256:4bcc276261505d82f0ad426870c3b12cb177752834a633e737ec5ee79bbdff18"},
279
+ {file = "coverage-7.6.10-cp39-cp39-win_amd64.whl", hash = "sha256:457574f4599d2b00f7f637a0700a6422243b3565509457b2dbd3f50703e11f59"},
280
+ {file = "coverage-7.6.10-pp39.pp310-none-any.whl", hash = "sha256:fd34e7b3405f0cc7ab03d54a334c17a9e802897580d964bd8c2001f4b9fd488f"},
281
+ {file = "coverage-7.6.10.tar.gz", hash = "sha256:7fb105327c8f8f0682e29843e2ff96af9dcbe5bab8eeb4b398c6a33a16d80a23"},
282
+ ]
283
+
284
+ [[package]]
285
+ name = "docutils"
286
+ version = "0.19"
287
+ requires_python = ">=3.7"
288
+ summary = "Docutils -- Python Documentation Utilities"
289
+ groups = ["dev"]
290
+ files = [
291
+ {file = "docutils-0.19-py3-none-any.whl", hash = "sha256:5e1de4d849fee02c63b040a4a3fd567f4ab104defd8a5511fbbc24a8a017efbc"},
292
+ {file = "docutils-0.19.tar.gz", hash = "sha256:33995a6753c30b7f577febfc2c50411fec6aac7f7ffeb7c4cfe5991072dcf9e6"},
293
+ ]
294
+
295
+ [[package]]
296
+ name = "exceptiongroup"
297
+ version = "1.2.2"
298
+ requires_python = ">=3.7"
299
+ summary = "Backport of PEP 654 (exception groups)"
300
+ groups = ["dev"]
301
+ marker = "python_version < \"3.11\""
302
+ files = [
303
+ {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"},
304
+ {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"},
305
+ ]
306
+
307
+ [[package]]
308
+ name = "idna"
309
+ version = "3.10"
310
+ requires_python = ">=3.6"
311
+ summary = "Internationalized Domain Names in Applications (IDNA)"
312
+ groups = ["default", "dev"]
313
+ files = [
314
+ {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"},
315
+ {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"},
316
+ ]
317
+
318
+ [[package]]
319
+ name = "imagesize"
320
+ version = "1.4.1"
321
+ requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
322
+ summary = "Getting image size from png/jpeg/jpeg2000/gif file"
323
+ groups = ["dev"]
324
+ files = [
325
+ {file = "imagesize-1.4.1-py2.py3-none-any.whl", hash = "sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b"},
326
+ {file = "imagesize-1.4.1.tar.gz", hash = "sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a"},
327
+ ]
328
+
329
+ [[package]]
330
+ name = "iniconfig"
331
+ version = "2.0.0"
332
+ requires_python = ">=3.7"
333
+ summary = "brain-dead simple config-ini parsing"
334
+ groups = ["dev"]
335
+ files = [
336
+ {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"},
337
+ {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"},
338
+ ]
339
+
340
+ [[package]]
341
+ name = "jinja2"
342
+ version = "3.1.5"
343
+ requires_python = ">=3.7"
344
+ summary = "A very fast and expressive template engine."
345
+ groups = ["dev"]
346
+ dependencies = [
347
+ "MarkupSafe>=2.0",
348
+ ]
349
+ files = [
350
+ {file = "jinja2-3.1.5-py3-none-any.whl", hash = "sha256:aba0f4dc9ed8013c424088f68a5c226f7d6097ed89b246d7749c2ec4175c6adb"},
351
+ {file = "jinja2-3.1.5.tar.gz", hash = "sha256:8fefff8dc3034e27bb80d67c671eb8a9bc424c0ef4c0826edbff304cceff43bb"},
352
+ ]
353
+
354
+ [[package]]
355
+ name = "markupsafe"
356
+ version = "3.0.2"
357
+ requires_python = ">=3.9"
358
+ summary = "Safely add untrusted strings to HTML/XML markup."
359
+ groups = ["dev"]
360
+ files = [
361
+ {file = "MarkupSafe-3.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7e94c425039cde14257288fd61dcfb01963e658efbc0ff54f5306b06054700f8"},
362
+ {file = "MarkupSafe-3.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9e2d922824181480953426608b81967de705c3cef4d1af983af849d7bd619158"},
363
+ {file = "MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:38a9ef736c01fccdd6600705b09dc574584b89bea478200c5fbf112a6b0d5579"},
364
+ {file = "MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bbcb445fa71794da8f178f0f6d66789a28d7319071af7a496d4d507ed566270d"},
365
+ {file = "MarkupSafe-3.0.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:57cb5a3cf367aeb1d316576250f65edec5bb3be939e9247ae594b4bcbc317dfb"},
366
+ {file = "MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3809ede931876f5b2ec92eef964286840ed3540dadf803dd570c3b7e13141a3b"},
367
+ {file = "MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e07c3764494e3776c602c1e78e298937c3315ccc9043ead7e685b7f2b8d47b3c"},
368
+ {file = "MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b424c77b206d63d500bcb69fa55ed8d0e6a3774056bdc4839fc9298a7edca171"},
369
+ {file = "MarkupSafe-3.0.2-cp310-cp310-win32.whl", hash = "sha256:fcabf5ff6eea076f859677f5f0b6b5c1a51e70a376b0579e0eadef8db48c6b50"},
370
+ {file = "MarkupSafe-3.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:6af100e168aa82a50e186c82875a5893c5597a0c1ccdb0d8b40240b1f28b969a"},
371
+ {file = "MarkupSafe-3.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9025b4018f3a1314059769c7bf15441064b2207cb3f065e6ea1e7359cb46db9d"},
372
+ {file = "MarkupSafe-3.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:93335ca3812df2f366e80509ae119189886b0f3c2b81325d39efdb84a1e2ae93"},
373
+ {file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cb8438c3cbb25e220c2ab33bb226559e7afb3baec11c4f218ffa7308603c832"},
374
+ {file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a123e330ef0853c6e822384873bef7507557d8e4a082961e1defa947aa59ba84"},
375
+ {file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e084f686b92e5b83186b07e8a17fc09e38fff551f3602b249881fec658d3eca"},
376
+ {file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d8213e09c917a951de9d09ecee036d5c7d36cb6cb7dbaece4c71a60d79fb9798"},
377
+ {file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5b02fb34468b6aaa40dfc198d813a641e3a63b98c2b05a16b9f80b7ec314185e"},
378
+ {file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4"},
379
+ {file = "MarkupSafe-3.0.2-cp311-cp311-win32.whl", hash = "sha256:6c89876f41da747c8d3677a2b540fb32ef5715f97b66eeb0c6b66f5e3ef6f59d"},
380
+ {file = "MarkupSafe-3.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:70a87b411535ccad5ef2f1df5136506a10775d267e197e4cf531ced10537bd6b"},
381
+ {file = "MarkupSafe-3.0.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:9778bd8ab0a994ebf6f84c2b949e65736d5575320a17ae8984a77fab08db94cf"},
382
+ {file = "MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:846ade7b71e3536c4e56b386c2a47adf5741d2d8b94ec9dc3e92e5e1ee1e2225"},
383
+ {file = "MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c99d261bd2d5f6b59325c92c73df481e05e57f19837bdca8413b9eac4bd8028"},
384
+ {file = "MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e17c96c14e19278594aa4841ec148115f9c7615a47382ecb6b82bd8fea3ab0c8"},
385
+ {file = "MarkupSafe-3.0.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:88416bd1e65dcea10bc7569faacb2c20ce071dd1f87539ca2ab364bf6231393c"},
386
+ {file = "MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2181e67807fc2fa785d0592dc2d6206c019b9502410671cc905d132a92866557"},
387
+ {file = "MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:52305740fe773d09cffb16f8ed0427942901f00adedac82ec8b67752f58a1b22"},
388
+ {file = "MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ad10d3ded218f1039f11a75f8091880239651b52e9bb592ca27de44eed242a48"},
389
+ {file = "MarkupSafe-3.0.2-cp312-cp312-win32.whl", hash = "sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30"},
390
+ {file = "MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:8e06879fc22a25ca47312fbe7c8264eb0b662f6db27cb2d3bbbc74b1df4b9b87"},
391
+ {file = "MarkupSafe-3.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ba9527cdd4c926ed0760bc301f6728ef34d841f405abf9d4f959c478421e4efd"},
392
+ {file = "MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f8b3d067f2e40fe93e1ccdd6b2e1d16c43140e76f02fb1319a05cf2b79d99430"},
393
+ {file = "MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:569511d3b58c8791ab4c2e1285575265991e6d8f8700c7be0e88f86cb0672094"},
394
+ {file = "MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15ab75ef81add55874e7ab7055e9c397312385bd9ced94920f2802310c930396"},
395
+ {file = "MarkupSafe-3.0.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3818cb119498c0678015754eba762e0d61e5b52d34c8b13d770f0719f7b1d79"},
396
+ {file = "MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:cdb82a876c47801bb54a690c5ae105a46b392ac6099881cdfb9f6e95e4014c6a"},
397
+ {file = "MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cabc348d87e913db6ab4aa100f01b08f481097838bdddf7c7a84b7575b7309ca"},
398
+ {file = "MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:444dcda765c8a838eaae23112db52f1efaf750daddb2d9ca300bcae1039adc5c"},
399
+ {file = "MarkupSafe-3.0.2-cp313-cp313-win32.whl", hash = "sha256:bcf3e58998965654fdaff38e58584d8937aa3096ab5354d493c77d1fdd66d7a1"},
400
+ {file = "MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:e6a2a455bd412959b57a172ce6328d2dd1f01cb2135efda2e4576e8a23fa3b0f"},
401
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:b5a6b3ada725cea8a5e634536b1b01c30bcdcd7f9c6fff4151548d5bf6b3a36c"},
402
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a904af0a6162c73e3edcb969eeeb53a63ceeb5d8cf642fade7d39e7963a22ddb"},
403
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa4e5faecf353ed117801a068ebab7b7e09ffb6e1d5e412dc852e0da018126c"},
404
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0ef13eaeee5b615fb07c9a7dadb38eac06a0608b41570d8ade51c56539e509d"},
405
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d16a81a06776313e817c951135cf7340a3e91e8c1ff2fac444cfd75fffa04afe"},
406
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6381026f158fdb7c72a168278597a5e3a5222e83ea18f543112b2662a9b699c5"},
407
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3d79d162e7be8f996986c064d1c7c817f6df3a77fe3d6859f6f9e7be4b8c213a"},
408
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:131a3c7689c85f5ad20f9f6fb1b866f402c445b220c19fe4308c0b147ccd2ad9"},
409
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-win32.whl", hash = "sha256:ba8062ed2cf21c07a9e295d5b8a2a5ce678b913b45fdf68c32d95d6c1291e0b6"},
410
+ {file = "MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f"},
411
+ {file = "MarkupSafe-3.0.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:eaa0a10b7f72326f1372a713e73c3f739b524b3af41feb43e4921cb529f5929a"},
412
+ {file = "MarkupSafe-3.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:48032821bbdf20f5799ff537c7ac3d1fba0ba032cfc06194faffa8cda8b560ff"},
413
+ {file = "MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a9d3f5f0901fdec14d8d2f66ef7d035f2157240a433441719ac9a3fba440b13"},
414
+ {file = "MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88b49a3b9ff31e19998750c38e030fc7bb937398b1f78cfa599aaef92d693144"},
415
+ {file = "MarkupSafe-3.0.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cfad01eed2c2e0c01fd0ecd2ef42c492f7f93902e39a42fc9ee1692961443a29"},
416
+ {file = "MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:1225beacc926f536dc82e45f8a4d68502949dc67eea90eab715dea3a21c1b5f0"},
417
+ {file = "MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:3169b1eefae027567d1ce6ee7cae382c57fe26e82775f460f0b2778beaad66c0"},
418
+ {file = "MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:eb7972a85c54febfb25b5c4b4f3af4dcc731994c7da0d8a0b4a6eb0640e1d178"},
419
+ {file = "MarkupSafe-3.0.2-cp39-cp39-win32.whl", hash = "sha256:8c4e8c3ce11e1f92f6536ff07154f9d49677ebaaafc32db9db4620bc11ed480f"},
420
+ {file = "MarkupSafe-3.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:6e296a513ca3d94054c2c881cc913116e90fd030ad1c656b3869762b754f5f8a"},
421
+ {file = "markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0"},
422
+ ]
423
+
424
+ [[package]]
425
+ name = "mypy"
426
+ version = "1.15.0"
427
+ requires_python = ">=3.9"
428
+ summary = "Optional static typing for Python"
429
+ groups = ["dev"]
430
+ dependencies = [
431
+ "mypy-extensions>=1.0.0",
432
+ "tomli>=1.1.0; python_version < \"3.11\"",
433
+ "typing-extensions>=4.6.0",
434
+ ]
435
+ files = [
436
+ {file = "mypy-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:979e4e1a006511dacf628e36fadfecbcc0160a8af6ca7dad2f5025529e082c13"},
437
+ {file = "mypy-1.15.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c4bb0e1bd29f7d34efcccd71cf733580191e9a264a2202b0239da95984c5b559"},
438
+ {file = "mypy-1.15.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:be68172e9fd9ad8fb876c6389f16d1c1b5f100ffa779f77b1fb2176fcc9ab95b"},
439
+ {file = "mypy-1.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c7be1e46525adfa0d97681432ee9fcd61a3964c2446795714699a998d193f1a3"},
440
+ {file = "mypy-1.15.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:2e2c2e6d3593f6451b18588848e66260ff62ccca522dd231cd4dd59b0160668b"},
441
+ {file = "mypy-1.15.0-cp310-cp310-win_amd64.whl", hash = "sha256:6983aae8b2f653e098edb77f893f7b6aca69f6cffb19b2cc7443f23cce5f4828"},
442
+ {file = "mypy-1.15.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2922d42e16d6de288022e5ca321cd0618b238cfc5570e0263e5ba0a77dbef56f"},
443
+ {file = "mypy-1.15.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2ee2d57e01a7c35de00f4634ba1bbf015185b219e4dc5909e281016df43f5ee5"},
444
+ {file = "mypy-1.15.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:973500e0774b85d9689715feeffcc980193086551110fd678ebe1f4342fb7c5e"},
445
+ {file = "mypy-1.15.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5a95fb17c13e29d2d5195869262f8125dfdb5c134dc8d9a9d0aecf7525b10c2c"},
446
+ {file = "mypy-1.15.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1905f494bfd7d85a23a88c5d97840888a7bd516545fc5aaedff0267e0bb54e2f"},
447
+ {file = "mypy-1.15.0-cp311-cp311-win_amd64.whl", hash = "sha256:c9817fa23833ff189db061e6d2eff49b2f3b6ed9856b4a0a73046e41932d744f"},
448
+ {file = "mypy-1.15.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:aea39e0583d05124836ea645f412e88a5c7d0fd77a6d694b60d9b6b2d9f184fd"},
449
+ {file = "mypy-1.15.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2f2147ab812b75e5b5499b01ade1f4a81489a147c01585cda36019102538615f"},
450
+ {file = "mypy-1.15.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ce436f4c6d218a070048ed6a44c0bbb10cd2cc5e272b29e7845f6a2f57ee4464"},
451
+ {file = "mypy-1.15.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8023ff13985661b50a5928fc7a5ca15f3d1affb41e5f0a9952cb68ef090b31ee"},
452
+ {file = "mypy-1.15.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1124a18bc11a6a62887e3e137f37f53fbae476dc36c185d549d4f837a2a6a14e"},
453
+ {file = "mypy-1.15.0-cp312-cp312-win_amd64.whl", hash = "sha256:171a9ca9a40cd1843abeca0e405bc1940cd9b305eaeea2dda769ba096932bb22"},
454
+ {file = "mypy-1.15.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:93faf3fdb04768d44bf28693293f3904bbb555d076b781ad2530214ee53e3445"},
455
+ {file = "mypy-1.15.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:811aeccadfb730024c5d3e326b2fbe9249bb7413553f15499a4050f7c30e801d"},
456
+ {file = "mypy-1.15.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:98b7b9b9aedb65fe628c62a6dc57f6d5088ef2dfca37903a7d9ee374d03acca5"},
457
+ {file = "mypy-1.15.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c43a7682e24b4f576d93072216bf56eeff70d9140241f9edec0c104d0c515036"},
458
+ {file = "mypy-1.15.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:baefc32840a9f00babd83251560e0ae1573e2f9d1b067719479bfb0e987c6357"},
459
+ {file = "mypy-1.15.0-cp313-cp313-win_amd64.whl", hash = "sha256:b9378e2c00146c44793c98b8d5a61039a048e31f429fb0eb546d93f4b000bedf"},
460
+ {file = "mypy-1.15.0-py3-none-any.whl", hash = "sha256:5469affef548bd1895d86d3bf10ce2b44e33d86923c29e4d675b3e323437ea3e"},
461
+ {file = "mypy-1.15.0.tar.gz", hash = "sha256:404534629d51d3efea5c800ee7c42b72a6554d6c400e6a79eafe15d11341fd43"},
462
+ ]
463
+
464
+ [[package]]
465
+ name = "mypy-extensions"
466
+ version = "1.0.0"
467
+ requires_python = ">=3.5"
468
+ summary = "Type system extensions for programs checked with the mypy type checker."
469
+ groups = ["dev"]
470
+ files = [
471
+ {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"},
472
+ {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"},
473
+ ]
474
+
475
+ [[package]]
476
+ name = "packaging"
477
+ version = "24.2"
478
+ requires_python = ">=3.8"
479
+ summary = "Core utilities for Python packages"
480
+ groups = ["dev"]
481
+ files = [
482
+ {file = "packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759"},
483
+ {file = "packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f"},
484
+ ]
485
+
486
+ [[package]]
487
+ name = "pluggy"
488
+ version = "1.5.0"
489
+ requires_python = ">=3.8"
490
+ summary = "plugin and hook calling mechanisms for python"
491
+ groups = ["dev"]
492
+ files = [
493
+ {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"},
494
+ {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"},
495
+ ]
496
+
497
+ [[package]]
498
+ name = "pygments"
499
+ version = "2.19.1"
500
+ requires_python = ">=3.8"
501
+ summary = "Pygments is a syntax highlighting package written in Python."
502
+ groups = ["dev"]
503
+ files = [
504
+ {file = "pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c"},
505
+ {file = "pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f"},
506
+ ]
507
+
508
+ [[package]]
509
+ name = "pytest"
510
+ version = "8.3.4"
511
+ requires_python = ">=3.8"
512
+ summary = "pytest: simple powerful testing with Python"
513
+ groups = ["dev"]
514
+ dependencies = [
515
+ "colorama; sys_platform == \"win32\"",
516
+ "exceptiongroup>=1.0.0rc8; python_version < \"3.11\"",
517
+ "iniconfig",
518
+ "packaging",
519
+ "pluggy<2,>=1.5",
520
+ "tomli>=1; python_version < \"3.11\"",
521
+ ]
522
+ files = [
523
+ {file = "pytest-8.3.4-py3-none-any.whl", hash = "sha256:50e16d954148559c9a74109af1eaf0c945ba2d8f30f0a3d3335edde19788b6f6"},
524
+ {file = "pytest-8.3.4.tar.gz", hash = "sha256:965370d062bce11e73868e0335abac31b4d3de0e82f4007408d242b4f8610761"},
525
+ ]
526
+
527
+ [[package]]
528
+ name = "pytest-cov"
529
+ version = "6.0.0"
530
+ requires_python = ">=3.9"
531
+ summary = "Pytest plugin for measuring coverage."
532
+ groups = ["dev"]
533
+ dependencies = [
534
+ "coverage[toml]>=7.5",
535
+ "pytest>=4.6",
536
+ ]
537
+ files = [
538
+ {file = "pytest-cov-6.0.0.tar.gz", hash = "sha256:fde0b595ca248bb8e2d76f020b465f3b107c9632e6a1d1705f17834c89dcadc0"},
539
+ {file = "pytest_cov-6.0.0-py3-none-any.whl", hash = "sha256:eee6f1b9e61008bd34975a4d5bab25801eb31898b032dd55addc93e96fcaaa35"},
540
+ ]
541
+
542
+ [[package]]
543
+ name = "pytest-retry"
544
+ version = "1.7.0"
545
+ requires_python = ">=3.9"
546
+ summary = "Adds the ability to retry flaky tests in CI environments"
547
+ groups = ["dev"]
548
+ dependencies = [
549
+ "pytest>=7.0.0",
550
+ ]
551
+ files = [
552
+ {file = "pytest_retry-1.7.0-py3-none-any.whl", hash = "sha256:a2dac85b79a4e2375943f1429479c65beb6c69553e7dae6b8332be47a60954f4"},
553
+ {file = "pytest_retry-1.7.0.tar.gz", hash = "sha256:f8d52339f01e949df47c11ba9ee8d5b362f5824dff580d3870ec9ae0057df80f"},
554
+ ]
555
+
556
+ [[package]]
557
+ name = "requests"
558
+ version = "2.32.3"
559
+ requires_python = ">=3.8"
560
+ summary = "Python HTTP for Humans."
561
+ groups = ["default", "dev"]
562
+ dependencies = [
563
+ "certifi>=2017.4.17",
564
+ "charset-normalizer<4,>=2",
565
+ "idna<4,>=2.5",
566
+ "urllib3<3,>=1.21.1",
567
+ ]
568
+ files = [
569
+ {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"},
570
+ {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"},
571
+ ]
572
+
573
+ [[package]]
574
+ name = "ruff"
575
+ version = "0.11.5"
576
+ requires_python = ">=3.7"
577
+ summary = "An extremely fast Python linter and code formatter, written in Rust."
578
+ groups = ["dev"]
579
+ files = [
580
+ {file = "ruff-0.11.5-py3-none-linux_armv6l.whl", hash = "sha256:2561294e108eb648e50f210671cc56aee590fb6167b594144401532138c66c7b"},
581
+ {file = "ruff-0.11.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:ac12884b9e005c12d0bd121f56ccf8033e1614f736f766c118ad60780882a077"},
582
+ {file = "ruff-0.11.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:4bfd80a6ec559a5eeb96c33f832418bf0fb96752de0539905cf7b0cc1d31d779"},
583
+ {file = "ruff-0.11.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0947c0a1afa75dcb5db4b34b070ec2bccee869d40e6cc8ab25aca11a7d527794"},
584
+ {file = "ruff-0.11.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ad871ff74b5ec9caa66cb725b85d4ef89b53f8170f47c3406e32ef040400b038"},
585
+ {file = "ruff-0.11.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e6cf918390cfe46d240732d4d72fa6e18e528ca1f60e318a10835cf2fa3dc19f"},
586
+ {file = "ruff-0.11.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:56145ee1478582f61c08f21076dc59153310d606ad663acc00ea3ab5b2125f82"},
587
+ {file = "ruff-0.11.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e5f66f8f1e8c9fc594cbd66fbc5f246a8d91f916cb9667e80208663ec3728304"},
588
+ {file = "ruff-0.11.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:80b4df4d335a80315ab9afc81ed1cff62be112bd165e162b5eed8ac55bfc8470"},
589
+ {file = "ruff-0.11.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3068befab73620b8a0cc2431bd46b3cd619bc17d6f7695a3e1bb166b652c382a"},
590
+ {file = "ruff-0.11.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:f5da2e710a9641828e09aa98b92c9ebbc60518fdf3921241326ca3e8f8e55b8b"},
591
+ {file = "ruff-0.11.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:ef39f19cb8ec98cbc762344921e216f3857a06c47412030374fffd413fb8fd3a"},
592
+ {file = "ruff-0.11.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:b2a7cedf47244f431fd11aa5a7e2806dda2e0c365873bda7834e8f7d785ae159"},
593
+ {file = "ruff-0.11.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:81be52e7519f3d1a0beadcf8e974715b2dfc808ae8ec729ecfc79bddf8dbb783"},
594
+ {file = "ruff-0.11.5-py3-none-win32.whl", hash = "sha256:e268da7b40f56e3eca571508a7e567e794f9bfcc0f412c4b607931d3af9c4afe"},
595
+ {file = "ruff-0.11.5-py3-none-win_amd64.whl", hash = "sha256:6c6dc38af3cfe2863213ea25b6dc616d679205732dc0fb673356c2d69608f800"},
596
+ {file = "ruff-0.11.5-py3-none-win_arm64.whl", hash = "sha256:67e241b4314f4eacf14a601d586026a962f4002a475aa702c69980a38087aa4e"},
597
+ {file = "ruff-0.11.5.tar.gz", hash = "sha256:cae2e2439cb88853e421901ec040a758960b576126dab520fa08e9de431d1bef"},
598
+ ]
599
+
600
+ [[package]]
601
+ name = "snowballstemmer"
602
+ version = "2.2.0"
603
+ summary = "This package provides 29 stemmers for 28 languages generated from Snowball algorithms."
604
+ groups = ["dev"]
605
+ files = [
606
+ {file = "snowballstemmer-2.2.0-py2.py3-none-any.whl", hash = "sha256:c8e1716e83cc398ae16824e5572ae04e0d9fc2c6b985fb0f900f5f0c96ecba1a"},
607
+ {file = "snowballstemmer-2.2.0.tar.gz", hash = "sha256:09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1"},
608
+ ]
609
+
610
+ [[package]]
611
+ name = "sphinx"
612
+ version = "6.2.1"
613
+ requires_python = ">=3.8"
614
+ summary = "Python documentation generator"
615
+ groups = ["dev"]
616
+ dependencies = [
617
+ "Jinja2>=3.0",
618
+ "Pygments>=2.13",
619
+ "alabaster<0.8,>=0.7",
620
+ "babel>=2.9",
621
+ "colorama>=0.4.5; sys_platform == \"win32\"",
622
+ "docutils<0.20,>=0.18.1",
623
+ "imagesize>=1.3",
624
+ "importlib-metadata>=4.8; python_version < \"3.10\"",
625
+ "packaging>=21.0",
626
+ "requests>=2.25.0",
627
+ "snowballstemmer>=2.0",
628
+ "sphinxcontrib-applehelp",
629
+ "sphinxcontrib-devhelp",
630
+ "sphinxcontrib-htmlhelp>=2.0.0",
631
+ "sphinxcontrib-jsmath",
632
+ "sphinxcontrib-qthelp",
633
+ "sphinxcontrib-serializinghtml>=1.1.5",
634
+ ]
635
+ files = [
636
+ {file = "Sphinx-6.2.1.tar.gz", hash = "sha256:6d56a34697bb749ffa0152feafc4b19836c755d90a7c59b72bc7dfd371b9cc6b"},
637
+ {file = "sphinx-6.2.1-py3-none-any.whl", hash = "sha256:97787ff1fa3256a3eef9eda523a63dbf299f7b47e053cfcf684a1c2a8380c912"},
638
+ ]
639
+
640
+ [[package]]
641
+ name = "sphinx-autodoc-typehints"
642
+ version = "1.23.0"
643
+ requires_python = ">=3.7"
644
+ summary = "Type hints (PEP 484) support for the Sphinx autodoc extension"
645
+ groups = ["dev"]
646
+ dependencies = [
647
+ "sphinx>=5.3",
648
+ ]
649
+ files = [
650
+ {file = "sphinx_autodoc_typehints-1.23.0-py3-none-any.whl", hash = "sha256:ac099057e66b09e51b698058ba7dd76e57e1fe696cd91b54e121d3dad188f91d"},
651
+ {file = "sphinx_autodoc_typehints-1.23.0.tar.gz", hash = "sha256:5d44e2996633cdada499b6d27a496ddf9dbc95dd1f0f09f7b37940249e61f6e9"},
652
+ ]
653
+
654
+ [[package]]
655
+ name = "sphinx-rtd-theme"
656
+ version = "3.0.2"
657
+ requires_python = ">=3.8"
658
+ summary = "Read the Docs theme for Sphinx"
659
+ groups = ["dev"]
660
+ dependencies = [
661
+ "docutils<0.22,>0.18",
662
+ "sphinx<9,>=6",
663
+ "sphinxcontrib-jquery<5,>=4",
664
+ ]
665
+ files = [
666
+ {file = "sphinx_rtd_theme-3.0.2-py2.py3-none-any.whl", hash = "sha256:422ccc750c3a3a311de4ae327e82affdaf59eb695ba4936538552f3b00f4ee13"},
667
+ {file = "sphinx_rtd_theme-3.0.2.tar.gz", hash = "sha256:b7457bc25dda723b20b086a670b9953c859eab60a2a03ee8eb2bb23e176e5f85"},
668
+ ]
669
+
670
+ [[package]]
671
+ name = "sphinxcontrib-applehelp"
672
+ version = "2.0.0"
673
+ requires_python = ">=3.9"
674
+ summary = "sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books"
675
+ groups = ["dev"]
676
+ files = [
677
+ {file = "sphinxcontrib_applehelp-2.0.0-py3-none-any.whl", hash = "sha256:4cd3f0ec4ac5dd9c17ec65e9ab272c9b867ea77425228e68ecf08d6b28ddbdb5"},
678
+ {file = "sphinxcontrib_applehelp-2.0.0.tar.gz", hash = "sha256:2f29ef331735ce958efa4734873f084941970894c6090408b079c61b2e1c06d1"},
679
+ ]
680
+
681
+ [[package]]
682
+ name = "sphinxcontrib-devhelp"
683
+ version = "2.0.0"
684
+ requires_python = ">=3.9"
685
+ summary = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp documents"
686
+ groups = ["dev"]
687
+ files = [
688
+ {file = "sphinxcontrib_devhelp-2.0.0-py3-none-any.whl", hash = "sha256:aefb8b83854e4b0998877524d1029fd3e6879210422ee3780459e28a1f03a8a2"},
689
+ {file = "sphinxcontrib_devhelp-2.0.0.tar.gz", hash = "sha256:411f5d96d445d1d73bb5d52133377b4248ec79db5c793ce7dbe59e074b4dd1ad"},
690
+ ]
691
+
692
+ [[package]]
693
+ name = "sphinxcontrib-htmlhelp"
694
+ version = "2.1.0"
695
+ requires_python = ">=3.9"
696
+ summary = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files"
697
+ groups = ["dev"]
698
+ files = [
699
+ {file = "sphinxcontrib_htmlhelp-2.1.0-py3-none-any.whl", hash = "sha256:166759820b47002d22914d64a075ce08f4c46818e17cfc9470a9786b759b19f8"},
700
+ {file = "sphinxcontrib_htmlhelp-2.1.0.tar.gz", hash = "sha256:c9e2916ace8aad64cc13a0d233ee22317f2b9025b9cf3295249fa985cc7082e9"},
701
+ ]
702
+
703
+ [[package]]
704
+ name = "sphinxcontrib-jquery"
705
+ version = "4.1"
706
+ requires_python = ">=2.7"
707
+ summary = "Extension to include jQuery on newer Sphinx releases"
708
+ groups = ["dev"]
709
+ dependencies = [
710
+ "Sphinx>=1.8",
711
+ ]
712
+ files = [
713
+ {file = "sphinxcontrib-jquery-4.1.tar.gz", hash = "sha256:1620739f04e36a2c779f1a131a2dfd49b2fd07351bf1968ced074365933abc7a"},
714
+ {file = "sphinxcontrib_jquery-4.1-py2.py3-none-any.whl", hash = "sha256:f936030d7d0147dd026a4f2b5a57343d233f1fc7b363f68b3d4f1cb0993878ae"},
715
+ ]
716
+
717
+ [[package]]
718
+ name = "sphinxcontrib-jsmath"
719
+ version = "1.0.1"
720
+ requires_python = ">=3.5"
721
+ summary = "A sphinx extension which renders display math in HTML via JavaScript"
722
+ groups = ["dev"]
723
+ files = [
724
+ {file = "sphinxcontrib-jsmath-1.0.1.tar.gz", hash = "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"},
725
+ {file = "sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl", hash = "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178"},
726
+ ]
727
+
728
+ [[package]]
729
+ name = "sphinxcontrib-qthelp"
730
+ version = "2.0.0"
731
+ requires_python = ">=3.9"
732
+ summary = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp documents"
733
+ groups = ["dev"]
734
+ files = [
735
+ {file = "sphinxcontrib_qthelp-2.0.0-py3-none-any.whl", hash = "sha256:b18a828cdba941ccd6ee8445dbe72ffa3ef8cbe7505d8cd1fa0d42d3f2d5f3eb"},
736
+ {file = "sphinxcontrib_qthelp-2.0.0.tar.gz", hash = "sha256:4fe7d0ac8fc171045be623aba3e2a8f613f8682731f9153bb2e40ece16b9bbab"},
737
+ ]
738
+
739
+ [[package]]
740
+ name = "sphinxcontrib-serializinghtml"
741
+ version = "2.0.0"
742
+ requires_python = ">=3.9"
743
+ summary = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)"
744
+ groups = ["dev"]
745
+ files = [
746
+ {file = "sphinxcontrib_serializinghtml-2.0.0-py3-none-any.whl", hash = "sha256:6e2cb0eef194e10c27ec0023bfeb25badbbb5868244cf5bc5bdc04e4464bf331"},
747
+ {file = "sphinxcontrib_serializinghtml-2.0.0.tar.gz", hash = "sha256:e9d912827f872c029017a53f0ef2180b327c3f7fd23c87229f7a8e8b70031d4d"},
748
+ ]
749
+
750
+ [[package]]
751
+ name = "tomli"
752
+ version = "2.2.1"
753
+ requires_python = ">=3.8"
754
+ summary = "A lil' TOML parser"
755
+ groups = ["dev"]
756
+ marker = "python_version < \"3.11\""
757
+ files = [
758
+ {file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"},
759
+ {file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"},
760
+ {file = "tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a"},
761
+ {file = "tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee"},
762
+ {file = "tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e"},
763
+ {file = "tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4"},
764
+ {file = "tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106"},
765
+ {file = "tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8"},
766
+ {file = "tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff"},
767
+ {file = "tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b"},
768
+ {file = "tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea"},
769
+ {file = "tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8"},
770
+ {file = "tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192"},
771
+ {file = "tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222"},
772
+ {file = "tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77"},
773
+ {file = "tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6"},
774
+ {file = "tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd"},
775
+ {file = "tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e"},
776
+ {file = "tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98"},
777
+ {file = "tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4"},
778
+ {file = "tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7"},
779
+ {file = "tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c"},
780
+ {file = "tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13"},
781
+ {file = "tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281"},
782
+ {file = "tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272"},
783
+ {file = "tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140"},
784
+ {file = "tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2"},
785
+ {file = "tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744"},
786
+ {file = "tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec"},
787
+ {file = "tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69"},
788
+ {file = "tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc"},
789
+ {file = "tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"},
790
+ ]
791
+
792
+ [[package]]
793
+ name = "types-requests"
794
+ version = "2.32.0.20241016"
795
+ requires_python = ">=3.8"
796
+ summary = "Typing stubs for requests"
797
+ groups = ["dev"]
798
+ dependencies = [
799
+ "urllib3>=2",
800
+ ]
801
+ files = [
802
+ {file = "types-requests-2.32.0.20241016.tar.gz", hash = "sha256:0d9cad2f27515d0e3e3da7134a1b6f28fb97129d86b867f24d9c726452634d95"},
803
+ {file = "types_requests-2.32.0.20241016-py3-none-any.whl", hash = "sha256:4195d62d6d3e043a4eaaf08ff8a62184584d2e8684e9d2aa178c7915a7da3747"},
804
+ ]
805
+
806
+ [[package]]
807
+ name = "typing-extensions"
808
+ version = "4.12.2"
809
+ requires_python = ">=3.8"
810
+ summary = "Backported and Experimental Type Hints for Python 3.8+"
811
+ groups = ["dev"]
812
+ files = [
813
+ {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"},
814
+ {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"},
815
+ ]
816
+
817
+ [[package]]
818
+ name = "urllib3"
819
+ version = "2.3.0"
820
+ requires_python = ">=3.9"
821
+ summary = "HTTP library with thread-safe connection pooling, file post, and more."
822
+ groups = ["default", "dev"]
823
+ files = [
824
+ {file = "urllib3-2.3.0-py3-none-any.whl", hash = "sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df"},
825
+ {file = "urllib3-2.3.0.tar.gz", hash = "sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d"},
826
+ ]