Skip to main content

A collection of tools to interact with Proxmox API.

Project description

pxm-tools

A collection of tools to interact with Proxmox API.

Installation

pip install pxm-tools

Usage

pxm-create -h
pxm-edit -h
pxm-start -h
pxm-stop -h
pxm-rm -h

Must Know

Some arguments can be used from environment variables or .env file.

--api   # PM_API_URL
--user  # PM_USER
--pass  # PM_PASS

Options can be passed as a JSON file such as --config config.json

{
    "node": "frodo",
    "prefix": "fl-worker",
    "pool": "federatedLearning",
    "template": 2000,
    
    "vm-cipassword": "flexfl",
    "vm-net0/rate": 50,
    "vm-net0/bridge": "vmbr1",
    "vm-localtime": 1
}

Configurations for the VM can be passed with the prefix --vm-:

--vm-cores      # Number of CPU cores
--vm-net0/rate  # Network rate limit, use / when value has other options

To see all available options, check the Proxmox API documentation for the VM configuration:

VM cloning is done one by one on purpose, starting, stopping, and removing VMs is done in bulk.

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

pxm_tools-0.1.5.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

pxm_tools-0.1.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file pxm_tools-0.1.5.tar.gz.

File metadata

  • Download URL: pxm_tools-0.1.5.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for pxm_tools-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3e16b6ac54f47e4474a7ff97be7ad76b3cd9be7d04f1ae50009e0413a8938f1b
MD5 05f9290ed728196135be98f15b80670b
BLAKE2b-256 cffa91e7bf4fa34d3cdc3e8e98cf45f39ae8dae382ede43d68209a0eab25874b

See more details on using hashes here.

File details

Details for the file pxm_tools-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pxm_tools-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for pxm_tools-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4d8e9c5cde4108da9e56a5f0ac5f01373f7f6480003c1f9c29b4bd5e799cf78d
MD5 675a81c66c81cfe346f73e1869fecadb
BLAKE2b-256 93fd595620bf6e968ca3f294f4f44b0a738481ec2a514a7aba2df34388fb0c81

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