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.5.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.5.0
File Size Uploaded
qm_template-0.5.0.tar.gz 155.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qm-template 0.5.0
File Interpreter ABI Platform
qm_template-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 198.7 kB

Release files / qm_template-0.5.0.tar.gz

Download URL qm_template-0.5.0.tar.gz
Size 155.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4ccd41aa9fc2e7d2811b4e013dbbc1df95c4a35db81c6dd862b5bf181a2cbafe
BLAKE2b-256 checksum
How to use checksums
54e2c77bd980562e0781009ed2afbbf9747ddadc3ddc5bb3c59dab21df757ded
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 16, 2026.

Transparency log

Release files / qm_template-0.5.0-py3-none-any.whl

Download URL qm_template-0.5.0-py3-none-any.whl
Size 43.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22216cee76111af9db419bce90cfaf1ea37dd66402156f8af593a5d2d319f97a
BLAKE2b-256 checksum
How to use checksums
44b24893a10d2eb4b876870e37aaaef8164618d793ced12ab8166e8f04ebaa3f
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 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.6.0

2 release files

This release

0.5.0 This release

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