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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pxm_tools-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 a60f90f0f99ede68fd9dfd00b704e1f3655747c63c041c8c404c27cd6b3e3e50
MD5 727d1964b09ef6bc539f330bc582a83a
BLAKE2b-256 45f31ddb95aab1793c913634fd05517a7c3e1243870685c15b2c97f9fedddb41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pxm_tools-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6ebf808bb25c8a75d70e5a28103b2edeb963092c198a84901211c13198bc968d
MD5 dffc7bb87512a49050e531552366273e
BLAKE2b-256 744544559304c8ace71a2f7006eff982bc78b7c358317507a0645e3bc57a1d45

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