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 AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page