clientapi_pbs
Python SDK for the Proxmox Backup Server API. Generated
from the upstream apidoc.js from Proxmox Backup Server via openapi-generator-cli with
custom Mustache template overrides.
Not an official Proxmox project. Community SDK derived from the upstream
apidoc.js. Always verify against the upstream API viewer. https://pbs.proxmox.com/.
Requires Python ≥ 3.9.
Install
pip install clientapi-pbs
Or for development:
pip install -r requirements.txt
Usage
from clientapi_pbs import Configuration, Pve
cfg = Configuration(
host='https://pbs1.example.com:8007/api2/json',
api_key={'Authorization': 'PBSAPIToken=user@realm!tokenid:uuid-secret'},
)
pbs = Pbs(configuration=cfg)
# Per-tag properties are lazily instantiated and share the same ApiClient.
# `removeOperationIdPrefix=true` strips the tag prefix from method names,
# so the call is `pbs.qemu.vm_status(...)`, not `pbs.qemu.qemu_vm_status(...)` —
# you're already inside the `qemu` namespace.
status = pbs.qemu.vm_status(node='pbs1', vmid=100)
nodes = pbs.nodes.get_nodes()
Discovering available methods
Each per-tag API class lives at clientapi_pbs.api.<tag>_api.<Tag>Api.
List its methods to see what's callable:
print([m for m in dir(pbs.qemu) if not m.startswith('_')])
Generated method-level docstrings explain parameters; the upstream endpoint reference is the upstream API viewer.
The unified Pbs class wraps each per-tag API class (QemuApi,
LxcApi, ClusterApi, NodesApi, …) so consumers don't need to
instantiate them individually.
Compound configs
PVE encodes many fields as CLI-style shorthand strings
(net0=virtio,bridge=vmbr0,firewall=1). Round-trip helpers are
emitted for every compound config schema:
from clientapi_pbs.models import PveQemuNetConfig
cfg = PveQemuNetConfig(model='virtio', bridge='vmbr0', firewall=1)
shorthand = cfg.to_shorthand() # → 'virtio,bridge=vmbr0,firewall=1'
parsed = PveQemuNetConfig.from_shorthand(shorthand)
Indexed families
Numbered properties (net0..net31, mp0..mp255, …) are exposed on
every model as a single collapsed nets / mps / … field:
req = QemuCreateVmRequest(
nets={
0: 'virtio,bridge=vmbr0',
3: 'e1000,bridge=vmbr1',
},
)
# Wire format: { 'net0': 'virtio,bridge=vmbr0', 'net3': 'e1000,bridge=vmbr1' }
License
Apache 2.0 — see LICENSE.
Metadata
Release files for clientapi-pbs 2026.5.24
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clientapi_pbs-2026.5.24.tar.gz | 344.9 kB | Without provenance | Details for clientapi_pbs-2026.5.24.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clientapi_pbs-2026.5.24-py3-none-any.whl | Python 3 | none | any | Details for clientapi_pbs-2026.5.24-py3-none-any.whl |
Total release size: 1.7 MB
Release files / clientapi_pbs-2026.5.24.tar.gz
| Download URL | clientapi_pbs-2026.5.24.tar.gz |
|---|---|
| Size | 344.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da498335a63646ab64758e2b705539c7beac759872fd0c1cd1e7df077d0cec97
|
|
BLAKE2b-256 checksum How to use checksums |
743e80260df948062a4630485b3ffae651ba418a574c46b995adb55cd9456607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / clientapi_pbs-2026.5.24-py3-none-any.whl
| Download URL | clientapi_pbs-2026.5.24-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a2329c0aa19a5e33a65ce3f44201ea6ac1930739226b448150c2ae9a5ead76d
|
|
BLAKE2b-256 checksum How to use checksums |
abee26cc498346e559ecaedcac48d9690f38f490ca7325c3053f42b0e65d0446
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for clientapi-pbs 2026.5.24
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.