anatomize 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.
- anatomize/__init__.py +43 -0
- anatomize/cli.py +740 -0
- anatomize/config.py +219 -0
- anatomize/core/__init__.py +21 -0
- anatomize/core/discovery.py +207 -0
- anatomize/core/exclude.py +224 -0
- anatomize/core/extractor.py +610 -0
- anatomize/core/parser.py +473 -0
- anatomize/core/policy.py +15 -0
- anatomize/core/types.py +339 -0
- anatomize/formats/__init__.py +157 -0
- anatomize/formats/json_fmt.py +128 -0
- anatomize/formats/markdown_fmt.py +292 -0
- anatomize/formats/payloads.py +131 -0
- anatomize/formats/yaml_fmt.py +139 -0
- anatomize/generators/__init__.py +5 -0
- anatomize/generators/main.py +230 -0
- anatomize/pack/__init__.py +12 -0
- anatomize/pack/compress.py +86 -0
- anatomize/pack/deps.py +233 -0
- anatomize/pack/discovery.py +127 -0
- anatomize/pack/formats.py +316 -0
- anatomize/pack/ignore.py +61 -0
- anatomize/pack/jsonl.py +113 -0
- anatomize/pack/limit.py +70 -0
- anatomize/pack/match.py +115 -0
- anatomize/pack/mode.py +11 -0
- anatomize/pack/overview.py +134 -0
- anatomize/pack/pyright_lsp.py +326 -0
- anatomize/pack/representations.py +132 -0
- anatomize/pack/runner.py +1474 -0
- anatomize/pack/slicing.py +11 -0
- anatomize/pack/summaries.py +125 -0
- anatomize/pack/tokens.py +34 -0
- anatomize/pack/tree.py +82 -0
- anatomize/pack/uses.py +84 -0
- anatomize/py.typed +1 -0
- anatomize/schemas/__init__.py +1 -0
- anatomize/schemas/hierarchy.schema.json +39 -0
- anatomize/schemas/module.schema.json +86 -0
- anatomize/validation.py +150 -0
- anatomize/version.py +4 -0
- anatomize-0.1.0.dist-info/METADATA +307 -0
- anatomize-0.1.0.dist-info/RECORD +47 -0
- anatomize-0.1.0.dist-info/WHEEL +4 -0
- anatomize-0.1.0.dist-info/entry_points.txt +2 -0
- anatomize-0.1.0.dist-info/licenses/LICENSE +21 -0
anatomize/__init__.py
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Anatomize - Generate token-efficient codebase packs and skeleton maps for AI review.
|
|
2
|
+
|
|
3
|
+
This package provides tools to extract and serialize codebase structure
|
|
4
|
+
at multiple resolution levels, optimized for LLM context efficiency.
|
|
5
|
+
|
|
6
|
+
Example
|
|
7
|
+
-------
|
|
8
|
+
>>> from anatomize import OutputFormat, SkeletonGenerator
|
|
9
|
+
>>> from anatomize.formats import write_skeleton
|
|
10
|
+
>>> gen = SkeletonGenerator(sources=["./src"])
|
|
11
|
+
>>> skeleton = gen.generate(level="modules")
|
|
12
|
+
>>> write_skeleton(skeleton, ".skeleton", formats=[OutputFormat.YAML])
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from anatomize.core.types import (
|
|
16
|
+
ClassInfo,
|
|
17
|
+
FunctionInfo,
|
|
18
|
+
ModuleInfo,
|
|
19
|
+
PackageInfo,
|
|
20
|
+
Skeleton,
|
|
21
|
+
SkeletonMetadata,
|
|
22
|
+
SymbolInfo,
|
|
23
|
+
)
|
|
24
|
+
from anatomize.formats import OutputFormat
|
|
25
|
+
from anatomize.generators.main import SkeletonGenerator
|
|
26
|
+
from anatomize.version import __version__
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
# Core types
|
|
30
|
+
"SymbolInfo",
|
|
31
|
+
"FunctionInfo",
|
|
32
|
+
"ClassInfo",
|
|
33
|
+
"ModuleInfo",
|
|
34
|
+
"PackageInfo",
|
|
35
|
+
"Skeleton",
|
|
36
|
+
"SkeletonMetadata",
|
|
37
|
+
# Generator
|
|
38
|
+
"SkeletonGenerator",
|
|
39
|
+
# Formats
|
|
40
|
+
"OutputFormat",
|
|
41
|
+
# Version
|
|
42
|
+
"__version__",
|
|
43
|
+
]
|