code2docs 3.0.31__tar.gz → 3.0.33__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.
- {code2docs-3.0.31 → code2docs-3.0.33}/PKG-INFO +5 -5
- {code2docs-3.0.31 → code2docs-3.0.33}/README.md +4 -4
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/__init__.py +1 -1
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/examples_gen.py +6 -34
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs.egg-info/PKG-INFO +5 -5
- {code2docs-3.0.31 → code2docs-3.0.33}/pyproject.toml +1 -1
- {code2docs-3.0.31 → code2docs-3.0.33}/LICENSE +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/__main__.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/analyzers/__init__.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/analyzers/dependency_scanner.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/analyzers/docstring_extractor.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/analyzers/endpoint_detector.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/analyzers/markdown_validator.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/analyzers/project_scanner.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/base.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/cli.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/config.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/examples/advanced_usage.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/examples/quickstart.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/formatters/__init__.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/formatters/badges.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/formatters/markdown.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/formatters/toc.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/__init__.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/_registry_adapters.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/_source_links.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/api_changelog_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/api_reference_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/architecture_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/changelog_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/code2llm_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/config_docs_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/contributing_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/coverage_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/depgraph_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/getting_started_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/mkdocs_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/module_docs_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/org_readme_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/generators/readme_gen.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/llm_helper.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/registry.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/sync/__init__.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/sync/differ.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/sync/updater.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/sync/watcher.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/templates/api_module.md.j2 +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/templates/architecture.md.j2 +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/templates/example_usage.py.j2 +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/templates/index.md.j2 +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/templates/module_doc.md.j2 +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs/templates/readme.md.j2 +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs.egg-info/SOURCES.txt +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs.egg-info/dependency_links.txt +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs.egg-info/entry_points.txt +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs.egg-info/requires.txt +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/code2docs.egg-info/top_level.txt +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/setup.cfg +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_analyzers.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_cli.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_code2docs.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_config.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_formatters.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_generators.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_llm_helper.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_markdown_validator.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_registry.py +0 -0
- {code2docs-3.0.31 → code2docs-3.0.33}/tests/test_sync.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code2docs
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.33
|
|
4
4
|
Summary: Auto-generate and sync project documentation from source code analysis
|
|
5
5
|
Author-email: Tom Sapletta <tom@sapletta.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -53,17 +53,17 @@ Dynamic: license-file
|
|
|
53
53
|
|
|
54
54
|
## AI Cost Tracking
|
|
55
55
|
|
|
56
|
-
    
|
|
57
57
|
  
|
|
58
58
|
|
|
59
|
-
- 🤖 **LLM usage:** $7.5000 (
|
|
59
|
+
- 🤖 **LLM usage:** $7.5000 (73 commits)
|
|
60
60
|
- 👤 **Human dev:** ~$2534 (25.3h @ $100/h, 30min dedup)
|
|
61
61
|
|
|
62
62
|
Generated on 2026-04-20 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
|
|
63
63
|
|
|
64
64
|
---
|
|
65
65
|
|
|
66
|
-
  
|
|
67
67
|
|
|
68
68
|
> Auto-generate and sync project documentation from source code analysis.
|
|
69
69
|
|
|
@@ -200,7 +200,7 @@ code2docs can update only specific sections of an existing README using markers:
|
|
|
200
200
|
```markdown
|
|
201
201
|
<!-- code2docs:start --># code2docs
|
|
202
202
|
|
|
203
|
-
   
|
|
204
204
|
> **276** functions | **57** classes | **51** files | CC̄ = 3.8
|
|
205
205
|
|
|
206
206
|
> Auto-generated project documentation from source code analysis.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
## AI Cost Tracking
|
|
2
2
|
|
|
3
|
-
    
|
|
4
4
|
  
|
|
5
5
|
|
|
6
|
-
- 🤖 **LLM usage:** $7.5000 (
|
|
6
|
+
- 🤖 **LLM usage:** $7.5000 (73 commits)
|
|
7
7
|
- 👤 **Human dev:** ~$2534 (25.3h @ $100/h, 30min dedup)
|
|
8
8
|
|
|
9
9
|
Generated on 2026-04-20 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
  
|
|
14
14
|
|
|
15
15
|
> Auto-generate and sync project documentation from source code analysis.
|
|
16
16
|
|
|
@@ -147,7 +147,7 @@ code2docs can update only specific sections of an existing README using markers:
|
|
|
147
147
|
```markdown
|
|
148
148
|
<!-- code2docs:start --># code2docs
|
|
149
149
|
|
|
150
|
-
   
|
|
151
151
|
> **276** functions | **57** classes | **51** files | CC̄ = 3.8
|
|
152
152
|
|
|
153
153
|
> Auto-generated project documentation from source code analysis.
|
|
@@ -5,7 +5,7 @@ Uses code2llm's AnalysisResult to produce human-readable documentation:
|
|
|
5
5
|
README.md, API references, module docs, examples, and architecture diagrams.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
__version__ = '3.0.
|
|
8
|
+
__version__ = '3.0.33'
|
|
9
9
|
__author__ = 'Tom Sapletta'
|
|
10
10
|
__all__ = ['Code2DocsConfig', 'generate_readme', 'generate_docs', 'analyze_and_document']
|
|
11
11
|
|
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
PORT_4 = 4
|
|
3
|
-
CONSTANT_5 = 5
|
|
4
|
-
CONSTANT_50 = 50
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
PORT_4 = PORT_4
|
|
8
|
-
CONSTANT_5 = CONSTANT_5
|
|
9
|
-
CONSTANT_50 = CONSTANT_50
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
PORT_4 = PORT_4
|
|
13
|
-
CONSTANT_5 = CONSTANT_5
|
|
14
|
-
CONSTANT_50 = CONSTANT_50
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
PORT_4 = PORT_4
|
|
18
|
-
CONSTANT_5 = CONSTANT_5
|
|
19
|
-
CONSTANT_50 = CONSTANT_50
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
PORT_4 = PORT_4
|
|
24
|
-
CONSTANT_5 = CONSTANT_5
|
|
25
|
-
CONSTANT_50 = CONSTANT_50
|
|
26
|
-
|
|
27
|
-
PORT_4 = PORT_4
|
|
28
|
-
CONSTANT_5 = CONSTANT_5
|
|
29
|
-
CONSTANT_50 = CONSTANT_50
|
|
30
|
-
|
|
31
1
|
"""Auto-generate usage examples from public signatures and entry points."""
|
|
32
2
|
|
|
33
3
|
from pathlib import Path
|
|
@@ -37,10 +7,12 @@ from code2llm.api import AnalysisResult, FunctionInfo, ClassInfo
|
|
|
37
7
|
|
|
38
8
|
from ..config import Code2DocsConfig
|
|
39
9
|
|
|
40
|
-
|
|
10
|
+
PORT_4 = 4
|
|
11
|
+
CONSTANT_5 = 5
|
|
12
|
+
CONSTANT_50 = 50
|
|
41
13
|
|
|
42
|
-
|
|
43
|
-
|
|
14
|
+
# Default type hints → example values
|
|
15
|
+
_TYPE_EXAMPLES = {
|
|
44
16
|
"str": '"./my-project"',
|
|
45
17
|
"Path": 'Path("./my-project")',
|
|
46
18
|
"int": "10",
|
|
@@ -55,7 +27,7 @@ if __name__ == "__main__":
|
|
|
55
27
|
}
|
|
56
28
|
|
|
57
29
|
# Arg name → realistic example value
|
|
58
|
-
|
|
30
|
+
_ARG_EXAMPLES = {
|
|
59
31
|
"project_path": '"./my-project"',
|
|
60
32
|
"path": '"./my-project"',
|
|
61
33
|
"source": '"./src"',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code2docs
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.33
|
|
4
4
|
Summary: Auto-generate and sync project documentation from source code analysis
|
|
5
5
|
Author-email: Tom Sapletta <tom@sapletta.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -53,17 +53,17 @@ Dynamic: license-file
|
|
|
53
53
|
|
|
54
54
|
## AI Cost Tracking
|
|
55
55
|
|
|
56
|
-
    
|
|
57
57
|
  
|
|
58
58
|
|
|
59
|
-
- 🤖 **LLM usage:** $7.5000 (
|
|
59
|
+
- 🤖 **LLM usage:** $7.5000 (73 commits)
|
|
60
60
|
- 👤 **Human dev:** ~$2534 (25.3h @ $100/h, 30min dedup)
|
|
61
61
|
|
|
62
62
|
Generated on 2026-04-20 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
|
|
63
63
|
|
|
64
64
|
---
|
|
65
65
|
|
|
66
|
-
  
|
|
67
67
|
|
|
68
68
|
> Auto-generate and sync project documentation from source code analysis.
|
|
69
69
|
|
|
@@ -200,7 +200,7 @@ code2docs can update only specific sections of an existing README using markers:
|
|
|
200
200
|
```markdown
|
|
201
201
|
<!-- code2docs:start --># code2docs
|
|
202
202
|
|
|
203
|
-
   
|
|
204
204
|
> **276** functions | **57** classes | **51** files | CC̄ = 3.8
|
|
205
205
|
|
|
206
206
|
> Auto-generated project documentation from source code analysis.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|