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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pxm_tools-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a608e15ef3703436fd349781d7fdfc04bda81905e242b560d48858749548396d
MD5 8b061b2579f08f58bef0d1f1b9477330
BLAKE2b-256 3c92823d292c5c290e5a83b6e10a71a0f22f901d6008bee16c9cb364037b2114

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pxm_tools-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 56b958b019698e02472881392055dbf92590d5fe6d1c82aac90d7c56301cadbd
MD5 dfbf2d51f9765361ccdb909588aa0466
BLAKE2b-256 5b37b6c50494b66139cbf0d9d649b67effb06fbe35c5fb25097322d86be46b2a

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