tldrgraph 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.
- tldrgraph-0.1.0/LICENSE +26 -0
- tldrgraph-0.1.0/PKG-INFO +137 -0
- tldrgraph-0.1.0/README.md +119 -0
- tldrgraph-0.1.0/pyproject.toml +38 -0
- tldrgraph-0.1.0/setup.cfg +4 -0
- tldrgraph-0.1.0/tests/test_agent_loop.py +912 -0
- tldrgraph-0.1.0/tests/test_dynamic_layers.py +262 -0
- tldrgraph-0.1.0/tests/test_embeddings.py +616 -0
- tldrgraph-0.1.0/tests/test_extractors.py +777 -0
- tldrgraph-0.1.0/tests/test_flow_engine.py +404 -0
- tldrgraph-0.1.0/tests/test_hash_gate.py +344 -0
- tldrgraph-0.1.0/tests/test_hierarchy.py +564 -0
- tldrgraph-0.1.0/tests/test_index_write_through.py +215 -0
- tldrgraph-0.1.0/tests/test_layer_config.py +345 -0
- tldrgraph-0.1.0/tests/test_layers.py +324 -0
- tldrgraph-0.1.0/tests/test_persistence.py +264 -0
- tldrgraph-0.1.0/tests/test_scan_smoke.py +97 -0
- tldrgraph-0.1.0/tests/test_visualizer.py +90 -0
- tldrgraph-0.1.0/tests/test_visualizer_source.py +170 -0
- tldrgraph-0.1.0/tldrgraph/__init__.py +5 -0
- tldrgraph-0.1.0/tldrgraph/classifier.py +75 -0
- tldrgraph-0.1.0/tldrgraph/cli.py +930 -0
- tldrgraph-0.1.0/tldrgraph/deadcode.py +354 -0
- tldrgraph-0.1.0/tldrgraph/extractors.py +985 -0
- tldrgraph-0.1.0/tldrgraph/flow_engine.py +492 -0
- tldrgraph-0.1.0/tldrgraph/graph_loader.py +1129 -0
- tldrgraph-0.1.0/tldrgraph/hash_gate.py +128 -0
- tldrgraph-0.1.0/tldrgraph/hierarchy.py +670 -0
- tldrgraph-0.1.0/tldrgraph/installer.py +479 -0
- tldrgraph-0.1.0/tldrgraph/labels.py +170 -0
- tldrgraph-0.1.0/tldrgraph/layer_config.py +168 -0
- tldrgraph-0.1.0/tldrgraph/layers.py +357 -0
- tldrgraph-0.1.0/tldrgraph/llm_enricher.py +350 -0
- tldrgraph-0.1.0/tldrgraph/propose_layers.py +689 -0
- tldrgraph-0.1.0/tldrgraph/rules.py +148 -0
- tldrgraph-0.1.0/tldrgraph/vector_store.py +873 -0
- tldrgraph-0.1.0/tldrgraph/visualizer/__init__.py +35 -0
- tldrgraph-0.1.0/tldrgraph/visualizer/assets/app.css +1006 -0
- tldrgraph-0.1.0/tldrgraph/visualizer/assets/app.js +2590 -0
- tldrgraph-0.1.0/tldrgraph/visualizer/assets/index.html +178 -0
- tldrgraph-0.1.0/tldrgraph/visualizer/assets/sourceview.js +528 -0
- tldrgraph-0.1.0/tldrgraph/visualizer/data.py +380 -0
- tldrgraph-0.1.0/tldrgraph/visualizer/palette.py +66 -0
- tldrgraph-0.1.0/tldrgraph/visualizer/render.py +68 -0
- tldrgraph-0.1.0/tldrgraph/visualizer/source.py +313 -0
- tldrgraph-0.1.0/tldrgraph.egg-info/PKG-INFO +137 -0
- tldrgraph-0.1.0/tldrgraph.egg-info/SOURCES.txt +49 -0
- tldrgraph-0.1.0/tldrgraph.egg-info/dependency_links.txt +1 -0
- tldrgraph-0.1.0/tldrgraph.egg-info/entry_points.txt +3 -0
- tldrgraph-0.1.0/tldrgraph.egg-info/requires.txt +9 -0
- tldrgraph-0.1.0/tldrgraph.egg-info/top_level.txt +1 -0
tldrgraph-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vikrant & TLDRGraph Contributors
|
|
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.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
### Acknowledgements & Upstream Credits
|
|
25
|
+
TLDRGraph relies on and gives sincere credit to:
|
|
26
|
+
- **Graphify** (https://github.com/safishamsi/graphify) by Safi Shamsi, the powerful AST & knowledge graph engine.
|
tldrgraph-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tldrgraph
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: See the flow of your spaghetti code, VibeCoders. Instant multi-layer architecture & semantic call tracing.
|
|
5
|
+
License: MIT
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: click>=8.0
|
|
10
|
+
Requires-Dist: pyyaml>=6.0
|
|
11
|
+
Requires-Dist: networkx>=3.0
|
|
12
|
+
Requires-Dist: tabulate>=0.9.0
|
|
13
|
+
Requires-Dist: graphifyy>=0.9.0
|
|
14
|
+
Provides-Extra: embeddings
|
|
15
|
+
Requires-Dist: fastembed>=0.3; extra == "embeddings"
|
|
16
|
+
Requires-Dist: numpy>=1.24; extra == "embeddings"
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
<img src="assets/tldrgraph_logo.svg" alt="TLDRGraph Logo" width="380" />
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
<h1 align="center">TLDRGraph 🌐</h1>
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<strong>See the flow of your spaghetti code, VibeCoders.</strong> 🍝➡️⚡<br>
|
|
27
|
+
<em>Dynamic Multi-Layer Code Flow, Instant Semantic Call Tracing, and Interactive Architectural Navigation.</em>
|
|
28
|
+
</p>
|
|
29
|
+
|
|
30
|
+
<p align="center">
|
|
31
|
+
<a href="https://pypi.org/project/tldrgraph/"><img src="https://img.shields.io/pypi/v/tldrgraph.svg" alt="PyPI version"></a>
|
|
32
|
+
<a href="https://pypi.org/project/tldrgraph/"><img src="https://img.shields.io/pypi/pyversions/tldrgraph.svg" alt="Python versions"></a>
|
|
33
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a>
|
|
34
|
+
<a href="https://github.com/safishamsi/graphify"><img src="https://img.shields.io/badge/AST%20Engine-Graphify-emerald.svg" alt="Powered by Graphify"></a>
|
|
35
|
+
</p>
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 💡 What is TLDRGraph?
|
|
40
|
+
|
|
41
|
+
Modern codebases are messy. Microservices, multi-layer abstractions, dynamic API routes, and ORM calls create cognitive overload.
|
|
42
|
+
|
|
43
|
+
**TLDRGraph** cuts through the noise. It dynamically classifies your repository into tailored architectural layers, extracts cross-layer execution seams, tracks changes using zero-token SHA-256 hash gating, and provides both **CLI flow tables** and a **lightning-fast standalone visualizer**.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## 🏛️ Dynamic Architectural Layers
|
|
48
|
+
|
|
49
|
+
Rather than forcing every project into a rigid model, TLDRGraph automatically detects your codebase archetype or synthesizes dynamic architectural layers directly into `.tldrgraph/layers.config.yaml`:
|
|
50
|
+
|
|
51
|
+
- **Full-Stack Web:** Presentation & UI $\rightarrow$ API Gateway $\rightarrow$ Domain Services $\rightarrow$ Data & Persistence $\rightarrow$ Async Tasks $\rightarrow$ DevOps
|
|
52
|
+
- **Backend APIs:** API & Handlers $\rightarrow$ Domain Services $\rightarrow$ Persistence & Repositories $\rightarrow$ Background Jobs $\rightarrow$ Utilities
|
|
53
|
+
- **CLI Applications:** CLI & Commands $\rightarrow$ Core Flow Engine $\rightarrow$ Storage & Index $\rightarrow$ Agent Loop & UI $\rightarrow$ Utilities
|
|
54
|
+
- **Libraries & SDKs:** Public API $\rightarrow$ Core Engine $\rightarrow$ Types & Models $\rightarrow$ Adapters $\rightarrow$ Utilities
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🚀 Quickstart
|
|
59
|
+
|
|
60
|
+
### 1. Install TLDRGraph
|
|
61
|
+
```bash
|
|
62
|
+
pip install tldrgraph
|
|
63
|
+
```
|
|
64
|
+
*(For optional local ONNX neural embeddings: `pip install "tldrgraph[embeddings]"`)*
|
|
65
|
+
|
|
66
|
+
### 2. Scan & Classify Repository
|
|
67
|
+
```bash
|
|
68
|
+
tldrgraph scan .
|
|
69
|
+
```
|
|
70
|
+
This runs Graphify AST extraction, classifies architectural layers, builds offline local search indices, and creates `.tldrgraph/layers.yaml`.
|
|
71
|
+
|
|
72
|
+
### 3. Explore the Architecture Visually
|
|
73
|
+
```bash
|
|
74
|
+
tldrgraph ui --serve
|
|
75
|
+
```
|
|
76
|
+
Opens the interactive canvas:
|
|
77
|
+
- **Modules overview** at low zoom.
|
|
78
|
+
- **Symbol details** (classes, methods, inputs, outputs) as you zoom in.
|
|
79
|
+
- **Click-to-isolate** focused nodes with upstream callers and downstream callees.
|
|
80
|
+
- **Live source viewing** on demand with zero static HTML bloat.
|
|
81
|
+
- **⚠️ Dead Nodes filter** to immediately isolate unreferenced candidate symbols.
|
|
82
|
+
|
|
83
|
+
### 4. Query Execution Flows
|
|
84
|
+
```bash
|
|
85
|
+
tldrgraph query "pension application approval flow"
|
|
86
|
+
```
|
|
87
|
+
Outputs readable Markdown execution flow tables tracing the request across UI, API, Service, and DB layers.
|
|
88
|
+
|
|
89
|
+
### 5. Trace Exact Call Paths
|
|
90
|
+
```bash
|
|
91
|
+
tldrgraph trace "ApplicationsController" "JhPensionApplication"
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### 6. Review Dead Code & Reachability
|
|
95
|
+
```bash
|
|
96
|
+
tldrgraph dead-code
|
|
97
|
+
```
|
|
98
|
+
Surfaces orphaned components, unreferenced models, and unused files for human review.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 🤖 AI Assistant Rules (`tldrgraph install`)
|
|
103
|
+
|
|
104
|
+
TLDRGraph supports seamless pairing with AI coding assistants (Claude Code, Cursor, and Antigravity):
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
tldrgraph install
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Automatically writes agent instructions pointing to `.tldrgraph/AGENT_CONTRACT.md`:
|
|
111
|
+
- `.claude/skills/tldrgraph/SKILL.md` + delimited section in `CLAUDE.md` (Claude Code)
|
|
112
|
+
- `.cursor/rules/tldrgraph.mdc` (Cursor)
|
|
113
|
+
- `.agents/rules/tldrgraph.md` (Antigravity)
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## 📁 Artifacts & Output Formats
|
|
118
|
+
|
|
119
|
+
All project state is kept in `.tldrgraph/` (with automatic fallback to `.codechakra/`):
|
|
120
|
+
- `.tldrgraph/graph.json` : Persisted multi-layer graph snapshot with cross-layer edges.
|
|
121
|
+
- `.tldrgraph/layers.yaml`: Layer distribution and node definitions.
|
|
122
|
+
- `.tldrgraph/flows.yaml` : Exported trace paths.
|
|
123
|
+
- `.tldrgraph/tldrgraph.db`: Local SQLite content-hash cache for zero-token incremental updates.
|
|
124
|
+
- `.tldrgraph/TLDRGRAPH_VISUALIZER.html`: Standalone zero-dependency visualizer.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 🙏 Acknowledgements & Upstream Credits
|
|
129
|
+
|
|
130
|
+
TLDRGraph is built on the shoulders of giants. Sincere credit and special thanks to:
|
|
131
|
+
- **[Graphify](https://github.com/safishamsi/graphify)** by [Safi Shamsi](https://github.com/safishamsi) — for the AST parsing and knowledge graph extraction foundation.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 📄 License
|
|
136
|
+
|
|
137
|
+
Distributed under the [MIT License](LICENSE).
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="assets/tldrgraph_logo.svg" alt="TLDRGraph Logo" width="380" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">TLDRGraph 🌐</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>See the flow of your spaghetti code, VibeCoders.</strong> 🍝➡️⚡<br>
|
|
9
|
+
<em>Dynamic Multi-Layer Code Flow, Instant Semantic Call Tracing, and Interactive Architectural Navigation.</em>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://pypi.org/project/tldrgraph/"><img src="https://img.shields.io/pypi/v/tldrgraph.svg" alt="PyPI version"></a>
|
|
14
|
+
<a href="https://pypi.org/project/tldrgraph/"><img src="https://img.shields.io/pypi/pyversions/tldrgraph.svg" alt="Python versions"></a>
|
|
15
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a>
|
|
16
|
+
<a href="https://github.com/safishamsi/graphify"><img src="https://img.shields.io/badge/AST%20Engine-Graphify-emerald.svg" alt="Powered by Graphify"></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 💡 What is TLDRGraph?
|
|
22
|
+
|
|
23
|
+
Modern codebases are messy. Microservices, multi-layer abstractions, dynamic API routes, and ORM calls create cognitive overload.
|
|
24
|
+
|
|
25
|
+
**TLDRGraph** cuts through the noise. It dynamically classifies your repository into tailored architectural layers, extracts cross-layer execution seams, tracks changes using zero-token SHA-256 hash gating, and provides both **CLI flow tables** and a **lightning-fast standalone visualizer**.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 🏛️ Dynamic Architectural Layers
|
|
30
|
+
|
|
31
|
+
Rather than forcing every project into a rigid model, TLDRGraph automatically detects your codebase archetype or synthesizes dynamic architectural layers directly into `.tldrgraph/layers.config.yaml`:
|
|
32
|
+
|
|
33
|
+
- **Full-Stack Web:** Presentation & UI $\rightarrow$ API Gateway $\rightarrow$ Domain Services $\rightarrow$ Data & Persistence $\rightarrow$ Async Tasks $\rightarrow$ DevOps
|
|
34
|
+
- **Backend APIs:** API & Handlers $\rightarrow$ Domain Services $\rightarrow$ Persistence & Repositories $\rightarrow$ Background Jobs $\rightarrow$ Utilities
|
|
35
|
+
- **CLI Applications:** CLI & Commands $\rightarrow$ Core Flow Engine $\rightarrow$ Storage & Index $\rightarrow$ Agent Loop & UI $\rightarrow$ Utilities
|
|
36
|
+
- **Libraries & SDKs:** Public API $\rightarrow$ Core Engine $\rightarrow$ Types & Models $\rightarrow$ Adapters $\rightarrow$ Utilities
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 🚀 Quickstart
|
|
41
|
+
|
|
42
|
+
### 1. Install TLDRGraph
|
|
43
|
+
```bash
|
|
44
|
+
pip install tldrgraph
|
|
45
|
+
```
|
|
46
|
+
*(For optional local ONNX neural embeddings: `pip install "tldrgraph[embeddings]"`)*
|
|
47
|
+
|
|
48
|
+
### 2. Scan & Classify Repository
|
|
49
|
+
```bash
|
|
50
|
+
tldrgraph scan .
|
|
51
|
+
```
|
|
52
|
+
This runs Graphify AST extraction, classifies architectural layers, builds offline local search indices, and creates `.tldrgraph/layers.yaml`.
|
|
53
|
+
|
|
54
|
+
### 3. Explore the Architecture Visually
|
|
55
|
+
```bash
|
|
56
|
+
tldrgraph ui --serve
|
|
57
|
+
```
|
|
58
|
+
Opens the interactive canvas:
|
|
59
|
+
- **Modules overview** at low zoom.
|
|
60
|
+
- **Symbol details** (classes, methods, inputs, outputs) as you zoom in.
|
|
61
|
+
- **Click-to-isolate** focused nodes with upstream callers and downstream callees.
|
|
62
|
+
- **Live source viewing** on demand with zero static HTML bloat.
|
|
63
|
+
- **⚠️ Dead Nodes filter** to immediately isolate unreferenced candidate symbols.
|
|
64
|
+
|
|
65
|
+
### 4. Query Execution Flows
|
|
66
|
+
```bash
|
|
67
|
+
tldrgraph query "pension application approval flow"
|
|
68
|
+
```
|
|
69
|
+
Outputs readable Markdown execution flow tables tracing the request across UI, API, Service, and DB layers.
|
|
70
|
+
|
|
71
|
+
### 5. Trace Exact Call Paths
|
|
72
|
+
```bash
|
|
73
|
+
tldrgraph trace "ApplicationsController" "JhPensionApplication"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 6. Review Dead Code & Reachability
|
|
77
|
+
```bash
|
|
78
|
+
tldrgraph dead-code
|
|
79
|
+
```
|
|
80
|
+
Surfaces orphaned components, unreferenced models, and unused files for human review.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## 🤖 AI Assistant Rules (`tldrgraph install`)
|
|
85
|
+
|
|
86
|
+
TLDRGraph supports seamless pairing with AI coding assistants (Claude Code, Cursor, and Antigravity):
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
tldrgraph install
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Automatically writes agent instructions pointing to `.tldrgraph/AGENT_CONTRACT.md`:
|
|
93
|
+
- `.claude/skills/tldrgraph/SKILL.md` + delimited section in `CLAUDE.md` (Claude Code)
|
|
94
|
+
- `.cursor/rules/tldrgraph.mdc` (Cursor)
|
|
95
|
+
- `.agents/rules/tldrgraph.md` (Antigravity)
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 📁 Artifacts & Output Formats
|
|
100
|
+
|
|
101
|
+
All project state is kept in `.tldrgraph/` (with automatic fallback to `.codechakra/`):
|
|
102
|
+
- `.tldrgraph/graph.json` : Persisted multi-layer graph snapshot with cross-layer edges.
|
|
103
|
+
- `.tldrgraph/layers.yaml`: Layer distribution and node definitions.
|
|
104
|
+
- `.tldrgraph/flows.yaml` : Exported trace paths.
|
|
105
|
+
- `.tldrgraph/tldrgraph.db`: Local SQLite content-hash cache for zero-token incremental updates.
|
|
106
|
+
- `.tldrgraph/TLDRGRAPH_VISUALIZER.html`: Standalone zero-dependency visualizer.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 🙏 Acknowledgements & Upstream Credits
|
|
111
|
+
|
|
112
|
+
TLDRGraph is built on the shoulders of giants. Sincere credit and special thanks to:
|
|
113
|
+
- **[Graphify](https://github.com/safishamsi/graphify)** by [Safi Shamsi](https://github.com/safishamsi) — for the AST parsing and knowledge graph extraction foundation.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## 📄 License
|
|
118
|
+
|
|
119
|
+
Distributed under the [MIT License](LICENSE).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tldrgraph"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "See the flow of your spaghetti code, VibeCoders. Instant multi-layer architecture & semantic call tracing."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { text = "MIT" }
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
dependencies = [
|
|
13
|
+
"click>=8.0",
|
|
14
|
+
"pyyaml>=6.0",
|
|
15
|
+
"networkx>=3.0",
|
|
16
|
+
"tabulate>=0.9.0",
|
|
17
|
+
"graphifyy>=0.9.0",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.optional-dependencies]
|
|
21
|
+
# Dense (ONNX) retrieval. OPTIONAL on purpose: it pulls onnxruntime and needs a
|
|
22
|
+
# ~67 MB model download, and TLDRGraph must stay fully usable on TF-IDF alone.
|
|
23
|
+
# Nothing in the default install path imports these.
|
|
24
|
+
embeddings = [
|
|
25
|
+
"fastembed>=0.3",
|
|
26
|
+
"numpy>=1.24",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
tldrgraph = "tldrgraph.cli:main"
|
|
31
|
+
codechakra = "tldrgraph.cli:main"
|
|
32
|
+
|
|
33
|
+
[tool.setuptools.packages.find]
|
|
34
|
+
where = ["."]
|
|
35
|
+
include = ["tldrgraph*"]
|
|
36
|
+
|
|
37
|
+
[tool.setuptools.package-data]
|
|
38
|
+
"tldrgraph.visualizer" = ["assets/*.html", "assets/*.css", "assets/*.js"]
|