u-transcript-max 0.1.0a1__py3-none-any.whl

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 (77) hide show
  1. u_transcript_max-0.1.0a1.dist-info/METADATA +67 -0
  2. u_transcript_max-0.1.0a1.dist-info/RECORD +77 -0
  3. u_transcript_max-0.1.0a1.dist-info/WHEEL +4 -0
  4. u_transcript_max-0.1.0a1.dist-info/entry_points.txt +2 -0
  5. u_transcript_max-0.1.0a1.dist-info/licenses/LICENSE +21 -0
  6. utmax/__init__.py +651 -0
  7. utmax/_version.py +1 -0
  8. utmax/adapters/__init__.py +1 -0
  9. utmax/adapters/downloader.py +479 -0
  10. utmax/adapters/ffmpeg.py +174 -0
  11. utmax/adapters/files.py +130 -0
  12. utmax/adapters/http.py +285 -0
  13. utmax/adapters/innertube.py +207 -0
  14. utmax/adapters/providers/__init__.py +45 -0
  15. utmax/adapters/providers/base.py +177 -0
  16. utmax/adapters/providers/claude.py +108 -0
  17. utmax/adapters/providers/gemini.py +133 -0
  18. utmax/adapters/providers/openai.py +169 -0
  19. utmax/adapters/providers/openrouter.py +59 -0
  20. utmax/adapters/watch_page.py +73 -0
  21. utmax/client.py +300 -0
  22. utmax/compat/__init__.py +134 -0
  23. utmax/compat/_api.py +203 -0
  24. utmax/compat/_bridge.py +212 -0
  25. utmax/compat/_errors.py +300 -0
  26. utmax/compat/_settings.py +13 -0
  27. utmax/compat/_transcripts.py +440 -0
  28. utmax/compat/formatters.py +241 -0
  29. utmax/compat/proxies.py +129 -0
  30. utmax/core/__init__.py +6 -0
  31. utmax/core/bilingual.py +107 -0
  32. utmax/core/browse.py +397 -0
  33. utmax/core/captions.py +251 -0
  34. utmax/core/clients.py +113 -0
  35. utmax/core/downloads.py +165 -0
  36. utmax/core/filenames.py +298 -0
  37. utmax/core/formats.py +198 -0
  38. utmax/core/ids.py +210 -0
  39. utmax/core/languages.py +371 -0
  40. utmax/core/media/__init__.py +7 -0
  41. utmax/core/media/boxes.py +266 -0
  42. utmax/core/media/fmp4.py +394 -0
  43. utmax/core/media/moov.py +299 -0
  44. utmax/core/media/mux.py +423 -0
  45. utmax/core/media/progressive.py +267 -0
  46. utmax/core/media/tables.py +129 -0
  47. utmax/core/media/tx3g.py +191 -0
  48. utmax/core/playability.py +62 -0
  49. utmax/core/player.py +90 -0
  50. utmax/core/retry.py +45 -0
  51. utmax/core/segmentation.py +104 -0
  52. utmax/core/selection.py +92 -0
  53. utmax/core/streams.py +264 -0
  54. utmax/core/translate/__init__.py +1 -0
  55. utmax/core/translate/batching.py +157 -0
  56. utmax/core/translate/data/protocol.json +17 -0
  57. utmax/core/translate/data/request.schema.json +49 -0
  58. utmax/core/translate/data/response.schema.json +19 -0
  59. utmax/core/translate/data/system_prompt.txt +21 -0
  60. utmax/core/translate/protocol.py +101 -0
  61. utmax/core/translate/spec.py +49 -0
  62. utmax/core/ytdata.py +32 -0
  63. utmax/errors.py +523 -0
  64. utmax/mcp/__init__.py +30 -0
  65. utmax/mcp/__main__.py +6 -0
  66. utmax/mcp/config.py +56 -0
  67. utmax/mcp/server.py +626 -0
  68. utmax/models.py +499 -0
  69. utmax/providers.py +36 -0
  70. utmax/py.typed +0 -0
  71. utmax/services/__init__.py +1 -0
  72. utmax/services/bulk.py +454 -0
  73. utmax/services/collections.py +183 -0
  74. utmax/services/download.py +375 -0
  75. utmax/services/transcripts.py +87 -0
  76. utmax/services/translation.py +211 -0
  77. utmax/transport.py +81 -0
@@ -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,77 @@
1
+ utmax/__init__.py,sha256=PMk_jDaEU-hO02FXITy-ISviEnOLieqS08uxNVcznwc,25400
2
+ utmax/_version.py,sha256=lmvUfjeqbjbsnD2PLlUjZbqEGZrq6yUD6t2LZsM61ak,24
3
+ utmax/client.py,sha256=Vx70QAIn6ENzE6j2QIKfSE_CS-C1Z4D_Yz3TnYPL7Lo,10966
4
+ utmax/errors.py,sha256=BHTq3JgPwnxeGjemOYfIzEM-gSQtwgfMEkgRqR_bpsY,15454
5
+ utmax/models.py,sha256=L1gpR65GiQ6YYKUCil6kXMUPsq5TIvtjWFG1iHik8jE,16021
6
+ utmax/providers.py,sha256=7K8A_d-GSKz0IFvRViMwe9FEFBhFpSmysPOUoVF1HSc,1039
7
+ utmax/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ utmax/transport.py,sha256=k-DJcoAWWpH2YnLVfT_HwPMvRXkWemekkSYWv4a2EmI,2459
9
+ utmax/adapters/__init__.py,sha256=2EcV0jzdeGjmGF3TJ91bvn8HzQdVKb8gaS2lw7uL3Ck,90
10
+ utmax/adapters/downloader.py,sha256=mCKjQjBFJTmO5G--nWKuMWVj0xxUwIxYgnHjX8Puy_4,18380
11
+ utmax/adapters/ffmpeg.py,sha256=Xja76odv5XBZZOPJQK8hr_NffDQ0ApJULUVgDhvGHG0,5762
12
+ utmax/adapters/files.py,sha256=oEv08D54xSUw6395BeekovV7ddAeaCVbS93OVe_rfqQ,4086
13
+ utmax/adapters/http.py,sha256=U4Y2k2qZRlaTxodTxDofWyeHP1Q3towucI7yg569E4Y,10360
14
+ utmax/adapters/innertube.py,sha256=2IgEVLd_aSP7u0EyvLSHC9ch_UWu1WiPtS_eiTB91fM,8383
15
+ utmax/adapters/watch_page.py,sha256=uMqQpVYyEARANvleZOp_lF6dGmhliY0VbeS1fahfJVU,2684
16
+ utmax/adapters/providers/__init__.py,sha256=aa-C7yDw4rojGbLYOTAXJH5m714413oQrhwl5GGPNK0,1595
17
+ utmax/adapters/providers/base.py,sha256=woS5pEE7qZqGj3CzqLZsrGORzom1nqBYnzvJ6sVWwq0,6543
18
+ utmax/adapters/providers/claude.py,sha256=mRwpJTk8gcJbjIYbPIYqVvpFCGDdFPsTqFNsXlhS31I,4476
19
+ utmax/adapters/providers/gemini.py,sha256=XuNd83q0k-f04sNhizU2weRw4sFJd2G9r3O51pqr-X8,5187
20
+ utmax/adapters/providers/openai.py,sha256=Cf3gwqdbF4NXMR-0Nv_E3jBVnHFP_8A_DBYac3jG24Q,7197
21
+ utmax/adapters/providers/openrouter.py,sha256=6UDg-VQ7r-HOBa7QDYYq6H9GWmiQ-PMRYTg4m64sTzw,2364
22
+ utmax/compat/__init__.py,sha256=nizhyYF9ugKygYsiAMXdSE7dTLQwQHiLhf8oksbruXQ,4637
23
+ utmax/compat/_api.py,sha256=f10ocdfVMwAvT0uhPsQ-OoePLTjY1z_gYr8A0pcVsC4,7684
24
+ utmax/compat/_bridge.py,sha256=XMmYjFdv0rnngZA02GdcHnKFQ2yDUkRaOtwNSWy-MHw,8268
25
+ utmax/compat/_errors.py,sha256=8m62ZZ9eh7o6QJE640Vb4xbpohAblXDuTEZy9RmDrao,11382
26
+ utmax/compat/_settings.py,sha256=5Uy-DnWuHeBSkPsr6Mp6TEjL-KaPlY3J9uClW-0anWk,521
27
+ utmax/compat/_transcripts.py,sha256=FAFb0jjgPKprhfonKv8BA_aEJX-t3sS3TYNSKzfdsJc,16549
28
+ utmax/compat/formatters.py,sha256=NZz4gKneJDc-CisKKsCSX2w0E3ecWyp-8aFwrceP580,8886
29
+ utmax/compat/proxies.py,sha256=t23-OB0KgfhdaMje4DnX2QxWm2-Sus5yfjSdB7Dq5Do,4254
30
+ utmax/core/__init__.py,sha256=I2ycmb4NDFvNA5HJyTlJThFXbCDj95kScrIb82lkvnI,280
31
+ utmax/core/bilingual.py,sha256=3HNlNdDV0HRbpoyzsxcs9PDYq2XDmhDRyB1iFl40Wp4,4365
32
+ utmax/core/browse.py,sha256=8MZopYD66xAOA9b8VAM98j1fUp5iZMumR55HGrNT5_c,15460
33
+ utmax/core/captions.py,sha256=9XBvYaWt14ly2Lap-CrcOEhJBEgUz40sB3BaTuWgnZ4,9555
34
+ utmax/core/clients.py,sha256=WVBkV7eGyyz3ZFDu5ncTYm_b1NC_mWoM-BK2CVM3KY4,3377
35
+ utmax/core/downloads.py,sha256=xdO0Cg7mMCvFGGMdCfWy-T-fvRhG45lVyXgPWeqrCXE,5376
36
+ utmax/core/filenames.py,sha256=Fknwv10zKFjI6ey6h4lNn4ZveGsy1vVL9Oh_3sx-YOY,13034
37
+ utmax/core/formats.py,sha256=29sKJE5_JZ_660Io3xUww2IdlJ8weHAFxok5rfNOXpk,6801
38
+ utmax/core/ids.py,sha256=L5Q8djgMBDtbS45Wnn7hqEzkfvVhIbDNjdHqkThMDwU,7837
39
+ utmax/core/languages.py,sha256=0Hbon8Tunp-P-4ZWZn_HZFnTWD1-NG5yn4-V1uJ1bCk,13548
40
+ utmax/core/playability.py,sha256=V9fbhGf8DV-udbUBUPL8zQYyClSGR9NXM0YAR8VKiqY,2435
41
+ utmax/core/player.py,sha256=nixxJAOeRc9Gr1Z1z3W8Vr3RYEMvpHlXRszabQMHgXw,2949
42
+ utmax/core/retry.py,sha256=jrjj_EBJ5oJGgoKuvhRFGVZKJtpykrjtSLFxu4T1VK8,1463
43
+ utmax/core/segmentation.py,sha256=cxUPR02LemmAgtJhPfFPa7AIDEs7YOuj-S2nxnIiu_o,3715
44
+ utmax/core/selection.py,sha256=oNzocX3phClzLexVJGE_uHhVjU7ju5nlFDrvxtZ2p8s,3767
45
+ utmax/core/streams.py,sha256=CiRUjZOgRyuEAPu8gXg15iSx4rLX3uHAy7IBn9P8SBY,9494
46
+ utmax/core/ytdata.py,sha256=y-yJFJl7ItcqlFKWzwqlTdMXOP4Jj5zjlBPhXUhkIqw,1093
47
+ utmax/core/media/__init__.py,sha256=0UlD4ftEQgz2uXdC8TTHInOpV69DXZDjzW4Kaei640E,455
48
+ utmax/core/media/boxes.py,sha256=dkfavVhx2MSnBppbUc-TanKZt0wb1TQT9W7oOPfSPmo,7886
49
+ utmax/core/media/fmp4.py,sha256=YEN4K-HqnjP3NBC7Lg4HZtfbqrGsoikC1QQqRZ2c3tk,15040
50
+ utmax/core/media/moov.py,sha256=K-K8WTGoir08_mOsj3g40jvycGcNPHnS_S0AmUimvx0,10467
51
+ utmax/core/media/mux.py,sha256=m9_EmrwBYtnHuzbJ4CaR2w1dBXh7IPmmp-vEc-jp8UQ,15819
52
+ utmax/core/media/progressive.py,sha256=R_iZNEadDTwK-3pBvqwecXTEhnOxq9DhBmxAv_NLch4,9635
53
+ utmax/core/media/tables.py,sha256=-HIMT23tDlesoI-im6dkcxlEHEfcfxXHZ50uParWVmw,4752
54
+ utmax/core/media/tx3g.py,sha256=eJz8jEuTMTQppxCFB-F1ebl8mm34sNVoP0ZBRHBoekE,7507
55
+ utmax/core/translate/__init__.py,sha256=rQAahuLr4nuu6kwGs6kQj97A1Y5WFG-AbMrqbNgr-TQ,88
56
+ utmax/core/translate/batching.py,sha256=8k3_h9qXCrKr1bkp39wCjXonsPP130EXhCqn6a1bu0c,5839
57
+ utmax/core/translate/protocol.py,sha256=l-c8sqmHW7Yax5HveAS_YAteSU64BOWjOMKcZQnKhdc,3038
58
+ utmax/core/translate/spec.py,sha256=DWT6j-FGYSeeEfW1-BB5shvll3kuMoOwH_Fn-jOZ7k8,1698
59
+ utmax/core/translate/data/protocol.json,sha256=pt_tPg-8zKGVMoCERHojePmrP8vP67EWJuSm9JfnqUg,367
60
+ utmax/core/translate/data/request.schema.json,sha256=_GkXiDYr_IUEP22Gd5c25x6ev5mVtzaxa7CmAeaErkc,1299
61
+ utmax/core/translate/data/response.schema.json,sha256=dXRB7-rdNZNPadhMekHF5T-gZbKYfcZvKdmm-udLt6I,386
62
+ utmax/core/translate/data/system_prompt.txt,sha256=1LWRHclPibNH_rI_mKz3hPI1oyGHiTxyVCNVSTQBZVU,1757
63
+ utmax/mcp/__init__.py,sha256=QceKg9gKYcrk3c88p0Z7nFIJRW5XN4YiNeXulImgHHE,1081
64
+ utmax/mcp/__main__.py,sha256=rIohwF_lNw0atB5o3GhrAtaqnXXQmVZQ3eSBfIlns5M,150
65
+ utmax/mcp/config.py,sha256=f7MurWqfcCNWsqAYor1sXKhm4fI_NuzXl5ffsiQr6ew,1968
66
+ utmax/mcp/server.py,sha256=hQX93K8JlGAZlWQgigLR7QWPMayXLVzhkZEAX9bJpG8,21886
67
+ utmax/services/__init__.py,sha256=_V3y6l1c722rImUZvllXrLGDk6xQaa_Gnot92oSVddA,77
68
+ utmax/services/bulk.py,sha256=790cQpnVwc0NlFTHZoEPxqxC3idS0x2uHR_SkSCvkGs,18649
69
+ utmax/services/collections.py,sha256=DFt7xKY1gx1eJead8Ob_Hd7VvWEpjS9ovGHZdYrbYOw,7365
70
+ utmax/services/download.py,sha256=QB39DjPJhr8G9Qb0B3YmH87HsJixTkuU1madkWiXSLg,15105
71
+ utmax/services/transcripts.py,sha256=VlLdi4n4nWp1D6o4o_PF-aXHf1ID1LY3JvwOKj1adPg,3312
72
+ utmax/services/translation.py,sha256=wDDvEyYybW-Bh4KcYL5dny-ZaUw4yQIXpcRvemNZfiw,8039
73
+ u_transcript_max-0.1.0a1.dist-info/METADATA,sha256=1cIIcnmOLrandhIaELJShQlLgw1BrKj8FS52iy_MqJg,2332
74
+ u_transcript_max-0.1.0a1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
75
+ u_transcript_max-0.1.0a1.dist-info/entry_points.txt,sha256=u0UZNt9RaOmtJQtz37yUnoOp1iQZdmwyffLJkH6Tc7k,45
76
+ u_transcript_max-0.1.0a1.dist-info/licenses/LICENSE,sha256=U2Nal06dOyJDzaqyH8aQo7cmoXMstNBEj1EXSvCnus0,1067
77
+ u_transcript_max-0.1.0a1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ utmax-mcp = utmax.mcp:main
@@ -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.