Metadata-Version: 2.1
Name: pyVirtualize
Version: 0.10
Summary: VMware vSphere API helper.
Author: Rocky Ramchandani
Author-email: riverdale1109@gmail.com
License: Apache 2.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Requires-Dist: alabaster (>=0.7.10)
Requires-Dist: appdirs (>=1.4.3)
Requires-Dist: Babel (>=2.4.0)
Requires-Dist: colorama (>=0.3.9)
Requires-Dist: docutils (>=0.13.1)
Requires-Dist: imagesize (>=0.7.1)
Requires-Dist: Jinja2 (>=2.9.6)
Requires-Dist: MarkupSafe (>=1.0)
Requires-Dist: packaging (>=16.8)
Requires-Dist: Pygments (>=2.2.0)
Requires-Dist: pyparsing (>=2.2.0)
Requires-Dist: pytz (>=2017.2)
Requires-Dist: pyvmomi (>=6.5)
Requires-Dist: PyYAML (>=3.12)
Requires-Dist: requests (>=2.14.2)
Requires-Dist: six (>=1.10.0)
Requires-Dist: snowballstemmer (>=1.2.1)
Requires-Dist: Sphinx (>=1.6.1)
Requires-Dist: sphinxcontrib-websupport (>=1.0.1)
Requires-Dist: xmltodict (>=0.11.0)

# 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 pyVirtualize
```

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='Secured')
>> 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!

PS: *Guys, SDKs for Horizon View had to be got down for confidential reasons. Sorry for any inconvenience caussed.*
