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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pybenproxmox-1.1.1.tar.gz
Algorithm Hash digest
SHA256 db07835aabfe11ce6b3adcf556e4a0161fc04770de206da45177ad3d2d0653b9
MD5 4450b61b344cb54562e08799d1777b1a
BLAKE2b-256 86da1cadfbfd38f13b11cf65da821f8c01d9dfbf7a677fe797781fcac7d7814c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pybenproxmox-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 637b1cd8645bf308c54816c401a94b161ef5b9156a46088c1595d137faf85ee5
MD5 0d1818a0b3830b7147f81070c7fabe7b
BLAKE2b-256 d8c569719a9253d623136dd9f67e32dc326cffbbb958259ec7b66a647d461b2b

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