Skip to main content

PyBEN Proxmox repository is an easy to use python utility class for Proxmox server solution

Project description

pybenproxmox

GitHub License PyPI - Version python suggested version python minimum version platforms

Introduction

PyBEN Proxmox repository is an easy to use python utility class for Proxmox server solution

Installation

python -m pip install pybenproxmox

Use

Cli module activation

Run for a full help printout:

python -m pybenproxmox -h

Example for use of global variables to get all vms:

  • pybenproxmox is the name of the module
  • pprint is a function to print the returned dict nicely in console
  • get_vms is a function to return all vms (or request a specific one)
set PROXMOX_HOST='1.1.1.1'
set PROXMOX_USER='root'
set PROXMOX_PASS='1234'

python -m pybenproxmox pprint get_vms

Example for passing variables directly:

  • pybenproxmox is the name of the module
  • get_vms is a function to return all vms (or request a specific one)
python -m pybenproxmox host=1.1.1.1 user=root password=1234 get_vms vm_id=123

Python import ProxmoxCls class

from pybenproxmox import ProxmoxCls

prox = ProxmoxCls(host='1.1.1.1', user='root', password='1234')
print(prox.get_vms())

Some of the included functions:

  • get_vms: Returns a full list of vms, or list with matching vms by id or name
  • clone_vms
  • migrate_vm_to_node
  • delete_vm
  • start_vm
  • stop_vm
  • snapshot handling
  • and more ...

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

pybenproxmox-1.3.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

pybenproxmox-1.3.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file pybenproxmox-1.3.0.tar.gz.

File metadata

  • Download URL: pybenproxmox-1.3.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for pybenproxmox-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f66c8f6ccbeb731bd9b0c22e8ac34f5e528290c95e34ee3fd43135469585ffe0
MD5 c7b0318cdaad134c1d9d7a02e9764877
BLAKE2b-256 0b82a4b1df20fa4d3b9c063a112a50818c6679fea8bd0069c3a8c353fcd24fc1

See more details on using hashes here.

File details

Details for the file pybenproxmox-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: pybenproxmox-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for pybenproxmox-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab8861f040097a6e776532120b07b40a74ddeb6740f073053c55b9782ba42cd6
MD5 c1480e6147dc60a1af49af13d2269a4d
BLAKE2b-256 35e3bafc44a8b1a972742057bc7eb7b0462ba06c9f897444e6edfc076b0e8e94

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