Skip to main content

Python library for Proxmox VE API

Project description

ProxmoxVE Web API

这个项目是ProxmoxVE Web API的Python库

安装

pip install pve-api

示例

from pve_api import PVE

# 创建PVE对象
pve = PVE('192.168.1.100', 'root', 'password')
# 获取主节点
node = pve.get_nodes().query('node', 'pve')
# 获取当前节点下的qemu虚拟机中名为Windows的虚拟机
qemu = pve.get_node_qemu(node).query('name', 'Windows')
# 输出虚拟机信息对象
print(qemu)

输出:

QemuItem [cpus=1, diskwrite=0, cpu=0.0807287315007847, netin=122048440, uptime=28161, name=Router, diskread=0, vmid=201, mem=480493425, netout=138588369, disk=0, template=, maxmem=2147483648, maxdisk=34359738368, status=running]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pve_api-1.1.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pve_api-1.1.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file pve_api-1.1.2.tar.gz.

File metadata

  • Download URL: pve_api-1.1.2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pve_api-1.1.2.tar.gz
Algorithm Hash digest
SHA256 db3ea1ec91662b2bf4e0db267c8eda97fef2df060052c2af6f4a2476dac9ec36
MD5 425c261ff9077415511c0bd174e4f91c
BLAKE2b-256 e1fbb7744b54d90b891acd59f252fa1e60d2d33996b304b3840f11f504fdae01

See more details on using hashes here.

File details

Details for the file pve_api-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: pve_api-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pve_api-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 47dfb8c19fb72f4693e62e833bef94e47e5eb4a9a0e240ff9a91891bc3db5ac8
MD5 4b51a80666508ae7e0c96e36982e61fe
BLAKE2b-256 d07b2e698ca0b6e12e1a6dba6e67fbab603bddf45b0f3ebf9b0cbfcf7dcecb82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page