docugraph 0.1.0__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 (37) hide show
  1. docugraph/__init__.py +24 -0
  2. docugraph/_version.py +28 -0
  3. docugraph/agents/__init__.py +27 -0
  4. docugraph/agents/coding_agent.py +532 -0
  5. docugraph/agents/tools/__init__.py +62 -0
  6. docugraph/agents/tools/graph_query.py +203 -0
  7. docugraph/agents/tools/memory_ops.py +305 -0
  8. docugraph/agents/tools/search_code.py +305 -0
  9. docugraph/agents/tools/search_docs.py +148 -0
  10. docugraph/core/__init__.py +34 -0
  11. docugraph/core/config.py +183 -0
  12. docugraph/core/embeddings.py +394 -0
  13. docugraph/core/llm.py +892 -0
  14. docugraph/core/models.py +145 -0
  15. docugraph/ingestion/__init__.py +64 -0
  16. docugraph/ingestion/api_docs.py +646 -0
  17. docugraph/ingestion/chunker.py +382 -0
  18. docugraph/ingestion/crawler.py +305 -0
  19. docugraph/ingestion/git_indexer.py +556 -0
  20. docugraph/ingestion/local_files.py +516 -0
  21. docugraph/interfaces/__init__.py +1 -0
  22. docugraph/interfaces/cli.py +983 -0
  23. docugraph/interfaces/mcp_server.py +918 -0
  24. docugraph/retrieval/__init__.py +54 -0
  25. docugraph/retrieval/context_builder.py +522 -0
  26. docugraph/retrieval/hybrid_search.py +534 -0
  27. docugraph/retrieval/reranker.py +532 -0
  28. docugraph/storage/__init__.py +14 -0
  29. docugraph/storage/graph_store.py +602 -0
  30. docugraph/storage/memory_store.py +529 -0
  31. docugraph/storage/vector_store.py +367 -0
  32. docugraph-0.1.0.dist-info/METADATA +354 -0
  33. docugraph-0.1.0.dist-info/RECORD +37 -0
  34. docugraph-0.1.0.dist-info/WHEEL +4 -0
  35. docugraph-0.1.0.dist-info/entry_points.txt +3 -0
  36. docugraph-0.1.0.dist-info/licenses/LICENSE +201 -0
  37. docugraph-0.1.0.dist-info/licenses/NOTICE +10 -0
@@ -0,0 +1,354 @@
1
+ Metadata-Version: 2.5
2
+ Name: docugraph
3
+ Version: 0.1.0
4
+ Summary: Documentation RAG for coding agents: vector search, knowledge graph, agent memory, and an MCP server — torch-free local embeddings via fastembed
5
+ Author-email: Jim Cuttler <jimcuttler@gmail.com>
6
+ License: Apache-2.0
7
+ License-File: LICENSE
8
+ License-File: NOTICE
9
+ Keywords: coding-agent,documentation,knowledge-graph,mcp,rag,vector-search
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: Topic :: Software Development :: Documentation
18
+ Requires-Python: <3.14,>=3.11
19
+ Requires-Dist: aiofiles>=23.2.0
20
+ Requires-Dist: click>=8.1.0
21
+ Requires-Dist: crawl4ai>=0.7.8
22
+ Requires-Dist: fastembed>=0.4.0
23
+ Requires-Dist: graphiti-core[kuzu]==0.30.2
24
+ Requires-Dist: httpx>=0.27.0
25
+ Requires-Dist: kuzu==0.11.3
26
+ Requires-Dist: lancedb<0.26,>=0.6.0
27
+ Requires-Dist: mcp<2,>=1.0.0
28
+ Requires-Dist: onnxruntime<1.24
29
+ Requires-Dist: pandas>=2.0.0
30
+ Requires-Dist: pyarrow>=15.0.0
31
+ Requires-Dist: pydantic-settings>=2.2.0
32
+ Requires-Dist: pydantic>=2.6.0
33
+ Requires-Dist: pyyaml>=6.0
34
+ Requires-Dist: rich>=13.7.0
35
+ Requires-Dist: tenacity>=8.2.0
36
+ Requires-Dist: typer>=0.9.0
37
+ Requires-Dist: xxhash>=3.4.0
38
+ Provides-Extra: all
39
+ Requires-Dist: anthropic<2,>=0.18.0; extra == 'all'
40
+ Requires-Dist: cohere<8,>=5.0.0; extra == 'all'
41
+ Requires-Dist: ollama>=0.1.0; extra == 'all'
42
+ Requires-Dist: openai<4,>=1.12.0; extra == 'all'
43
+ Provides-Extra: cloud
44
+ Requires-Dist: anthropic<2,>=0.18.0; extra == 'cloud'
45
+ Requires-Dist: cohere<8,>=5.0.0; extra == 'cloud'
46
+ Requires-Dist: openai<4,>=1.12.0; extra == 'cloud'
47
+ Provides-Extra: dev
48
+ Requires-Dist: mypy>=1.8.0; extra == 'dev'
49
+ Requires-Dist: pre-commit>=3.6.0; extra == 'dev'
50
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
51
+ Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
52
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
53
+ Requires-Dist: ruff>=0.16.0; extra == 'dev'
54
+ Requires-Dist: types-pyyaml; extra == 'dev'
55
+ Provides-Extra: ollama
56
+ Requires-Dist: ollama>=0.1.0; extra == 'ollama'
57
+ Description-Content-Type: text/markdown
58
+
59
+ # DocuGraph AI v1
60
+
61
+ Documentation RAG for coding agents: vector search, a documentation
62
+ knowledge graph, agent memory, and an **MCP server** — with **torch-free
63
+ local embeddings** (pure ONNX via [fastembed](https://github.com/qdrant/fastembed)).
64
+
65
+ The MCP stdio server is the primary surface: it plugs directly into Claude
66
+ Code and other MCP clients. The CLI is for out-of-band index bootstrapping
67
+ (crawl / index / search / stats / memory / graph / config).
68
+
69
+ ## Features
70
+
71
+ - **Multi-source ingestion**: crawl web docs, index local files, clone & index git repos, parse API specs
72
+ - **Hybrid search**: vector similarity + keyword (BM25), fused with RRF
73
+ - **Documentation knowledge graph**: entities/relationships over your docs (Kuzu via Graphiti)
74
+ - **Agent memory**: persistent, repository/branch-scoped key-value store
75
+ - **Optional reranking**: local multilingual cross-encoder (BAAI/bge-reranker-v2-m3), opt-in
76
+ - **Torch-free**: default embeddings and reranking run on ONNX — no PyTorch in the dependency tree
77
+
78
+ ## Quick start
79
+
80
+ ### Installation
81
+
82
+ ```bash
83
+ pip install docugraph
84
+ ```
85
+
86
+ **Requires Python 3.11–3.13.** CI runs the suite on all three, on Linux. Python
87
+ 3.14 is excluded deliberately, for two independent reasons: `kuzu` 0.11.3 — the
88
+ final release, and the version this package pins — publishes no 3.14 wheels for
89
+ macOS or Windows, and fastembed's 3.14 requirement (`onnxruntime>=1.24.2`) cannot
90
+ be satisfied alongside the `onnxruntime<1.24` cap this package carries.
91
+
92
+ Or work from a checkout — clone this repository, then from its root:
93
+
94
+ ```bash
95
+ # With uv (recommended)
96
+ uv sync --extra dev
97
+
98
+ # Or with pip
99
+ python -m venv .venv && source .venv/bin/activate
100
+ pip install -e '.[dev]'
101
+ ```
102
+
103
+ First use downloads the default embedding model (`BAAI/bge-small-en-v1.5`,
104
+ ~130 MB ONNX) and caches it under `FASTEMBED_CACHE_PATH`. Set that variable to
105
+ keep the weights somewhere durable; unset, fastembed puts them in a
106
+ `fastembed_cache` subdirectory of the system temp directory, which the OS is
107
+ free to clear.
108
+
109
+ **URL crawling needs a browser that the Python install does not include.**
110
+ Crawl4AI drives Playwright's Chromium, so run this once before using
111
+ `docugraph crawl` or the `crawl_url` tool:
112
+
113
+ ```bash
114
+ playwright install chromium
115
+ # On Linux, add --with-deps to install the browser's system libraries too:
116
+ # playwright install --with-deps chromium
117
+ ```
118
+
119
+ This is ~190 MB and is cached, so it is a one-off. `index local`, `index git`,
120
+ `search`, `memory` and `stats` do not need it — only fetching a URL does.
121
+
122
+ ### MCP integration with Claude Code (primary surface)
123
+
124
+ The MCP server is a console script, so where it lives depends on how you
125
+ installed the package. For an MCP client, an isolated tool install is the least
126
+ fuss: it puts the script somewhere stable that does not move with a project
127
+ directory.
128
+
129
+ ```bash
130
+ pipx install docugraph # or: uv tool install docugraph
131
+ ```
132
+
133
+ Then ask your shell where it landed:
134
+
135
+ ```bash
136
+ which docugraph-mcp # macOS, Linux
137
+ where docugraph-mcp # Windows
138
+ ```
139
+
140
+ and use that exact path in your Claude Code MCP configuration:
141
+
142
+ ```json
143
+ {
144
+ "mcpServers": {
145
+ "docugraph": {
146
+ "command": "<the path `which docugraph-mcp` printed>",
147
+ "env": {}
148
+ }
149
+ }
150
+ }
151
+ ```
152
+
153
+ An MCP client launches the server directly rather than through a shell, so it
154
+ does not inherit your `PATH`: the short form `"command": "docugraph-mcp"` fails
155
+ with `No such file or directory` even when that directory is on it. That is why
156
+ the path is spelled out.
157
+
158
+ If you would rather not manage an install, this is equivalent and works
159
+ straight from a checkout, with no path to update when it moves:
160
+
161
+ ```json
162
+ {
163
+ "mcpServers": {
164
+ "docugraph": {
165
+ "command": "uv",
166
+ "args": ["--directory", "/absolute/path/to/docugraph", "run", "docugraph-mcp"],
167
+ "env": {}
168
+ }
169
+ }
170
+ }
171
+ ```
172
+
173
+ From a checkout, clone this repository and run `uv sync` (`pip install -e '.[dev]'`
174
+ works too). The script is then at `.venv/bin/docugraph-mcp`
175
+ (`Scripts\docugraph-mcp.exe` on Windows), and that is the path to give the
176
+ client.
177
+
178
+ The server speaks JSON-RPC over stdio and exposes nine tools:
179
+
180
+ | Tool | Purpose |
181
+ |------|---------|
182
+ | `search_docs` | Vector search over indexed documentation |
183
+ | `hybrid_search` | Vector + keyword (+ optional graph) fusion; `rerank` opt-in |
184
+ | `crawl_url` | Crawl a URL and index it ¹ |
185
+ | `index_git` | Clone and index a git repository |
186
+ | `memory_store` | Store a value in repo/branch-scoped agent memory |
187
+ | `memory_recall` | Retrieve a stored value |
188
+ | `graph_query` | Query the documentation knowledge graph ² |
189
+ | `graph_add` | Extract entities/relationships from text into the graph ² |
190
+ | `get_stats` | Indexing statistics |
191
+
192
+ ¹ Needs Playwright's Chromium — see the installation step above.
193
+ ² Needs an LLM configured — Ollama locally, or an OpenAI/Anthropic key. See
194
+ [the knowledge graph section](#the-documentation-knowledge-graph).
195
+
196
+ ### CLI (index bootstrap + one-off commands)
197
+
198
+ Run these from the repository root. `uv sync` installs the `docugraph` command
199
+ into the project's virtual environment but does not put that directory on your
200
+ `PATH`, so each command below is prefixed with `uv run`. If you activated the
201
+ virtual environment (`source .venv/bin/activate`, as the pip instructions do),
202
+ drop the prefix and run them as bare `docugraph …`.
203
+
204
+ ```bash
205
+ # Crawl and index documentation (needs the Chromium install from above)
206
+ uv run docugraph crawl https://fastapi.tiangolo.com/tutorial/first-steps/
207
+
208
+ # Index a local docs directory
209
+ uv run docugraph index local ./docs
210
+
211
+ # Search indexed content
212
+ uv run docugraph search "how to create a path operation"
213
+ uv run docugraph search "async error handling" --top-k 10
214
+
215
+ # Rerank with the local multilingual cross-encoder (downloads about 2 GB once)
216
+ uv run docugraph search "path operations" --rerank
217
+
218
+ # Documentation knowledge graph — needs an LLM (Ollama locally, or an
219
+ # OPENAI_API_KEY/ANTHROPIC_API_KEY); see "The documentation knowledge graph"
220
+ uv run docugraph graph add "FastAPI depends on Starlette and Pydantic."
221
+ uv run docugraph graph search "what does FastAPI depend on?"
222
+
223
+ # Agent memory
224
+ uv run docugraph memory set build.status green
225
+ uv run docugraph memory get build.status
226
+
227
+ # Stats + reset
228
+ uv run docugraph stats
229
+ uv run docugraph clear
230
+
231
+ # Configuration
232
+ uv run docugraph config show
233
+ uv run docugraph config init
234
+
235
+ # Run the MCP server manually (usually launched by the MCP client)
236
+ uv run docugraph mcp-server
237
+ ```
238
+
239
+ ### Python API
240
+
241
+ ```python
242
+ import asyncio
243
+ from docugraph.ingestion.crawler import DocCrawler
244
+ from docugraph.ingestion.chunker import Chunker
245
+ from docugraph.storage.vector_store import VectorStore
246
+
247
+
248
+ async def main():
249
+ crawler = DocCrawler()
250
+ doc = await crawler.crawl_single("https://docs.python.org/3/tutorial/")
251
+
252
+ chunker = Chunker()
253
+ chunks = chunker.chunk_document(doc)
254
+
255
+ store = VectorStore() # embeds with fastembed by default
256
+ store.add_chunks(chunks)
257
+
258
+ results = store.search("how to use lists", top_k=5)
259
+ for r in results:
260
+ print(f"{r.score:.4f}: {r.chunk.content[:100]}...")
261
+
262
+
263
+ asyncio.run(main())
264
+ ```
265
+
266
+ ## Configuration
267
+
268
+ Create `~/.docugraph/config.yaml` (all fields optional — defaults shown):
269
+
270
+ ```yaml
271
+ storage:
272
+ data_dir: ~/.docugraph/data
273
+
274
+ embeddings:
275
+ provider: auto # auto | fastembed | openai | ollama | cohere
276
+ model: BAAI/bge-small-en-v1.5 # fastembed's default; see the note below
277
+ # dimensions: auto-detected from the model
278
+ batch_size: 32
279
+
280
+ crawler:
281
+ max_concurrent: 5
282
+ rate_limit: 2.0
283
+ respect_robots: true
284
+ ```
285
+
286
+ `provider: auto` resolves to **fastembed** (local ONNX) — nothing about your
287
+ environment changes that, so documents are not sent anywhere for embedding
288
+ unless you name a cloud provider. Set `provider: openai` (or `cohere`) to send
289
+ them there; that is the request, and it needs a model named with it: the entry
290
+ above is fastembed's own default and no cloud provider has one. Any field can be
291
+ overridden by environment variable, e.g. `DOCUGRAPH_EMBEDDINGS__MODEL` or
292
+ `DOCUGRAPH_EMBEDDINGS__PROVIDER`.
293
+
294
+ See [docs/configuration.md](https://github.com/CJ-coding-apps/docugraph/blob/main/docs/configuration.md) for the full reference,
295
+ including the embedding-model consistency guard and the graph LLM requirement.
296
+
297
+ ## The documentation knowledge graph
298
+
299
+ DocuGraph builds a temporal entity/relationship graph over your docs (Kuzu,
300
+ via [Graphiti](https://github.com/getzep/graphiti)). Embeddings for the graph
301
+ are served by the same torch-free fastembed adapter — **no embedding service
302
+ required**. However, Graphiti performs entity extraction with an **LLM**, so
303
+ `graph add` / `graph_query` need an LLM configured (Ollama locally, or an
304
+ OpenAI/Anthropic key). Without one, the graph tools degrade gracefully with a
305
+ clear message; vector and keyword search are unaffected.
306
+
307
+ ### KuzuDB version
308
+
309
+ `kuzu` is pinned to `==0.11.3` in `pyproject.toml` (reached through
310
+ `graphiti-core[kuzu]`, which requires `kuzu>=0.11.3`). Kuzu is archived upstream —
311
+ 0.11.3 is the final release — and its on-disk format is not stable before 1.0, so a
312
+ database written by one Kuzu version may not be readable by another. Treat the pin
313
+ as a migration boundary, not a floor: to move versions, upgrade and then re-ingest
314
+ rather than pointing the new version at the old graph file.
315
+
316
+ ## Architecture
317
+
318
+ ```
319
+ ┌─────────────────────────────────────────────────────────────┐
320
+ │ Interfaces │
321
+ │ MCP server │ CLI │
322
+ ├─────────────────────────────────────────────────────────────┤
323
+ │ Retrieval Layer │
324
+ │ Hybrid Search │ Optional Rerank │ Context │
325
+ ├─────────────────────────────────────────────────────────────┤
326
+ │ Storage Layer │
327
+ │ LanceDB (Vectors) │ Kuzu (Graph) │ Memory │
328
+ ├─────────────────────────────────────────────────────────────┤
329
+ │ Ingestion Pipeline │
330
+ │ Crawl4AI │ Chunker │ Graphiti extraction │
331
+ └─────────────────────────────────────────────────────────────┘
332
+ ```
333
+
334
+ ## Technology stack
335
+
336
+ - **Embeddings & reranking**: fastembed (pure ONNX, no torch) — default `bge-small-en-v1.5`; opt-in reranker `bge-reranker-v2-m3`
337
+ - **Vector database**: LanceDB (embedded)
338
+ - **Graph database**: Kuzu via Graphiti (temporal knowledge graphs)
339
+ - **Web crawler**: Crawl4AI (JS rendering, clean Markdown)
340
+ - **MCP**: Model Context Protocol for Claude Code integration
341
+ - Optional cloud/local backends: OpenAI, Cohere, Ollama (extras)
342
+
343
+ ## Acknowledgements
344
+
345
+ This project uses Crawl4AI (https://github.com/unclecode/crawl4ai) for web data extraction.
346
+
347
+ - [fastembed](https://github.com/qdrant/fastembed) — local ONNX embeddings, and the optional reranker.
348
+ - [Graphiti](https://github.com/getzep/graphiti) — temporal knowledge-graph extraction.
349
+ - [LanceDB](https://github.com/lancedb/lancedb) — the embedded vector store.
350
+ - [Kùzu](https://github.com/kuzudb/kuzu) — the embedded graph database.
351
+
352
+ ## License
353
+
354
+ Apache-2.0 — see `LICENSE`, and `NOTICE` for the Crawl4AI attribution.
@@ -0,0 +1,37 @@
1
+ docugraph/__init__.py,sha256=3Af_PlnadjYqTQzhVYcYNBpv-oP8Wj27G5Er9Z4MAFw,589
2
+ docugraph/_version.py,sha256=3zNI1aKwRGHFYn1nXXAN5R6Cvv9jF2R9DV3hXmnizQk,1207
3
+ docugraph/agents/__init__.py,sha256=NiHO0t7eU9M9hOdQsTvekrM7VrJOFfxSYM5bNOTVQ0Y,536
4
+ docugraph/agents/coding_agent.py,sha256=w9fNieEtHDkI_AMU63muj-ve75l8rrIIReQ_kp5dBVY,18104
5
+ docugraph/agents/tools/__init__.py,sha256=lxd4Sm2aee5-D32vor0ADwL50Vr_XIrS_pcyN8YM9OA,1321
6
+ docugraph/agents/tools/graph_query.py,sha256=WPocB7R7CqZomgtDUgeNPqRwLtAUlWdUV0ovI2LcIOQ,5645
7
+ docugraph/agents/tools/memory_ops.py,sha256=2bgWFD6BGWre79-d3xHKE_qMZiYrho3swszTJgEVOXU,8249
8
+ docugraph/agents/tools/search_code.py,sha256=qfDRV6jWTPlxOddPRpfbnTlUWDe_sIex8Ui5AklnB2U,8483
9
+ docugraph/agents/tools/search_docs.py,sha256=ioegZ0s_ZiH5zqnAMoObd0V2gmLiLxfq1GvEQStvrR4,4142
10
+ docugraph/core/__init__.py,sha256=G_0IriO-GIexfhrEAauIe1-GMEerStAoeKtLCGIVuZ8,818
11
+ docugraph/core/config.py,sha256=mN7gYnCVaKxlPScGf5OXUJ1FjmV7elJW7MEQov3g5u8,6166
12
+ docugraph/core/embeddings.py,sha256=5e-eZf2FBi-KLNa9T0NNF0aeMsvVcsb9AY7SI-Niv8U,14198
13
+ docugraph/core/llm.py,sha256=KhQjTc08fYIa8LcMz-WG4QZKF9HsxG7C7gXQDCXA3uw,35631
14
+ docugraph/core/models.py,sha256=pkxaQtjCYprJu8JkhZVFgent4b9jIpOTpNUJspAb_tM,3964
15
+ docugraph/ingestion/__init__.py,sha256=iQwV0oL2PKe3Ea_doLo27MZ0_oWYdyTHy8slNTuEXLI,1276
16
+ docugraph/ingestion/api_docs.py,sha256=yk2HbkjfWSTHDXh-4iw-iOMsdNiZN4xMkKVMVXnruFs,21505
17
+ docugraph/ingestion/chunker.py,sha256=QleW6U8uSfsX7Xtz6I8M1DQcf5vqOzxLkjB6_R3tsWI,13926
18
+ docugraph/ingestion/crawler.py,sha256=6UOmmIfSBaFtPrWka1qnIQc-tqNg2sQiT5EK3Rhs4CQ,10621
19
+ docugraph/ingestion/git_indexer.py,sha256=8D-tGAmJF0sKbe-wnu5ieFoL5UBnBs-ScnOy6-CNMMI,15754
20
+ docugraph/ingestion/local_files.py,sha256=pT_leJnOExxLfO7twkNORWxIsbXzS4kYtpIUYaiVvvM,14370
21
+ docugraph/interfaces/__init__.py,sha256=gZy7xxNsen6vq7AMYr1wWSC9ZqfB2K7llKzCr2mUEFk,43
22
+ docugraph/interfaces/cli.py,sha256=EDtso2umC3dyDYp2mfQCd-Oa_FJos7aT7-vYZOY1amU,31310
23
+ docugraph/interfaces/mcp_server.py,sha256=kxV8fhW8x3gQQ8rWv-MtxW8vdPZZpltRLVFQbg_eAWU,33306
24
+ docugraph/retrieval/__init__.py,sha256=vhGj6LNHDbk87zVNmSDHRWpUqg7M1m8bizlJO3TjZjE,1138
25
+ docugraph/retrieval/context_builder.py,sha256=qDAbVkbWg3WAhIJXbbulx3qGITayiTsaF0gKgDjvdSw,16470
26
+ docugraph/retrieval/hybrid_search.py,sha256=umepTYwfwrbSK3yhf1knmL94ZrP-8oBdBa7MwAezLOM,18703
27
+ docugraph/retrieval/reranker.py,sha256=MywIHhH3XY5MzlC7XtEFvNF3Xc8bYeFVRdrHYQsLIa4,16480
28
+ docugraph/storage/__init__.py,sha256=0wodNucppH6zaroPu9_iIZR5xdOFk73mfWrN1YGBWg0,428
29
+ docugraph/storage/graph_store.py,sha256=q2dsFavyraXcfRbSI41NHF0T6kkusJjVFeXiV2IljPU,22570
30
+ docugraph/storage/memory_store.py,sha256=scfZJOwLtgnoq1zJueQbyeLk36AQrnA-cPdcSM7QQwM,16343
31
+ docugraph/storage/vector_store.py,sha256=4Ye3q2iW8oWJkR8LOn1oFriTG4SkaPpzWm843MDu4Mw,12173
32
+ docugraph-0.1.0.dist-info/METADATA,sha256=-wbxLczxsScEeBQO_tCzUO0iDoxxKdGIFHEEdigR5q8,14109
33
+ docugraph-0.1.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
34
+ docugraph-0.1.0.dist-info/entry_points.txt,sha256=UPYSMKQ3NU9DP-yujqRSO4Ev4aSANdoAhO-s6SHldrY,113
35
+ docugraph-0.1.0.dist-info/licenses/LICENSE,sha256=de-gfE0q-xTYImzwC3dj3S7BxVhanf6RmIGjo_7y3aw,11357
36
+ docugraph-0.1.0.dist-info/licenses/NOTICE,sha256=OfYN4HWEjampxxFJC9PYWeRI44VvnQVO2Lo5gKvVmps,476
37
+ docugraph-0.1.0.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,3 @@
1
+ [console_scripts]
2
+ docugraph = docugraph.interfaces.cli:main
3
+ docugraph-mcp = docugraph.interfaces.mcp_server:main
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or Derivative
95
+ Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,10 @@
1
+ DocuGraph
2
+ Copyright 2026 Jim Cuttler
3
+
4
+ Licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ This product includes software developed by UncleCode (https://x.com/unclecode)
7
+ as part of the Crawl4AI project (https://github.com/unclecode/crawl4ai).
8
+ Crawl4AI is used unmodified as the web-crawling library behind `docugraph crawl`
9
+ and the `crawl_url` tool. Its license (Apache-2.0 with an attribution clause) is
10
+ at https://github.com/unclecode/crawl4ai/blob/main/LICENSE.