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.
Files changed (47) hide show
  1. anatomize/__init__.py +43 -0
  2. anatomize/cli.py +740 -0
  3. anatomize/config.py +219 -0
  4. anatomize/core/__init__.py +21 -0
  5. anatomize/core/discovery.py +207 -0
  6. anatomize/core/exclude.py +224 -0
  7. anatomize/core/extractor.py +610 -0
  8. anatomize/core/parser.py +473 -0
  9. anatomize/core/policy.py +15 -0
  10. anatomize/core/types.py +339 -0
  11. anatomize/formats/__init__.py +157 -0
  12. anatomize/formats/json_fmt.py +128 -0
  13. anatomize/formats/markdown_fmt.py +292 -0
  14. anatomize/formats/payloads.py +131 -0
  15. anatomize/formats/yaml_fmt.py +139 -0
  16. anatomize/generators/__init__.py +5 -0
  17. anatomize/generators/main.py +230 -0
  18. anatomize/pack/__init__.py +12 -0
  19. anatomize/pack/compress.py +86 -0
  20. anatomize/pack/deps.py +233 -0
  21. anatomize/pack/discovery.py +127 -0
  22. anatomize/pack/formats.py +316 -0
  23. anatomize/pack/ignore.py +61 -0
  24. anatomize/pack/jsonl.py +113 -0
  25. anatomize/pack/limit.py +70 -0
  26. anatomize/pack/match.py +115 -0
  27. anatomize/pack/mode.py +11 -0
  28. anatomize/pack/overview.py +134 -0
  29. anatomize/pack/pyright_lsp.py +326 -0
  30. anatomize/pack/representations.py +132 -0
  31. anatomize/pack/runner.py +1474 -0
  32. anatomize/pack/slicing.py +11 -0
  33. anatomize/pack/summaries.py +125 -0
  34. anatomize/pack/tokens.py +34 -0
  35. anatomize/pack/tree.py +82 -0
  36. anatomize/pack/uses.py +84 -0
  37. anatomize/py.typed +1 -0
  38. anatomize/schemas/__init__.py +1 -0
  39. anatomize/schemas/hierarchy.schema.json +39 -0
  40. anatomize/schemas/module.schema.json +86 -0
  41. anatomize/validation.py +150 -0
  42. anatomize/version.py +4 -0
  43. anatomize-0.1.0.dist-info/METADATA +307 -0
  44. anatomize-0.1.0.dist-info/RECORD +47 -0
  45. anatomize-0.1.0.dist-info/WHEEL +4 -0
  46. anatomize-0.1.0.dist-info/entry_points.txt +2 -0
  47. 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
+ ]