Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

VMware vSphere API helper.

Project description

# pyVirtualize
A python interface to access and manage VMware vSphere and Horizon View.

pyVirtualize is build over pyVmomi, hence it has ability to perform all the operations what vSphere client is able to.
Not only vSphere, but pyVirtualize provides an interface for VMware Horizon View session management.

pyVirtualize provides easy interfaces to:

- Connect to VMWare's ESX, ESXi, Virtual Center, Virtual Server hosts and View Connnection server.
- Query hosts, datacenters, resource pools, virtual machines and perform various operations over them.
- VMs operations: power, file, process, snapshot, admin, utilities
- Horizon View: desktop, farms, rdsh, -pool management, querying connection and more.

An of course, you can use it to access all the API through python.

## Installation

Clone the project in your local directory.
git clone
cd pyRacetrack

Now install/build it using **** file as
python install

Or, install it using *pip*, as
pip install pyVirtualize

## Example
>> from pyVirtualize.pyvSphere import vSphere
>> vsphere = vSphere(address='', username='administrator@vsphere.local', password='Ca$hc0w1')
>> vsphere.login()
>> vsphere.Datacenters
{'datacenter1': 'vim.Datacenter:datacenter-2', 'datacenter2': 'vim.Datacenter:datacenter-7'}
>> vsphere.VirtualMachines
{'W7x64': 'VirtualMachine:vm-295', 'W7x32': 'vim.VirtualMachine:vm-183', ... }
>> vm = vsphere.VirtualMachines['W7x64']
>> vm.set_credentials(username="myDomain\\myUsername", password="secret", credentials_type="user", default=True)
>> vm.operations.snapshot.revert_to_current()
>> vm.operations.power.power_on()
>> vm.operations.file.upload("/path/towards/my/src/file", "/path/towards/my/dest/file")


Read more at [ReadTheDocs](, which has entire documentation, examples and more!

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyVirtualize-0.9.tar.gz (23.9 kB) Copy SHA256 hash SHA256 Source None Jun 30, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page