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.2.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.2.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybenproxmox-1.2.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.7

File hashes

Hashes for pybenproxmox-1.2.0.tar.gz
Algorithm Hash digest
SHA256 bf7bf5457f8a1b7b9ce443e088d18e7ca5d72817fb1b8460ab7e619edfff31a8
MD5 e439e36417a22eecf445c124a788a45a
BLAKE2b-256 d4280dae85184834bb7938a6e13827c1b8c74c880bc0ad8f535586e32f9e9a92

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pybenproxmox-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6de7bf3726f4e6ed85cd543e0ff402bcc663e0110320330a9e86d62647522446
MD5 55af04275166ee21aa1b690559ad9409
BLAKE2b-256 b24eb563cac4dbf4ff8c7b60a413fcc8851bf664a46bdb73eff961be7779d9e0

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