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.tar.gz
(8.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pve_api-1.1-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file pve_api-1.1.tar.gz.
File metadata
- Download URL: pve_api-1.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
290c192f44ed4bbf53ed2cf37b3fa4fb7767b240e97492e57b7bf4a10bcc74a3
|
|
| MD5 |
c5a6dcb3cbaffff3f36b0fdc57758fc8
|
|
| BLAKE2b-256 |
ac91cf0c0a3675d8f27b2a7b236b0804fa8e8b7583f5ec89008582bb393e914f
|
File details
Details for the file pve_api-1.1-py3-none-any.whl.
File metadata
- Download URL: pve_api-1.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88d29d5f4c5a95fbeb1b0027a3887a167581d79e83c0b3cf10955035c67fc261
|
|
| MD5 |
0c60bcc467a6090bc6e881afc79cdaaa
|
|
| BLAKE2b-256 |
bdf1458e4f8fab9988c6e023ce73937eceea9172afd9358cacdb4ea3f21951cb
|