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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybenproxmox-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4ebdfab7209f9552796a367f8b7073bc5d8da8d1abcaae4894d8b9b2bc875b68
MD5 16621fc73054f25cd98579e28729d0af
BLAKE2b-256 f5d1c1659d51373f5fb9b873964005e1a94bb7d33833bb876969309180586447

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybenproxmox-1.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 754a43769121e9775b7910341d8c8edae1bb70578d2233b25b83fcf67ae9a0a1
MD5 e7debe79c20886bca19cc094ed12d6a3
BLAKE2b-256 4177b7388aa5902953a7a929fd796c713c35b018c2977d721d82b9cd53f269ea

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