Skip to main content

This module is a translation from perl to python of the VMWare API called VMPerl.

Project description

The VMWare scripting API is fully mapped to python. To each perl class corresponds a python class with the same name, all perl methods are available from python on created objects. Each object created in python has its counterpart in a parallel perl process.

>>> import VMPython
>>> s = VMPython.Server()             # s is a Server object
>>> c = VMPython.ConnectParams()      # c is a ConnectParams object
>>> s.connect(c)                      # connect s using c
True                                  # success
>>> vm = VMPython.VM()                # vm is a VM object
>>> vmid = s.registered_vm_names()[0] # the first registered vm on server s
>>> vm.connect(c, vmid)               # connect vm using c
True                                  # success
>>> vm.get_pid()                      # PID of the guest process
'27502'                               # I get this number as a string

Project details


Release history Release notifications | RSS feed

This version

0.1

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