Templates
templates
Template path resolution for Copier scaffold templates.
TemplateInfo
Bases: BaseModel
Template metadata.
Note: type: ignore[explicit-any] flags pydantic BaseModel
internals (third-party).
Source code in packages/axm-init/src/axm_init/core/templates.py
TemplateLayer
Bases: BaseModel
One ordered Copier template application.
Source code in packages/axm-init/src/axm_init/core/templates.py
TemplateType
Bases: StrEnum
Available scaffold template types.
Source code in packages/axm-init/src/axm_init/core/templates.py
get_template_path(template_type=TemplateType.STANDALONE, framework=Framework.PYTHON)
Return path to a bundled Copier template for a template type + framework.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
template_type
|
TemplateType
|
Type of template to look up. |
STANDALONE
|
framework
|
Framework | None
|
Ecosystem the template targets (default |
PYTHON
|
Returns:
| Type | Description |
|---|---|
Path
|
Path to the bundled template directory. |
Raises:
| Type | Description |
|---|---|
KeyError
|
If no template exists for the (type, framework) combination. |
Source code in packages/axm-init/src/axm_init/core/templates.py
template_chain(template_type, framework, *, member, existing=False)
Resolve the ordered Copier layers for a scaffold request.