yutome 0.1.0__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 (54) hide show
  1. yutome-0.1.0/.gitignore +19 -0
  2. yutome-0.1.0/LICENSE +21 -0
  3. yutome-0.1.0/PKG-INFO +169 -0
  4. yutome-0.1.0/README.md +110 -0
  5. yutome-0.1.0/pyproject.toml +119 -0
  6. yutome-0.1.0/src/yutome/__init__.py +9 -0
  7. yutome-0.1.0/src/yutome/__main__.py +5 -0
  8. yutome-0.1.0/src/yutome/api.py +458 -0
  9. yutome-0.1.0/src/yutome/asr.py +72 -0
  10. yutome-0.1.0/src/yutome/channels.py +289 -0
  11. yutome-0.1.0/src/yutome/chunking.py +120 -0
  12. yutome-0.1.0/src/yutome/cli.py +3597 -0
  13. yutome-0.1.0/src/yutome/config.py +284 -0
  14. yutome-0.1.0/src/yutome/contract.py +315 -0
  15. yutome-0.1.0/src/yutome/contract_export.py +86 -0
  16. yutome-0.1.0/src/yutome/db.py +271 -0
  17. yutome-0.1.0/src/yutome/embeddings.py +324 -0
  18. yutome-0.1.0/src/yutome/env.py +94 -0
  19. yutome-0.1.0/src/yutome/evals.py +117 -0
  20. yutome-0.1.0/src/yutome/exports.py +250 -0
  21. yutome-0.1.0/src/yutome/gemini.py +222 -0
  22. yutome-0.1.0/src/yutome/hashing.py +18 -0
  23. yutome-0.1.0/src/yutome/http_server.py +266 -0
  24. yutome-0.1.0/src/yutome/indexer.py +1094 -0
  25. yutome-0.1.0/src/yutome/maintenance.py +106 -0
  26. yutome-0.1.0/src/yutome/mcp_server.py +193 -0
  27. yutome-0.1.0/src/yutome/paths.py +96 -0
  28. yutome-0.1.0/src/yutome/quality.py +35 -0
  29. yutome-0.1.0/src/yutome/quality_heuristics.py +546 -0
  30. yutome-0.1.0/src/yutome/quality_llm.py +538 -0
  31. yutome-0.1.0/src/yutome/quality_upgrade.py +394 -0
  32. yutome-0.1.0/src/yutome/query.py +1023 -0
  33. yutome-0.1.0/src/yutome/remote_connection.py +251 -0
  34. yutome-0.1.0/src/yutome/retrieval.py +240 -0
  35. yutome-0.1.0/src/yutome/runtime.py +57 -0
  36. yutome-0.1.0/src/yutome/store.py +366 -0
  37. yutome-0.1.0/src/yutome/transcripts.py +192 -0
  38. yutome-0.1.0/src/yutome/youtube.py +568 -0
  39. yutome-0.1.0/src/yutome/youtube_import.py +278 -0
  40. yutome-0.1.0/src/yutome/youtube_oauth.py +238 -0
  41. yutome-0.1.0/tests/_http_e2e_check.py +110 -0
  42. yutome-0.1.0/tests/_mcp_e2e_check.py +111 -0
  43. yutome-0.1.0/tests/_oauth_e2e_check.py +270 -0
  44. yutome-0.1.0/tests/test_config_paths_db.py +892 -0
  45. yutome-0.1.0/tests/test_contract_parity.py +81 -0
  46. yutome-0.1.0/tests/test_documented_usage.py +82 -0
  47. yutome-0.1.0/tests/test_error_surfaces.py +100 -0
  48. yutome-0.1.0/tests/test_http_server.py +234 -0
  49. yutome-0.1.0/tests/test_indexer_stages.py +110 -0
  50. yutome-0.1.0/tests/test_mcp_server.py +305 -0
  51. yutome-0.1.0/tests/test_metadata_validation.py +70 -0
  52. yutome-0.1.0/tests/test_quality_heuristics.py +100 -0
  53. yutome-0.1.0/tests/test_retrieval_exports.py +406 -0
  54. yutome-0.1.0/tests/test_youtube_import.py +81 -0
@@ -0,0 +1,19 @@
1
+ .venv/
2
+ .pytest_cache/
3
+ __pycache__/
4
+ *.py[cod]
5
+
6
+ .env
7
+ .env.*
8
+ !.env.example
9
+
10
+ .claude/settings.local.json
11
+
12
+ data/
13
+
14
+ # Cloudflare Worker subproject — track source, ignore build/runtime artifacts
15
+ cloudflare/*/node_modules/
16
+ cloudflare/*/.wrangler/
17
+ cloudflare/*/dist/
18
+
19
+ .DS_Store
yutome-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kifah Meeran
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.
yutome-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,169 @@
1
+ Metadata-Version: 2.4
2
+ Name: yutome
3
+ Version: 0.1.0
4
+ Summary: A local transcript library for the YouTube channels you point at
5
+ Project-URL: Homepage, https://github.com/MaskyS/yutome
6
+ Project-URL: Repository, https://github.com/MaskyS/yutome
7
+ Project-URL: Issues, https://github.com/MaskyS/yutome/issues
8
+ Author-email: Kifah Meeran <contact@maskys.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: knowledge-base,local-first,mcp,rag,search,transcripts,youtube
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: End Users/Desktop
15
+ Classifier: Operating System :: MacOS
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
22
+ Classifier: Topic :: Multimedia :: Video
23
+ Classifier: Topic :: Text Processing :: Indexing
24
+ Requires-Python: >=3.11
25
+ Requires-Dist: pydantic<3,>=2.8
26
+ Requires-Dist: rapidfuzz>=3.14.5
27
+ Requires-Dist: typer<1,>=0.12
28
+ Requires-Dist: websockets>=13
29
+ Requires-Dist: wordfreq>=3.1.1
30
+ Provides-Extra: all
31
+ Requires-Dist: curl-cffi<0.15,>=0.11; extra == 'all'
32
+ Requires-Dist: fastapi<1,>=0.115; extra == 'all'
33
+ Requires-Dist: faster-whisper>=1.1; extra == 'all'
34
+ Requires-Dist: google-genai>=1.40; extra == 'all'
35
+ Requires-Dist: lancedb>=0.20; extra == 'all'
36
+ Requires-Dist: mcp[cli]<2,>=1.20; extra == 'all'
37
+ Requires-Dist: uvicorn<1,>=0.30; extra == 'all'
38
+ Requires-Dist: voyageai>=0.3; extra == 'all'
39
+ Requires-Dist: youtube-transcript-api>=1.2; extra == 'all'
40
+ Requires-Dist: yt-dlp>=2025.6.9; extra == 'all'
41
+ Provides-Extra: asr
42
+ Requires-Dist: faster-whisper>=1.1; extra == 'asr'
43
+ Provides-Extra: embeddings
44
+ Requires-Dist: voyageai>=0.3; extra == 'embeddings'
45
+ Provides-Extra: gemini
46
+ Requires-Dist: google-genai>=1.40; extra == 'gemini'
47
+ Provides-Extra: http
48
+ Requires-Dist: fastapi<1,>=0.115; extra == 'http'
49
+ Requires-Dist: uvicorn<1,>=0.30; extra == 'http'
50
+ Provides-Extra: ingest
51
+ Requires-Dist: curl-cffi<0.15,>=0.11; extra == 'ingest'
52
+ Requires-Dist: youtube-transcript-api>=1.2; extra == 'ingest'
53
+ Requires-Dist: yt-dlp>=2025.6.9; extra == 'ingest'
54
+ Provides-Extra: mcp
55
+ Requires-Dist: mcp[cli]<2,>=1.20; extra == 'mcp'
56
+ Provides-Extra: vectors
57
+ Requires-Dist: lancedb>=0.20; extra == 'vectors'
58
+ Description-Content-Type: text/markdown
59
+
60
+ # Yutome
61
+
62
+ Yutome ingests transcripts from the YouTube channels you point at, stores them on your machine, and connects to whichever AI app you already use — Claude, ChatGPT, Cursor, anything MCP-compatible.
63
+
64
+ The library is searchable from the command line, from any local MCP client, or remotely from claude.ai / ChatGPT through a small Cloudflare Worker you deploy yourself.
65
+
66
+ Yutome is a command-line tool. You set it up from the terminal; from there it handles sync, cleanup, and exports. A coding agent (Claude Code, Cursor) can drive any of it.
67
+
68
+ ## Install
69
+
70
+ Requires Python ≥3.11 and [`uv`](https://docs.astral.sh/uv/getting-started/installation/).
71
+
72
+ ```bash
73
+ uv tool install 'yutome[all]'
74
+ ```
75
+
76
+ This puts a single `yutome` command on your PATH. The `[all]` extra pulls in the full feature set (yt-dlp, LanceDB, Voyage embeddings, MCP server, HTTP API). Without it you'll hit ImportErrors on first run.
77
+
78
+ If your default `python3` is older than 3.11, add `--python 3.11` to that command — uv will fetch a 3.11 for you.
79
+
80
+ **Alternatives:**
81
+
82
+ ```bash
83
+ # pipx — uses whichever python3 is on your PATH; needs 3.11+
84
+ pipx install 'yutome[all]'
85
+
86
+ # Install the latest unreleased commit
87
+ uv tool install 'yutome[all] @ git+https://github.com/MaskyS/yutome.git'
88
+
89
+ # For hacking on the code
90
+ git clone https://github.com/MaskyS/yutome.git
91
+ cd yutome
92
+ uv sync --extra all
93
+ uv run yutome --help
94
+ ```
95
+
96
+ ## Quickstart
97
+
98
+ ```bash
99
+ yutome setup # guided first-run: creates ./yutome.toml, ./data, etc.
100
+ yutome add https://www.youtube.com/@LexClips # add a YouTube channel or video as a source
101
+ yutome sync # discover videos, fetch transcripts, build indexes
102
+ yutome find "first principles" # ranked search across everything indexed
103
+ ```
104
+
105
+ `yutome setup` is interactive by default; pass `-y` to skip prompts and just print what would happen. It prompts for any API keys it needs. To set keys ahead of time, copy `.env.example` to `.env`. The only commonly-needed key is `VOYAGE_API_KEY` (semantic search) — get one at [voyageai.com](https://www.voyageai.com/). Without it, `find` still works but falls back to keyword search only. Every other key in `.env.example` is optional and tied to a specific feature (Gemini transcript cleanup, Webshare residential proxy, OAuth subscription import, etc.).
106
+
107
+ The indexed corpus lives under `./data/` next to `yutome.toml` — SQLite catalog, LanceDB vector index, transcript artifacts. Back it up like any other project directory.
108
+
109
+ Run `yutome --help` for the full surface. The most-used commands:
110
+
111
+ | Goal | Command |
112
+ |---|---|
113
+ | First-run setup | `yutome setup` |
114
+ | Add a channel/video | `yutome add <url>` |
115
+ | Import a subscription list | `yutome import-youtube` or `yutome import <file>` |
116
+ | Index everything new | `yutome sync` |
117
+ | Search | `yutome find "<query>"` |
118
+ | List or inspect indexed objects | `yutome list videos`, `yutome show video <id>`, … |
119
+ | Local MCP server | `yutome mcp serve` (usually invoked via Claude config, not by hand) |
120
+ | Deploy/manage remote connector | `yutome connect --deploy`, `yutome remote bridge`, `yutome status` |
121
+
122
+ Commands like `list`, `show`, `remote`, `export`, `quality` are groups — append `--help` (e.g. `yutome list --help`) to see their subcommands.
123
+
124
+ ## Connect to Claude / ChatGPT
125
+
126
+ ### Local (recommended for daily use)
127
+
128
+ For **Claude Code** or **Codex** opened against this repo, the bundled `.mcp.json` is picked up automatically — no extra config.
129
+
130
+ For **Claude Desktop**, add this block to `~/Library/Application Support/Claude/claude_desktop_config.json`. Use an absolute path to `yutome.toml`, since Desktop won't launch from your project directory:
131
+
132
+ ```json
133
+ {
134
+ "mcpServers": {
135
+ "yutome": {
136
+ "command": "uv",
137
+ "args": ["run", "yutome", "mcp", "serve", "--config", "/absolute/path/to/yutome.toml"]
138
+ }
139
+ }
140
+ }
141
+ ```
142
+
143
+ Restart Claude Desktop. You'll see `yutome` in the connectors list with `find`, `list`, `show`, and `q` tools.
144
+
145
+ ### Remote (Claude.ai web, ChatGPT, phone)
146
+
147
+ ```bash
148
+ yutome connect --deploy # one-time: deploy the Worker, generate secrets, save state
149
+ yutome remote bridge # keep this running while you want queries to work
150
+ ```
151
+
152
+ `connect --deploy` deploys a Cloudflare Worker to your own account (free plan is enough), generates an OAuth-protected `/mcp` endpoint, and prints a pairing code. Paste the `/mcp` URL into a Claude.ai or ChatGPT custom connector and complete OAuth in the browser tab using the pairing code.
153
+
154
+ The Worker is just a relay — your corpus stays on your laptop. `yutome remote bridge` is the WebSocket process that lets the Worker reach it; if it's not running, the connector reports "desktop offline". Full setup walkthrough: [`docs/remote-access.md`](https://github.com/MaskyS/yutome/blob/main/docs/remote-access.md) and [`cloudflare/yutome-capsule/README.md`](https://github.com/MaskyS/yutome/blob/main/cloudflare/yutome-capsule/README.md).
155
+
156
+ ## Docs
157
+
158
+ See [`docs/README.md`](https://github.com/MaskyS/yutome/blob/main/docs/README.md) for an index. The most useful starting points:
159
+
160
+ - [`docs/remote-access.md`](https://github.com/MaskyS/yutome/blob/main/docs/remote-access.md) — connecting Claude / ChatGPT / agents
161
+ - [`docs/cloud-capsule-strategy.md`](https://github.com/MaskyS/yutome/blob/main/docs/cloud-capsule-strategy.md) — how the Cloudflare Worker is designed
162
+ - [`docs/query-api.md`](https://github.com/MaskyS/yutome/blob/main/docs/query-api.md) — the query language `find` / `q` speak
163
+ - [`docs/plan.md`](https://github.com/MaskyS/yutome/blob/main/docs/plan.md) — internal architecture history (not a usage guide)
164
+
165
+ ## Status
166
+
167
+ **v0.1.0 — early release.** Released under the MIT license; the API and CLI surface may shift between point releases.
168
+
169
+ Found a bug or a confusing doc? Open an issue: <https://github.com/MaskyS/yutome/issues>.
yutome-0.1.0/README.md ADDED
@@ -0,0 +1,110 @@
1
+ # Yutome
2
+
3
+ Yutome ingests transcripts from the YouTube channels you point at, stores them on your machine, and connects to whichever AI app you already use — Claude, ChatGPT, Cursor, anything MCP-compatible.
4
+
5
+ The library is searchable from the command line, from any local MCP client, or remotely from claude.ai / ChatGPT through a small Cloudflare Worker you deploy yourself.
6
+
7
+ Yutome is a command-line tool. You set it up from the terminal; from there it handles sync, cleanup, and exports. A coding agent (Claude Code, Cursor) can drive any of it.
8
+
9
+ ## Install
10
+
11
+ Requires Python ≥3.11 and [`uv`](https://docs.astral.sh/uv/getting-started/installation/).
12
+
13
+ ```bash
14
+ uv tool install 'yutome[all]'
15
+ ```
16
+
17
+ This puts a single `yutome` command on your PATH. The `[all]` extra pulls in the full feature set (yt-dlp, LanceDB, Voyage embeddings, MCP server, HTTP API). Without it you'll hit ImportErrors on first run.
18
+
19
+ If your default `python3` is older than 3.11, add `--python 3.11` to that command — uv will fetch a 3.11 for you.
20
+
21
+ **Alternatives:**
22
+
23
+ ```bash
24
+ # pipx — uses whichever python3 is on your PATH; needs 3.11+
25
+ pipx install 'yutome[all]'
26
+
27
+ # Install the latest unreleased commit
28
+ uv tool install 'yutome[all] @ git+https://github.com/MaskyS/yutome.git'
29
+
30
+ # For hacking on the code
31
+ git clone https://github.com/MaskyS/yutome.git
32
+ cd yutome
33
+ uv sync --extra all
34
+ uv run yutome --help
35
+ ```
36
+
37
+ ## Quickstart
38
+
39
+ ```bash
40
+ yutome setup # guided first-run: creates ./yutome.toml, ./data, etc.
41
+ yutome add https://www.youtube.com/@LexClips # add a YouTube channel or video as a source
42
+ yutome sync # discover videos, fetch transcripts, build indexes
43
+ yutome find "first principles" # ranked search across everything indexed
44
+ ```
45
+
46
+ `yutome setup` is interactive by default; pass `-y` to skip prompts and just print what would happen. It prompts for any API keys it needs. To set keys ahead of time, copy `.env.example` to `.env`. The only commonly-needed key is `VOYAGE_API_KEY` (semantic search) — get one at [voyageai.com](https://www.voyageai.com/). Without it, `find` still works but falls back to keyword search only. Every other key in `.env.example` is optional and tied to a specific feature (Gemini transcript cleanup, Webshare residential proxy, OAuth subscription import, etc.).
47
+
48
+ The indexed corpus lives under `./data/` next to `yutome.toml` — SQLite catalog, LanceDB vector index, transcript artifacts. Back it up like any other project directory.
49
+
50
+ Run `yutome --help` for the full surface. The most-used commands:
51
+
52
+ | Goal | Command |
53
+ |---|---|
54
+ | First-run setup | `yutome setup` |
55
+ | Add a channel/video | `yutome add <url>` |
56
+ | Import a subscription list | `yutome import-youtube` or `yutome import <file>` |
57
+ | Index everything new | `yutome sync` |
58
+ | Search | `yutome find "<query>"` |
59
+ | List or inspect indexed objects | `yutome list videos`, `yutome show video <id>`, … |
60
+ | Local MCP server | `yutome mcp serve` (usually invoked via Claude config, not by hand) |
61
+ | Deploy/manage remote connector | `yutome connect --deploy`, `yutome remote bridge`, `yutome status` |
62
+
63
+ Commands like `list`, `show`, `remote`, `export`, `quality` are groups — append `--help` (e.g. `yutome list --help`) to see their subcommands.
64
+
65
+ ## Connect to Claude / ChatGPT
66
+
67
+ ### Local (recommended for daily use)
68
+
69
+ For **Claude Code** or **Codex** opened against this repo, the bundled `.mcp.json` is picked up automatically — no extra config.
70
+
71
+ For **Claude Desktop**, add this block to `~/Library/Application Support/Claude/claude_desktop_config.json`. Use an absolute path to `yutome.toml`, since Desktop won't launch from your project directory:
72
+
73
+ ```json
74
+ {
75
+ "mcpServers": {
76
+ "yutome": {
77
+ "command": "uv",
78
+ "args": ["run", "yutome", "mcp", "serve", "--config", "/absolute/path/to/yutome.toml"]
79
+ }
80
+ }
81
+ }
82
+ ```
83
+
84
+ Restart Claude Desktop. You'll see `yutome` in the connectors list with `find`, `list`, `show`, and `q` tools.
85
+
86
+ ### Remote (Claude.ai web, ChatGPT, phone)
87
+
88
+ ```bash
89
+ yutome connect --deploy # one-time: deploy the Worker, generate secrets, save state
90
+ yutome remote bridge # keep this running while you want queries to work
91
+ ```
92
+
93
+ `connect --deploy` deploys a Cloudflare Worker to your own account (free plan is enough), generates an OAuth-protected `/mcp` endpoint, and prints a pairing code. Paste the `/mcp` URL into a Claude.ai or ChatGPT custom connector and complete OAuth in the browser tab using the pairing code.
94
+
95
+ The Worker is just a relay — your corpus stays on your laptop. `yutome remote bridge` is the WebSocket process that lets the Worker reach it; if it's not running, the connector reports "desktop offline". Full setup walkthrough: [`docs/remote-access.md`](https://github.com/MaskyS/yutome/blob/main/docs/remote-access.md) and [`cloudflare/yutome-capsule/README.md`](https://github.com/MaskyS/yutome/blob/main/cloudflare/yutome-capsule/README.md).
96
+
97
+ ## Docs
98
+
99
+ See [`docs/README.md`](https://github.com/MaskyS/yutome/blob/main/docs/README.md) for an index. The most useful starting points:
100
+
101
+ - [`docs/remote-access.md`](https://github.com/MaskyS/yutome/blob/main/docs/remote-access.md) — connecting Claude / ChatGPT / agents
102
+ - [`docs/cloud-capsule-strategy.md`](https://github.com/MaskyS/yutome/blob/main/docs/cloud-capsule-strategy.md) — how the Cloudflare Worker is designed
103
+ - [`docs/query-api.md`](https://github.com/MaskyS/yutome/blob/main/docs/query-api.md) — the query language `find` / `q` speak
104
+ - [`docs/plan.md`](https://github.com/MaskyS/yutome/blob/main/docs/plan.md) — internal architecture history (not a usage guide)
105
+
106
+ ## Status
107
+
108
+ **v0.1.0 — early release.** Released under the MIT license; the API and CLI surface may shift between point releases.
109
+
110
+ Found a bug or a confusing doc? Open an issue: <https://github.com/MaskyS/yutome/issues>.
@@ -0,0 +1,119 @@
1
+ [project]
2
+ name = "yutome"
3
+ version = "0.1.0"
4
+ description = "A local transcript library for the YouTube channels you point at"
5
+ readme = "README.md"
6
+ requires-python = ">=3.11"
7
+ license = "MIT"
8
+ license-files = ["LICENSE"]
9
+ authors = [
10
+ { name = "Kifah Meeran", email = "contact@maskys.com" },
11
+ ]
12
+ keywords = [
13
+ "youtube",
14
+ "knowledge-base",
15
+ "transcripts",
16
+ "search",
17
+ "mcp",
18
+ "rag",
19
+ "local-first",
20
+ ]
21
+ classifiers = [
22
+ "Development Status :: 3 - Alpha",
23
+ "Intended Audience :: Developers",
24
+ "Intended Audience :: End Users/Desktop",
25
+ "Operating System :: MacOS",
26
+ "Operating System :: POSIX :: Linux",
27
+ "Programming Language :: Python :: 3",
28
+ "Programming Language :: Python :: 3.11",
29
+ "Programming Language :: Python :: 3.12",
30
+ "Programming Language :: Python :: 3.13",
31
+ "Topic :: Multimedia :: Video",
32
+ "Topic :: Text Processing :: Indexing",
33
+ "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
34
+ ]
35
+ dependencies = [
36
+ "pydantic>=2.8,<3",
37
+ "rapidfuzz>=3.14.5",
38
+ "typer>=0.12,<1",
39
+ "websockets>=13",
40
+ "wordfreq>=3.1.1",
41
+ ]
42
+
43
+ [project.urls]
44
+ Homepage = "https://github.com/MaskyS/yutome"
45
+ Repository = "https://github.com/MaskyS/yutome"
46
+ Issues = "https://github.com/MaskyS/yutome/issues"
47
+
48
+ [project.optional-dependencies]
49
+ ingest = [
50
+ "curl-cffi>=0.11,<0.15",
51
+ "yt-dlp>=2025.6.9",
52
+ "youtube-transcript-api>=1.2",
53
+ ]
54
+ vectors = [
55
+ "lancedb>=0.20",
56
+ ]
57
+ asr = [
58
+ "faster-whisper>=1.1",
59
+ ]
60
+ embeddings = [
61
+ "voyageai>=0.3",
62
+ ]
63
+ gemini = [
64
+ "google-genai>=1.40",
65
+ ]
66
+ mcp = [
67
+ "mcp[cli]>=1.20,<2",
68
+ ]
69
+ http = [
70
+ "fastapi>=0.115,<1",
71
+ "uvicorn>=0.30,<1",
72
+ ]
73
+ all = [
74
+ "curl-cffi>=0.11,<0.15",
75
+ "yt-dlp>=2025.6.9",
76
+ "youtube-transcript-api>=1.2",
77
+ "lancedb>=0.20",
78
+ "faster-whisper>=1.1",
79
+ "voyageai>=0.3",
80
+ "google-genai>=1.40",
81
+ "mcp[cli]>=1.20,<2",
82
+ "fastapi>=0.115,<1",
83
+ "uvicorn>=0.30,<1",
84
+ ]
85
+
86
+ [project.scripts]
87
+ yutome = "yutome.cli:app"
88
+
89
+ [dependency-groups]
90
+ dev = [
91
+ "pytest>=8.2,<9",
92
+ ]
93
+
94
+ [build-system]
95
+ requires = ["hatchling"]
96
+ build-backend = "hatchling.build"
97
+
98
+ [tool.hatch.build.targets.wheel]
99
+ packages = ["src/yutome"]
100
+
101
+ [tool.hatch.build.targets.sdist]
102
+ include = [
103
+ "src/yutome",
104
+ "tests",
105
+ "README.md",
106
+ "LICENSE",
107
+ "pyproject.toml",
108
+ ]
109
+ exclude = [
110
+ "cloudflare",
111
+ "docs",
112
+ "data",
113
+ ".env*",
114
+ "*.log",
115
+ ]
116
+
117
+ [tool.pytest.ini_options]
118
+ testpaths = ["tests"]
119
+ pythonpath = ["src"]
@@ -0,0 +1,9 @@
1
+ """YouTube channel knowledge base indexer."""
2
+ from importlib.metadata import PackageNotFoundError, version as _pkg_version
3
+
4
+ __all__ = ["__version__"]
5
+
6
+ try:
7
+ __version__ = _pkg_version("yutome")
8
+ except PackageNotFoundError:
9
+ __version__ = "0.0.0+local"
@@ -0,0 +1,5 @@
1
+ from yutome.cli import app
2
+
3
+
4
+ if __name__ == "__main__":
5
+ app()