codegraph-tools 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.
- codegraph/__init__.py +28 -0
- codegraph/__main__.py +869 -0
- codegraph/analyze.py +525 -0
- codegraph/benchmark.py +129 -0
- codegraph/build.py +78 -0
- codegraph/cache.py +154 -0
- codegraph/cluster.py +137 -0
- codegraph/detect.py +484 -0
- codegraph/export.py +992 -0
- codegraph/extract.py +2719 -0
- codegraph/hooks.py +196 -0
- codegraph/ingest.py +291 -0
- codegraph/manifest.py +4 -0
- codegraph/report.py +155 -0
- codegraph/security.py +197 -0
- codegraph/serve.py +333 -0
- codegraph/skill-aider.md +1137 -0
- codegraph/skill-claw.md +1137 -0
- codegraph/skill-codex.md +1193 -0
- codegraph/skill-copilot.md +1219 -0
- codegraph/skill-droid.md +1190 -0
- codegraph/skill-opencode.md +1189 -0
- codegraph/skill-trae.md +1159 -0
- codegraph/skill-windows.md +1196 -0
- codegraph/skill.md +1222 -0
- codegraph/validate.py +71 -0
- codegraph/watch.py +162 -0
- codegraph/wiki.py +214 -0
- codegraph_tools-0.1.0.dist-info/METADATA +394 -0
- codegraph_tools-0.1.0.dist-info/RECORD +34 -0
- codegraph_tools-0.1.0.dist-info/WHEEL +5 -0
- codegraph_tools-0.1.0.dist-info/entry_points.txt +2 -0
- codegraph_tools-0.1.0.dist-info/licenses/LICENSE +21 -0
- codegraph_tools-0.1.0.dist-info/top_level.txt +1 -0
codegraph/__init__.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""codegraph - extract · build · cluster · analyze · report."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def __getattr__(name):
|
|
5
|
+
# Lazy imports so `codegraph install` works before heavy deps are in place.
|
|
6
|
+
_map = {
|
|
7
|
+
"extract": ("codegraph.extract", "extract"),
|
|
8
|
+
"collect_files": ("codegraph.extract", "collect_files"),
|
|
9
|
+
"build_from_json": ("codegraph.build", "build_from_json"),
|
|
10
|
+
"cluster": ("codegraph.cluster", "cluster"),
|
|
11
|
+
"score_all": ("codegraph.cluster", "score_all"),
|
|
12
|
+
"cohesion_score": ("codegraph.cluster", "cohesion_score"),
|
|
13
|
+
"god_nodes": ("codegraph.analyze", "god_nodes"),
|
|
14
|
+
"surprising_connections": ("codegraph.analyze", "surprising_connections"),
|
|
15
|
+
"suggest_questions": ("codegraph.analyze", "suggest_questions"),
|
|
16
|
+
"generate": ("codegraph.report", "generate"),
|
|
17
|
+
"to_json": ("codegraph.export", "to_json"),
|
|
18
|
+
"to_html": ("codegraph.export", "to_html"),
|
|
19
|
+
"to_svg": ("codegraph.export", "to_svg"),
|
|
20
|
+
"to_canvas": ("codegraph.export", "to_canvas"),
|
|
21
|
+
"to_wiki": ("codegraph.wiki", "to_wiki"),
|
|
22
|
+
}
|
|
23
|
+
if name in _map:
|
|
24
|
+
import importlib
|
|
25
|
+
mod_name, attr = _map[name]
|
|
26
|
+
mod = importlib.import_module(mod_name)
|
|
27
|
+
return getattr(mod, attr)
|
|
28
|
+
raise AttributeError(f"module 'codegraph' has no attribute {name!r}")
|