Skip to main content

master branch: master_build_status master_coverage_status pypi_version pypi_downloads

develop branch: develop_build_status develop_coverage_status

Proxmoxer is a python wrapper around the Proxmox REST API v2. It currently supports the Proxmox services of Proxmox Virtual Environment (PVE), Proxmox Mail Gateway (PMG), and Proxmox Backup Server (PBS).

It was inspired by slumber, but it is dedicated only to Proxmox. It allows not only REST API use over HTTPS, but the same api over ssh and pvesh utility.

Like Proxmoxia, it dynamically creates attributes which responds to the attributes you’ve attempted to reach.

Full Documentation is available at https://proxmoxer.github.io/docs/

Installation

pip install proxmoxer

To use the ‘https’ backend, install requests

pip install requests

To use the ‘ssh_paramiko’ backend, install paramiko

pip install paramiko

To use the ‘openssh’ backend, install openssh_wrapper

pip install openssh_wrapper

Short usage information

The first thing to do is import the proxmoxer library and create ProxmoxAPI instance.

from proxmoxer import ProxmoxAPI

proxmox = ProxmoxAPI(
    "proxmox_host", user="admin@pam", password="secret_word", verify_ssl=False
)

This will connect by default to PVE through the ‘https’ backend.

Note: ensure you have the required libraries (listed above) for the connection method you are using

Queries are exposed via the access methods get, post, put and delete. For convenience two synonyms are available: create for post, and set for put.

Using the paths from the PVE API v2, you can create API calls using the access methods above.

>>> for node in proxmox.nodes.get():
...     for vm in proxmox.nodes(node["node"]).openvz.get():
...         print "{0}. {1} => {2}".format(vm["vmid"], vm["name"], vm["status"])
...

141. puppet-2.london.example.com => running
101. munki.london.example.com => running
102. redmine.london.example.com => running
140. dns-1.london.example.com => running
126. ns-3.london.example.com => running
113. rabbitmq.london.example.com => running

See Changelog in CHANGELOG.md

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proxmoxer-1.3.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

proxmoxer-1.3.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proxmoxer-1.3.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.8.1 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.9.10

File hashes

Hashes for proxmoxer-1.3.0.tar.gz
Algorithm Hash digest
SHA256 dc1638d53fad0cf30ba8b1d3bd5a7a8a79c95edae497e31d12105032be4b91fd
MD5 09097aba9ebc978725008ad66b2010ab
BLAKE2b-256 cb5737930476e4df2a1c4318e566b027586e25725dffadaa4eec7ececc334397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proxmoxer-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.8.1 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.9.10

File hashes

Hashes for proxmoxer-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4067a8444cd246cd9e94c4d1a919732568afe44ca6e82f4c1de244d059198cee
MD5 e5c0235767a9d74e4841433ae05390ad
BLAKE2b-256 c6fba47ce138553e4e26e73f5cb5b88d438fa7ec55338d634f1299ca8a88f966

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 Sentry Error logging StatusPage Status page