Python entry points
The root package exports only __version__ through __all__:
The operational interface is the three registered AXMTools. Python integrations
can import their defining modules explicitly; these classes are not re-exported
from axm_init.
| Import | Operation | Contract |
|---|---|---|
axm_init.tools.scaffold.InitScaffoldTool |
execute(path=".", **named_options) |
Scaffold parameters and data |
axm_init.tools.check.InitCheckTool |
execute(path=".", *, category=None, json_output=False, agent=False, verbose=False) |
Check data and exit policy |
axm_init.tools.reserve.InitReserveTool |
execute(name="", *, author="", email="", dry_run=False, json_output=False) |
Reservation data |
execute returns a ToolResult with success, structured data, optional
display text and error. Python callers inspect success; the CLI wrapper
translates failure to its process exit status.
Module interfaces for developers
These module-level interfaces are not part of the root export list. Use them when extending or testing the package, rather than assuming they are additional CLI commands.
| Module | Interfaces | Role |
|---|---|---|
axm_init.core.checker |
CheckEngine, format_agent, format_agent_text, format_report, format_json, resolve_exit_code |
Run and render checks |
axm_init.models.check |
CheckResult, CategoryScore, ProjectResult, Grade |
Weighted outcomes and N/A state |
axm_init.models.results |
ScaffoldResult, ReserveResult |
Core operation results |
axm_init.core.templates |
TemplateInfo, TemplateType, get_template_path |
Template selection |
axm_init.core.framework |
Framework, detect_framework |
Framework selection |
axm_init.models.protocol_scaffold |
ProtocolScaffoldDecl, component declaration models |
Protocol validation |
axm_init.core.protocol_planner |
plan_protocol_scaffold |
Pure file/metadata planning |
axm_init.core.protocol_scaffolder |
prepare_protocol_request, preview_protocol_scaffold, build_protocol_scaffold_result |
Validate requests, preview or apply, shape results |
Declaration models generated from source
protocol_scaffold
ContractDecl
Bases: _StrictDecl
Declare a named data contract used by a protocol component.
Source code in packages/axm-init/src/axm_init/models/protocol_scaffold.py
NodeDecl
Bases: _StrictDecl
Declare a node with optional contract and prompt references.
Source code in packages/axm-init/src/axm_init/models/protocol_scaffold.py
| Python | |
|---|---|
PhaseDecl
Bases: _StrictDecl
Declare a phase and the nodes it contains, if any.
Source code in packages/axm-init/src/axm_init/models/protocol_scaffold.py
PromptDecl
ProtocolScaffoldDecl
Bases: _StrictDecl
Validate a complete protocol declaration and its component references.
Source code in packages/axm-init/src/axm_init/models/protocol_scaffold.py
| Python | |
|---|---|
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
TicketDecl
Bases: _StrictDecl
Bind a ticket type to one declared input contract.