Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

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 https://github.com/rocky1109/pyVirtualize.git
cd pyRacetrack
```

Now install/build it using **setup.py** file as
```
python setup.py install
```

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

## Example
```python
>> from pyVirtualize.pyvSphere import vSphere
>> vsphere = vSphere(address='10.112.67.60', 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](http://pyvirtualize.readthedocs.io/en/latest/), which has entire documentation, examples and more!
Release History

Release History

This version
History Node

0.7

History Node

0.6

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyVirtualize-0.7.tar.gz (24.2 kB) Copy SHA256 Checksum SHA256 Source Jun 28, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting