Skip to main content

Python client for Proxmox

Project description

proxmox-client

Python client for Proxmox

Installation

pip install proxmox-client

Examples

Create class

from proxmox_client import ProxmoxClient
proxmox = ProxmoxClient( "PROXMOX_DOMAIN", "PROXMOX_USER", "PROXMOX_PASSWORD" )

where:

  • PROXMOX_DOMAIN: URL of Proxmox WebUi page
  • PROXMOX_USER: User of Proxmox WebUi
  • PROXMOX_PASSWORD: Password of Proxmox WebUi

or using environment variables "PROXMOX_DOMAIN" and "PROXMOX_USER" and "PROXMOX_PASSWORD":

from dotenv import load_dotenv
import os
from proxmox_client import ProxmoxClient
load_dotenv()

def main():
    proxmox = ProxmoxClient( 
        base_url=os.getenv('PROXMOX_DOMAIN'), 
        login=os.getenv('PROXMOX_USER'),
        password=os.getenv('PROXMOX_PASSWORD')
    )

    print( proxmox.get(1) )
if __name__ == "__main__":
    main() 

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

proxmox_client-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file proxmox_client-1.0.0.tar.gz.

File metadata

  • Download URL: proxmox_client-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for proxmox_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a27562fe39025ce282b8c19cd147a5474190300cb578d0bb6f928e0c62d68f60
MD5 d07a6a7b312e0a1915599727dd6122a3
BLAKE2b-256 636e03ff802d40d37bf1042b05bac2e9d3959c10fa0ef07727ed0dc35f16f3e9

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