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 my_config.json (config.json by default)

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

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.2.tar.gz (12.0 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.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pxm_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9006e2ad9c38d2bda95658e5bf7e5520e72313618575934a11801c841279ef91
MD5 56f76c368ce6e990dc90f09d4c4321e0
BLAKE2b-256 3dcc675149a187782ed760932f4ec6e51ab0598d356fb866055bba6ff9a2999f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pxm_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b977c37689116750452d7cb4448003d215c9659acd55fa95c582b502352a531
MD5 83c0cb7a063d6c368f134bd01b4a4031
BLAKE2b-256 a9df12ae13dca20a0656a9dfb81170617d0164d9896ede41cec7d2799af44ba0

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