Skip to main content

Add your description here

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.1.tar.gz (8.1 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.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pve_api-1.1.1.tar.gz
  • Upload date:
  • Size: 8.1 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.1.tar.gz
Algorithm Hash digest
SHA256 e8afaa8d95ac9134f57cb6b7ab82e7b3d589f194fec57f554e19e288d09ee040
MD5 ef3dc90f62c8963c02aa9293a30ab4c7
BLAKE2b-256 1c7751466f0d05f466dba405002a59dff4079036937c93e1caba097263fd7084

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pve_api-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8853a42e409e8ad43c8d8dd705a3831875a78c1a065243f4733488f5483d0a8
MD5 f6bdbe0014f1f0e577a77bd001573b88
BLAKE2b-256 806ae66cc156f1cc1e5849661db9ee0a7efda9e7400cee033fc3ec0734200ba2

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