Skip to main content

Python client for Proxmox

Project description

proxmox-client

PyPI Version

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.1.tar.gz (4.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: proxmox_client-1.0.1.tar.gz
  • Upload date:
  • Size: 4.9 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.1.tar.gz
Algorithm Hash digest
SHA256 3a8869890222b13afde67a8bd17b25643294ca3cd25b060c287cbc7854c703a3
MD5 f7d8a7cb71155832bc4aca35b69afbd4
BLAKE2b-256 23a2f7739143e9aa0237789993067cf296ded0e9a69c2027027780fa900cddb2

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