Skip to content
Simplified VMWare API client for Python
Python
Branch: master
Clone or download
Latest commit b765b8a Nov 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples adding demo for vm.shutdown() Nov 21, 2018
logo bad image, uploading again 💥 Jul 22, 2017
vmwc making an optional parameter mandatory Nov 21, 2018
.gitignore renaming project from vmc to vmwc due to friendly request Nov 26, 2016
.travis.yml adding additional files for proper packageing (according to pypi samp… Nov 18, 2016
LICENSE.txt adding additional files for proper packageing (according to pypi samp… Nov 18, 2016
MANIFEST.in renaming project from vmc to vmwc due to friendly request Nov 26, 2016
README.md Update README.md Dec 15, 2017
README.rst
requirements.txt updating requests dependency - better stay on the safe-side Nov 21, 2018
setup.cfg adding additional files for proper packageing (according to pypi samp… Nov 18, 2016
setup.py promoting version to 1.0.3 Nov 21, 2018
tox.ini

README.md

banner-01

Simpler VMWare SDK client for Python

vmwc is designed to be the simplest way possible to use VMWare's SDK

from vmwc import VMWareClient

host = '192.168.1.1'
username = '<username>'
password = '<password>'

with VMWareClient(host, username, password) as client:
    for vm in client.get_virtual_machines():
        vm.power_on()

Installation

pip install vmwc

Examples / Demos

See examples directory

History

When I searched for a library to write automation scripts to control my esxi environment, I bumped into pyvmomi. My first impression was "It's too low-level and the general Development Experience doesn't feel easy to use". Therefore, on me break time, I wrote vmwc on the base of pyvmomi to provide a lighter, TL;DR feeling and straight-forward API.

Remarks

vmwc was developed to control a single esxi machine at a time. However, it should work with vcenter instances as well

Uploading a new version

python setup.py bdist_wheel
twine upload dist/*
You can’t perform that action at this time.