Skip to main content

qm-template

GitHub Actions Workflow Status PyPI - Version Docs

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 1 invocation with automatic VM ID selection and configurable CPU, firmware and metadata, or create --pve <name> to build the template on a remote host through its API (Proxmox VE >= 8.4).
  • Local VM artifacts: prepare converts 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/pvesm locally, or a remote host reachable through its API (Proxmox VE >= 8.4) with --pve
  • One of axel, aria2c, wget or curl for download, and gpg for signature verification
  • qemu-img and one of genisoimage, xorriso or mkisofs for prepare

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)

Source distribution for qm-template 0.6.0
File Size Uploaded
qm_template-0.6.0.tar.gz 157.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qm-template 0.6.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page