qm-template
English | 简体中文
A Python CLI that downloads cloud images, creates Proxmox VE VM templates and prepares local VM artifacts, with Cloud-Init support.
Features
- Multi-distro downloads: Debian, Ubuntu, Rocky Linux, AlmaLinux, Fedora, CentOS Stream, Alpine, openSUSE, Arch Linux, FreeBSD and Amazon Linux 2023, with pinned builds, resumable downloads and checksum/signature verification.
- Proxmox VE templates: one
qm create ... --template 1invocation with automatic VM ID selection and configurable CPU, firmware and metadata, orcreate --pve <name>to build the template on a remote host through its API (Proxmox VE >= 8.4). - Local VM artifacts:
prepareconverts an image to VDI, VMDK, QCOW2, raw or VHDX and builds a NoCloud seed ISO for any hypervisor. - Validated configuration: TOML settings with optional per-distro and
per-host overrides,
QM_TEMPLATE_*environment variables and unknown-key rejection. - Shell completion for commands, options, per-distro parameters and remote host names.
Quick start
uv tool install qm-template
qm-template download debian # download and verify an image
qm-template create --vm-id 9000 # template on this Proxmox VE host
qm-template create debian-13 --pve home # ... or on a remote host
qm-template prepare debian-13 --format vmdk # disk + seed ISO for any hypervisor
Documentation
Full documentation: https://ak1ra-lab.github.io/qm-template/
Requirements
- Python >= 3.11 and uv
- A Proxmox VE host for
create:qm/pvesmlocally, or a remote host reachable through its API (Proxmox VE >= 8.4) with--pve - One of
axel,aria2c,wgetorcurlfordownload, andgpgfor signature verification qemu-imgand one ofgenisoimage,xorrisoormkisofsforprepare
Development
uv sync --group dev
just lint # ruff check --fix + ruff format
just typecheck # ty check src/
just test # pytest
just docs-build # mkdocs build
Metadata
Release files for qm-template 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qm_template-0.6.0.tar.gz | 157.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qm_template-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 202.1 kB
Release files / qm_template-0.6.0.tar.gz
| Download URL | qm_template-0.6.0.tar.gz |
|---|---|
| Size | 157.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17d58ee233ad5679158f18df625c4e141f9b7a01df535333d7ac76ea935444a9
|
|
BLAKE2b-256 checksum How to use checksums |
02cc536bb62859aabbd1f80175a14c83154611b86cbddcfe6edc4138f10910a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / qm_template-0.6.0-py3-none-any.whl
| Download URL | qm_template-0.6.0-py3-none-any.whl |
|---|---|
| Size | 44.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b380930a7e4830f3ab54f25029655c11fbcb16a506577a525edf9b2b54b76ae0
|
|
BLAKE2b-256 checksum How to use checksums |
f43c9b0a6606350775f858c83eec6b37fe9bc3fbd23db5669e66c49bd09fb135
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency log