Skip to main content

Read and edit .vmx configurations file programmatically

Project description

Python module for safely reading and editing .vmx files for vmware virtual machines. This is especially helpful if the user only has vmware Player

Example:

from vmx_editor.editor import Editvmx
vm = Editvmx()

vm.add_or_modify_setting(vm.find_vmx(), vm.Settings.Hardware.VIRTUAL_MEMORY, 4000)
vm.add_or_modify_setting(vm.find_vmx(), vm.Settings.Connection.FIRST_ETHERNET_CONNECTION_TYPE, vm.Values.Connection.BRIDGED)
print(vm.read_setting(vm.find_vmx(), vm.Settings.Hardware.VIRTUAL_MEMORY))
vm.add_or_modify_setting(vm.find_vmx(), vm.Settings.Hardware.HARDWARE_VERSION, 11)

Install:

pip install vmx-editor

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

vmx_editor-0.3.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file vmx_editor-0.3.2.tar.gz.

File metadata

  • Download URL: vmx_editor-0.3.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for vmx_editor-0.3.2.tar.gz
Algorithm Hash digest
SHA256 4c1e7d3afb651f1ffd0a7a35181b1f8fc8fa2f1120ac895e6f1fc55ec8c8a625
MD5 86fb2f72672857934eba5a01bdf1d14d
BLAKE2b-256 49ca70029aa12d7d0a3807f3e7cb9cf20b842947672383d4039dd87d5555a992

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