This attempts to evenly distribute resources between multiple hosts. It also supports rules to keep VMs separated where they form resilient pairs.
kcl-nmssys/python-proxmoxbalancer
Script to balance VMs evenly (or attempt to) across hosts using Proxmox API.
PythonMIT