u-transcript-max 0.1.0a1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. u_transcript_max-0.1.0a1/.gitignore +17 -0
  2. u_transcript_max-0.1.0a1/LICENSE +21 -0
  3. u_transcript_max-0.1.0a1/PKG-INFO +67 -0
  4. u_transcript_max-0.1.0a1/README.md +28 -0
  5. u_transcript_max-0.1.0a1/pyproject.toml +115 -0
  6. u_transcript_max-0.1.0a1/src/utmax/__init__.py +651 -0
  7. u_transcript_max-0.1.0a1/src/utmax/_version.py +1 -0
  8. u_transcript_max-0.1.0a1/src/utmax/adapters/__init__.py +1 -0
  9. u_transcript_max-0.1.0a1/src/utmax/adapters/downloader.py +479 -0
  10. u_transcript_max-0.1.0a1/src/utmax/adapters/ffmpeg.py +174 -0
  11. u_transcript_max-0.1.0a1/src/utmax/adapters/files.py +130 -0
  12. u_transcript_max-0.1.0a1/src/utmax/adapters/http.py +285 -0
  13. u_transcript_max-0.1.0a1/src/utmax/adapters/innertube.py +207 -0
  14. u_transcript_max-0.1.0a1/src/utmax/adapters/providers/__init__.py +45 -0
  15. u_transcript_max-0.1.0a1/src/utmax/adapters/providers/base.py +177 -0
  16. u_transcript_max-0.1.0a1/src/utmax/adapters/providers/claude.py +108 -0
  17. u_transcript_max-0.1.0a1/src/utmax/adapters/providers/gemini.py +133 -0
  18. u_transcript_max-0.1.0a1/src/utmax/adapters/providers/openai.py +169 -0
  19. u_transcript_max-0.1.0a1/src/utmax/adapters/providers/openrouter.py +59 -0
  20. u_transcript_max-0.1.0a1/src/utmax/adapters/watch_page.py +73 -0
  21. u_transcript_max-0.1.0a1/src/utmax/client.py +300 -0
  22. u_transcript_max-0.1.0a1/src/utmax/compat/__init__.py +134 -0
  23. u_transcript_max-0.1.0a1/src/utmax/compat/_api.py +203 -0
  24. u_transcript_max-0.1.0a1/src/utmax/compat/_bridge.py +212 -0
  25. u_transcript_max-0.1.0a1/src/utmax/compat/_errors.py +300 -0
  26. u_transcript_max-0.1.0a1/src/utmax/compat/_settings.py +13 -0
  27. u_transcript_max-0.1.0a1/src/utmax/compat/_transcripts.py +440 -0
  28. u_transcript_max-0.1.0a1/src/utmax/compat/formatters.py +241 -0
  29. u_transcript_max-0.1.0a1/src/utmax/compat/proxies.py +129 -0
  30. u_transcript_max-0.1.0a1/src/utmax/core/__init__.py +6 -0
  31. u_transcript_max-0.1.0a1/src/utmax/core/bilingual.py +107 -0
  32. u_transcript_max-0.1.0a1/src/utmax/core/browse.py +397 -0
  33. u_transcript_max-0.1.0a1/src/utmax/core/captions.py +251 -0
  34. u_transcript_max-0.1.0a1/src/utmax/core/clients.py +113 -0
  35. u_transcript_max-0.1.0a1/src/utmax/core/downloads.py +165 -0
  36. u_transcript_max-0.1.0a1/src/utmax/core/filenames.py +298 -0
  37. u_transcript_max-0.1.0a1/src/utmax/core/formats.py +198 -0
  38. u_transcript_max-0.1.0a1/src/utmax/core/ids.py +210 -0
  39. u_transcript_max-0.1.0a1/src/utmax/core/languages.py +371 -0
  40. u_transcript_max-0.1.0a1/src/utmax/core/media/__init__.py +7 -0
  41. u_transcript_max-0.1.0a1/src/utmax/core/media/boxes.py +266 -0
  42. u_transcript_max-0.1.0a1/src/utmax/core/media/fmp4.py +394 -0
  43. u_transcript_max-0.1.0a1/src/utmax/core/media/moov.py +299 -0
  44. u_transcript_max-0.1.0a1/src/utmax/core/media/mux.py +423 -0
  45. u_transcript_max-0.1.0a1/src/utmax/core/media/progressive.py +267 -0
  46. u_transcript_max-0.1.0a1/src/utmax/core/media/tables.py +129 -0
  47. u_transcript_max-0.1.0a1/src/utmax/core/media/tx3g.py +191 -0
  48. u_transcript_max-0.1.0a1/src/utmax/core/playability.py +62 -0
  49. u_transcript_max-0.1.0a1/src/utmax/core/player.py +90 -0
  50. u_transcript_max-0.1.0a1/src/utmax/core/retry.py +45 -0
  51. u_transcript_max-0.1.0a1/src/utmax/core/segmentation.py +104 -0
  52. u_transcript_max-0.1.0a1/src/utmax/core/selection.py +92 -0
  53. u_transcript_max-0.1.0a1/src/utmax/core/streams.py +264 -0
  54. u_transcript_max-0.1.0a1/src/utmax/core/translate/__init__.py +1 -0
  55. u_transcript_max-0.1.0a1/src/utmax/core/translate/batching.py +157 -0
  56. u_transcript_max-0.1.0a1/src/utmax/core/translate/data/protocol.json +17 -0
  57. u_transcript_max-0.1.0a1/src/utmax/core/translate/data/request.schema.json +49 -0
  58. u_transcript_max-0.1.0a1/src/utmax/core/translate/data/response.schema.json +19 -0
  59. u_transcript_max-0.1.0a1/src/utmax/core/translate/data/system_prompt.txt +21 -0
  60. u_transcript_max-0.1.0a1/src/utmax/core/translate/protocol.py +101 -0
  61. u_transcript_max-0.1.0a1/src/utmax/core/translate/spec.py +49 -0
  62. u_transcript_max-0.1.0a1/src/utmax/core/ytdata.py +32 -0
  63. u_transcript_max-0.1.0a1/src/utmax/errors.py +523 -0
  64. u_transcript_max-0.1.0a1/src/utmax/mcp/__init__.py +30 -0
  65. u_transcript_max-0.1.0a1/src/utmax/mcp/__main__.py +6 -0
  66. u_transcript_max-0.1.0a1/src/utmax/mcp/config.py +56 -0
  67. u_transcript_max-0.1.0a1/src/utmax/mcp/server.py +626 -0
  68. u_transcript_max-0.1.0a1/src/utmax/models.py +499 -0
  69. u_transcript_max-0.1.0a1/src/utmax/providers.py +36 -0
  70. u_transcript_max-0.1.0a1/src/utmax/py.typed +0 -0
  71. u_transcript_max-0.1.0a1/src/utmax/services/__init__.py +1 -0
  72. u_transcript_max-0.1.0a1/src/utmax/services/bulk.py +454 -0
  73. u_transcript_max-0.1.0a1/src/utmax/services/collections.py +183 -0
  74. u_transcript_max-0.1.0a1/src/utmax/services/download.py +375 -0
  75. u_transcript_max-0.1.0a1/src/utmax/services/transcripts.py +87 -0
  76. u_transcript_max-0.1.0a1/src/utmax/services/translation.py +211 -0
  77. u_transcript_max-0.1.0a1/src/utmax/transport.py +81 -0
  78. u_transcript_max-0.1.0a1/tests/__init__.py +1 -0
  79. u_transcript_max-0.1.0a1/tests/compat/__init__.py +1 -0
  80. u_transcript_max-0.1.0a1/tests/compat/test_api.py +488 -0
  81. u_transcript_max-0.1.0a1/tests/compat/test_bridge.py +324 -0
  82. u_transcript_max-0.1.0a1/tests/compat/test_errors.py +130 -0
  83. u_transcript_max-0.1.0a1/tests/compat/test_formatters.py +249 -0
  84. u_transcript_max-0.1.0a1/tests/compat/test_install.py +115 -0
  85. u_transcript_max-0.1.0a1/tests/compat/test_legacy.py +244 -0
  86. u_transcript_max-0.1.0a1/tests/compat/test_manifest.py +198 -0
  87. u_transcript_max-0.1.0a1/tests/compat/test_manifest_script.py +192 -0
  88. u_transcript_max-0.1.0a1/tests/compat/test_proxies.py +104 -0
  89. u_transcript_max-0.1.0a1/tests/compat/test_transcripts.py +312 -0
  90. u_transcript_max-0.1.0a1/tests/fixtures/compat/youtube_transcript_api-1.2.4.json +1475 -0
  91. u_transcript_max-0.1.0a1/tests/fixtures/media/README.md +7 -0
  92. u_transcript_max-0.1.0a1/tests/fixtures/media/dQw4w9WgXcQ_137.hollow.bin +0 -0
  93. u_transcript_max-0.1.0a1/tests/fixtures/media/dQw4w9WgXcQ_140.hollow.bin +0 -0
  94. u_transcript_max-0.1.0a1/tests/fixtures/media/dQw4w9WgXcQ_399.hollow.bin +0 -0
  95. u_transcript_max-0.1.0a1/tests/fixtures/media/manifest.json +100 -0
  96. u_transcript_max-0.1.0a1/tests/fixtures/youtube/README.md +11 -0
  97. u_transcript_max-0.1.0a1/tests/fixtures/youtube/browse_android_vr_1.json +164 -0
  98. u_transcript_max-0.1.0a1/tests/fixtures/youtube/browse_android_vr_2.json +81 -0
  99. u_transcript_max-0.1.0a1/tests/fixtures/youtube/browse_web_1.json +278 -0
  100. u_transcript_max-0.1.0a1/tests/fixtures/youtube/browse_web_2.json +223 -0
  101. u_transcript_max-0.1.0a1/tests/fixtures/youtube/browse_web_shorts.json +100 -0
  102. u_transcript_max-0.1.0a1/tests/fixtures/youtube/json3_en_asr.json +970 -0
  103. u_transcript_max-0.1.0a1/tests/fixtures/youtube/json3_en_manual.json +563 -0
  104. u_transcript_max-0.1.0a1/tests/fixtures/youtube/legacy_en_manual.xml +17 -0
  105. u_transcript_max-0.1.0a1/tests/fixtures/youtube/player_android.json +308 -0
  106. u_transcript_max-0.1.0a1/tests/fixtures/youtube/player_android_vr.json +120 -0
  107. u_transcript_max-0.1.0a1/tests/fixtures/youtube/player_ios.json +308 -0
  108. u_transcript_max-0.1.0a1/tests/fixtures/youtube/resolve_handle.json +8 -0
  109. u_transcript_max-0.1.0a1/tests/fixtures/youtube/resolve_unknown.json +7 -0
  110. u_transcript_max-0.1.0a1/tests/fixtures/youtube/srv3_en_asr.xml +32 -0
  111. u_transcript_max-0.1.0a1/tests/fixtures/youtube/streams_android_vr.json +36 -0
  112. u_transcript_max-0.1.0a1/tests/helpers/__init__.py +1 -0
  113. u_transcript_max-0.1.0a1/tests/helpers/browse.py +115 -0
  114. u_transcript_max-0.1.0a1/tests/helpers/builders.py +52 -0
  115. u_transcript_max-0.1.0a1/tests/helpers/bulk.py +83 -0
  116. u_transcript_max-0.1.0a1/tests/helpers/compat.py +97 -0
  117. u_transcript_max-0.1.0a1/tests/helpers/downloads.py +159 -0
  118. u_transcript_max-0.1.0a1/tests/helpers/fake_media.py +163 -0
  119. u_transcript_max-0.1.0a1/tests/helpers/fake_translator.py +48 -0
  120. u_transcript_max-0.1.0a1/tests/helpers/fake_transport.py +78 -0
  121. u_transcript_max-0.1.0a1/tests/helpers/files.py +18 -0
  122. u_transcript_max-0.1.0a1/tests/helpers/fmp4_factory.py +430 -0
  123. u_transcript_max-0.1.0a1/tests/helpers/hollow_source.py +70 -0
  124. u_transcript_max-0.1.0a1/tests/helpers/http_server.py +121 -0
  125. u_transcript_max-0.1.0a1/tests/helpers/json_schema.py +47 -0
  126. u_transcript_max-0.1.0a1/tests/helpers/sdk.py +146 -0
  127. u_transcript_max-0.1.0a1/tests/helpers/youtube.py +184 -0
  128. u_transcript_max-0.1.0a1/tests/live/__init__.py +1 -0
  129. u_transcript_max-0.1.0a1/tests/live/conftest.py +18 -0
  130. u_transcript_max-0.1.0a1/tests/live/test_collections_live.py +87 -0
  131. u_transcript_max-0.1.0a1/tests/live/test_compat_live.py +56 -0
  132. u_transcript_max-0.1.0a1/tests/live/test_download_live.py +95 -0
  133. u_transcript_max-0.1.0a1/tests/live/test_transcripts_live.py +68 -0
  134. u_transcript_max-0.1.0a1/tests/live/test_translation_live.py +80 -0
  135. u_transcript_max-0.1.0a1/tests/mcp/__init__.py +1 -0
  136. u_transcript_max-0.1.0a1/tests/mcp/conftest.py +11 -0
  137. u_transcript_max-0.1.0a1/tests/mcp/test_config.py +67 -0
  138. u_transcript_max-0.1.0a1/tests/mcp/test_download.py +488 -0
  139. u_transcript_max-0.1.0a1/tests/mcp/test_live.py +125 -0
  140. u_transcript_max-0.1.0a1/tests/mcp/test_main.py +130 -0
  141. u_transcript_max-0.1.0a1/tests/mcp/test_package.py +50 -0
  142. u_transcript_max-0.1.0a1/tests/mcp/test_server.py +344 -0
  143. u_transcript_max-0.1.0a1/tests/mcp/test_stdio.py +38 -0
  144. u_transcript_max-0.1.0a1/tests/test_architecture.py +101 -0
  145. u_transcript_max-0.1.0a1/tests/test_extras.py +36 -0
  146. u_transcript_max-0.1.0a1/tests/test_package.py +17 -0
  147. u_transcript_max-0.1.0a1/tests/unit/__init__.py +1 -0
  148. u_transcript_max-0.1.0a1/tests/unit/adapters/__init__.py +1 -0
  149. u_transcript_max-0.1.0a1/tests/unit/adapters/providers/__init__.py +1 -0
  150. u_transcript_max-0.1.0a1/tests/unit/adapters/providers/test_base.py +59 -0
  151. u_transcript_max-0.1.0a1/tests/unit/adapters/providers/test_claude.py +192 -0
  152. u_transcript_max-0.1.0a1/tests/unit/adapters/providers/test_factory.py +70 -0
  153. u_transcript_max-0.1.0a1/tests/unit/adapters/providers/test_gemini.py +164 -0
  154. u_transcript_max-0.1.0a1/tests/unit/adapters/providers/test_openai.py +232 -0
  155. u_transcript_max-0.1.0a1/tests/unit/adapters/providers/test_openrouter.py +76 -0
  156. u_transcript_max-0.1.0a1/tests/unit/adapters/test_downloader.py +141 -0
  157. u_transcript_max-0.1.0a1/tests/unit/adapters/test_downloader_recovery.py +323 -0
  158. u_transcript_max-0.1.0a1/tests/unit/adapters/test_ffmpeg_adapter.py +211 -0
  159. u_transcript_max-0.1.0a1/tests/unit/adapters/test_ffmpeg_mp3.py +71 -0
  160. u_transcript_max-0.1.0a1/tests/unit/adapters/test_files.py +60 -0
  161. u_transcript_max-0.1.0a1/tests/unit/adapters/test_http.py +186 -0
  162. u_transcript_max-0.1.0a1/tests/unit/adapters/test_http_stream.py +121 -0
  163. u_transcript_max-0.1.0a1/tests/unit/adapters/test_innertube.py +255 -0
  164. u_transcript_max-0.1.0a1/tests/unit/adapters/test_innertube_browse.py +86 -0
  165. u_transcript_max-0.1.0a1/tests/unit/adapters/test_mux_executor.py +93 -0
  166. u_transcript_max-0.1.0a1/tests/unit/adapters/test_watch_page.py +67 -0
  167. u_transcript_max-0.1.0a1/tests/unit/core/__init__.py +1 -0
  168. u_transcript_max-0.1.0a1/tests/unit/core/test_batching.py +148 -0
  169. u_transcript_max-0.1.0a1/tests/unit/core/test_bilingual.py +232 -0
  170. u_transcript_max-0.1.0a1/tests/unit/core/test_browse.py +242 -0
  171. u_transcript_max-0.1.0a1/tests/unit/core/test_captions.py +210 -0
  172. u_transcript_max-0.1.0a1/tests/unit/core/test_clients.py +30 -0
  173. u_transcript_max-0.1.0a1/tests/unit/core/test_downloads.py +138 -0
  174. u_transcript_max-0.1.0a1/tests/unit/core/test_filenames.py +110 -0
  175. u_transcript_max-0.1.0a1/tests/unit/core/test_formats.py +153 -0
  176. u_transcript_max-0.1.0a1/tests/unit/core/test_ids.py +72 -0
  177. u_transcript_max-0.1.0a1/tests/unit/core/test_languages.py +182 -0
  178. u_transcript_max-0.1.0a1/tests/unit/core/test_model_spec.py +49 -0
  179. u_transcript_max-0.1.0a1/tests/unit/core/test_name_templates.py +183 -0
  180. u_transcript_max-0.1.0a1/tests/unit/core/test_pager.py +153 -0
  181. u_transcript_max-0.1.0a1/tests/unit/core/test_playability.py +93 -0
  182. u_transcript_max-0.1.0a1/tests/unit/core/test_player.py +94 -0
  183. u_transcript_max-0.1.0a1/tests/unit/core/test_retry.py +59 -0
  184. u_transcript_max-0.1.0a1/tests/unit/core/test_segmentation.py +142 -0
  185. u_transcript_max-0.1.0a1/tests/unit/core/test_selection.py +91 -0
  186. u_transcript_max-0.1.0a1/tests/unit/core/test_sources.py +158 -0
  187. u_transcript_max-0.1.0a1/tests/unit/core/test_streams.py +292 -0
  188. u_transcript_max-0.1.0a1/tests/unit/core/test_translate_protocol.py +66 -0
  189. u_transcript_max-0.1.0a1/tests/unit/core/test_ytdata.py +19 -0
  190. u_transcript_max-0.1.0a1/tests/unit/media/__init__.py +1 -0
  191. u_transcript_max-0.1.0a1/tests/unit/media/invariants.py +97 -0
  192. u_transcript_max-0.1.0a1/tests/unit/media/test_boxes.py +122 -0
  193. u_transcript_max-0.1.0a1/tests/unit/media/test_ffmpeg.py +243 -0
  194. u_transcript_max-0.1.0a1/tests/unit/media/test_fmp4.py +350 -0
  195. u_transcript_max-0.1.0a1/tests/unit/media/test_fmp4_factory.py +105 -0
  196. u_transcript_max-0.1.0a1/tests/unit/media/test_hollow.py +64 -0
  197. u_transcript_max-0.1.0a1/tests/unit/media/test_moov.py +321 -0
  198. u_transcript_max-0.1.0a1/tests/unit/media/test_mux.py +297 -0
  199. u_transcript_max-0.1.0a1/tests/unit/media/test_mux_large.py +69 -0
  200. u_transcript_max-0.1.0a1/tests/unit/media/test_mux_subtitles.py +159 -0
  201. u_transcript_max-0.1.0a1/tests/unit/media/test_progressive.py +186 -0
  202. u_transcript_max-0.1.0a1/tests/unit/media/test_tables.py +87 -0
  203. u_transcript_max-0.1.0a1/tests/unit/media/test_tx3g.py +179 -0
  204. u_transcript_max-0.1.0a1/tests/unit/services/__init__.py +1 -0
  205. u_transcript_max-0.1.0a1/tests/unit/services/test_bulk_downloads.py +253 -0
  206. u_transcript_max-0.1.0a1/tests/unit/services/test_bulk_runner.py +214 -0
  207. u_transcript_max-0.1.0a1/tests/unit/services/test_bulk_transcripts.py +255 -0
  208. u_transcript_max-0.1.0a1/tests/unit/services/test_collections.py +428 -0
  209. u_transcript_max-0.1.0a1/tests/unit/services/test_download_audio.py +250 -0
  210. u_transcript_max-0.1.0a1/tests/unit/services/test_download_video.py +155 -0
  211. u_transcript_max-0.1.0a1/tests/unit/services/test_transcripts.py +147 -0
  212. u_transcript_max-0.1.0a1/tests/unit/services/test_translation.py +245 -0
  213. u_transcript_max-0.1.0a1/tests/unit/test_client.py +57 -0
  214. u_transcript_max-0.1.0a1/tests/unit/test_collection_types.py +111 -0
  215. u_transcript_max-0.1.0a1/tests/unit/test_collections_api.py +163 -0
  216. u_transcript_max-0.1.0a1/tests/unit/test_download_api.py +96 -0
  217. u_transcript_max-0.1.0a1/tests/unit/test_download_types.py +125 -0
  218. u_transcript_max-0.1.0a1/tests/unit/test_errors.py +176 -0
  219. u_transcript_max-0.1.0a1/tests/unit/test_facade.py +54 -0
  220. u_transcript_max-0.1.0a1/tests/unit/test_models.py +94 -0
  221. u_transcript_max-0.1.0a1/tests/unit/test_recorded_fixtures.py +97 -0
  222. u_transcript_max-0.1.0a1/tests/unit/test_track_translate.py +37 -0
  223. u_transcript_max-0.1.0a1/tests/unit/test_transcript_output.py +52 -0
  224. u_transcript_max-0.1.0a1/tests/unit/test_translation_api.py +148 -0
  225. u_transcript_max-0.1.0a1/tests/unit/test_transport.py +32 -0
@@ -0,0 +1,17 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ build/
5
+ dist/
6
+ *.egg-info/
7
+ .coverage
8
+ .coverage.*
9
+ coverage.xml
10
+ htmlcov/
11
+ .pytest_cache/
12
+ .mypy_cache/
13
+ .ruff_cache/
14
+ *.part
15
+ *.part.json
16
+ .worktrees/
17
+ .claude/settings.local.json
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 U-C4N
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.
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.5
2
+ Name: u-transcript-max
3
+ Version: 0.1.0a1
4
+ Summary: YouTube transcripts, AI translation and downloads for Python, with zero dependencies.
5
+ Project-URL: Homepage, https://github.com/U-C4N/U-transkript
6
+ Project-URL: Issues, https://github.com/U-C4N/U-transkript/issues
7
+ Author: U-C4N
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: captions,srt,subtitles,transcript,translation,vtt,youtube
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Topic :: Multimedia :: Video
20
+ Classifier: Topic :: Text Processing :: Linguistic
21
+ Classifier: Typing :: Typed
22
+ Requires-Python: >=3.11
23
+ Provides-Extra: ai
24
+ Requires-Dist: anthropic<2,>=1.8; extra == 'ai'
25
+ Requires-Dist: google-genai<3,>=2.25; extra == 'ai'
26
+ Requires-Dist: openai<4,>=3.19; extra == 'ai'
27
+ Provides-Extra: claude
28
+ Requires-Dist: anthropic<2,>=1.8; extra == 'claude'
29
+ Provides-Extra: gemini
30
+ Requires-Dist: google-genai<3,>=2.25; extra == 'gemini'
31
+ Provides-Extra: mcp
32
+ Requires-Dist: anyio<5,>=4.11; extra == 'mcp'
33
+ Requires-Dist: mcp<3,>=2.2; extra == 'mcp'
34
+ Provides-Extra: openai
35
+ Requires-Dist: openai<4,>=3.19; extra == 'openai'
36
+ Provides-Extra: openrouter
37
+ Requires-Dist: openai<4,>=3.19; extra == 'openrouter'
38
+ Description-Content-Type: text/markdown
39
+
40
+ # u-transcript max
41
+
42
+ YouTube transcripts, AI translation and downloads for Python — with zero dependencies.
43
+
44
+ > **Alpha.** The first full release (0.1.0) is being finished. The design lives in
45
+ > [docs/design](https://github.com/U-C4N/U-transkript/tree/main/docs/design).
46
+
47
+ ```bash
48
+ pip install --pre u-transcript-max # the library, no dependencies
49
+ pip install --pre "u-transcript-max[mcp]" # plus the MCP server, utmax-mcp
50
+ ```
51
+
52
+ ```python
53
+ import utmax
54
+
55
+ transcript = utmax.fetch("https://youtu.be/dQw4w9WgXcQ")
56
+ transcript.save("rick.srt")
57
+ ```
58
+
59
+ Add the MCP server to Claude Code (needs [uv](https://docs.astral.sh/uv/)):
60
+
61
+ ```bash
62
+ claude mcp add --scope user utmax -- uvx --prerelease allow --from "u-transcript-max[mcp]" utmax-mcp
63
+ ```
64
+
65
+ ## License
66
+
67
+ MIT
@@ -0,0 +1,28 @@
1
+ # u-transcript max
2
+
3
+ YouTube transcripts, AI translation and downloads for Python — with zero dependencies.
4
+
5
+ > **Alpha.** The first full release (0.1.0) is being finished. The design lives in
6
+ > [docs/design](https://github.com/U-C4N/U-transkript/tree/main/docs/design).
7
+
8
+ ```bash
9
+ pip install --pre u-transcript-max # the library, no dependencies
10
+ pip install --pre "u-transcript-max[mcp]" # plus the MCP server, utmax-mcp
11
+ ```
12
+
13
+ ```python
14
+ import utmax
15
+
16
+ transcript = utmax.fetch("https://youtu.be/dQw4w9WgXcQ")
17
+ transcript.save("rick.srt")
18
+ ```
19
+
20
+ Add the MCP server to Claude Code (needs [uv](https://docs.astral.sh/uv/)):
21
+
22
+ ```bash
23
+ claude mcp add --scope user utmax -- uvx --prerelease allow --from "u-transcript-max[mcp]" utmax-mcp
24
+ ```
25
+
26
+ ## License
27
+
28
+ MIT
@@ -0,0 +1,115 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.32"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "u-transcript-max"
7
+ dynamic = ["version"]
8
+ description = "YouTube transcripts, AI translation and downloads for Python, with zero dependencies."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.11"
13
+ authors = [{ name = "U-C4N" }]
14
+ keywords = ["youtube", "transcript", "subtitles", "captions", "srt", "vtt", "translation"]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Intended Audience :: Developers",
18
+ "Operating System :: OS Independent",
19
+ "Programming Language :: Python :: 3 :: Only",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Programming Language :: Python :: 3.14",
24
+ "Topic :: Multimedia :: Video",
25
+ "Topic :: Text Processing :: Linguistic",
26
+ "Typing :: Typed",
27
+ ]
28
+ dependencies = []
29
+
30
+ [project.optional-dependencies]
31
+ claude = ["anthropic>=1.8,<2"]
32
+ openai = ["openai>=3.19,<4"]
33
+ gemini = ["google-genai>=2.25,<3"]
34
+ openrouter = ["openai>=3.19,<4"]
35
+ ai = ["anthropic>=1.8,<2", "google-genai>=2.25,<3", "openai>=3.19,<4"]
36
+ mcp = ["mcp>=2.2,<3", "anyio>=4.11,<5"]
37
+
38
+ [project.scripts]
39
+ utmax-mcp = "utmax.mcp:main"
40
+
41
+ [project.urls]
42
+ Homepage = "https://github.com/U-C4N/U-transkript"
43
+ Issues = "https://github.com/U-C4N/U-transkript/issues"
44
+
45
+ [dependency-groups]
46
+ dev = [
47
+ "mypy>=2.3",
48
+ "pytest>=9.1",
49
+ "pytest-cov>=7.1",
50
+ "ruff>=0.16",
51
+ ]
52
+
53
+ [tool.hatch.version]
54
+ path = "src/utmax/_version.py"
55
+
56
+ [tool.hatch.build.targets.wheel]
57
+ packages = ["src/utmax"]
58
+
59
+ [tool.hatch.build.targets.sdist]
60
+ include = ["/src", "/tests", "/README.md", "/LICENSE"]
61
+
62
+ [tool.ruff]
63
+ line-length = 100
64
+ target-version = "py311"
65
+ extend-exclude = ["docs"]
66
+
67
+ [tool.ruff.lint]
68
+ select = ["E", "W", "F", "I", "UP", "B", "C4", "SIM", "PIE", "PERF", "RET", "PT", "N", "PL", "RUF", "TID"]
69
+ ignore = [
70
+ "E501", # the formatter owns line length; long literals are acceptable
71
+ "N818", # error names mirror youtube-transcript-api (VideoUnavailable, ...)
72
+ "PLC0415", # models import core inside methods to avoid import cycles
73
+ "PLR0911", # table-like functions return early by design
74
+ "PLR0912",
75
+ "PLR0913", # the public API takes many keyword-only options
76
+ "PLR2004", # protocol constants and test values
77
+ ]
78
+
79
+ [tool.ruff.lint.per-file-ignores]
80
+ "tests/**" = ["RUF001", "RUF003"]
81
+
82
+ [tool.ruff.lint.isort]
83
+ known-first-party = ["utmax"]
84
+
85
+ [tool.ruff.lint.flake8-tidy-imports]
86
+ ban-relative-imports = "all"
87
+
88
+ [tool.mypy]
89
+ strict = true
90
+ python_version = "3.11"
91
+ files = ["src"]
92
+ warn_unreachable = true
93
+
94
+ [tool.pytest.ini_options]
95
+ minversion = "9.0"
96
+ testpaths = ["tests"]
97
+ addopts = ["-ra", "--strict-markers", "--strict-config", "-m", "not live"]
98
+ markers = ["live: talks to the real YouTube API; run with `uv run pytest -m live`", "ffmpeg: needs ffmpeg and ffprobe on PATH; run with `uv run pytest -m ffmpeg`"]
99
+ xfail_strict = true
100
+ filterwarnings = ["error"]
101
+
102
+ [tool.coverage.run]
103
+ branch = true
104
+ source = ["utmax"]
105
+
106
+ [tool.coverage.report]
107
+ fail_under = 90
108
+ show_missing = true
109
+ skip_covered = true
110
+ exclude_also = [
111
+ "if TYPE_CHECKING:",
112
+ "@overload",
113
+ "raise NotImplementedError",
114
+ "^\\s*\\.\\.\\.\\s*$",
115
+ ]