RETIRED, further work has moved to Debian project infrastructure
Go to file
Tianhao He ac455dc273 Fixes #519, #448, #420, #421 Fix SoapAdapter serializer to support serializing unicode chars
We use string formatter to contruct serialization result.
The template used is str(byte) in python2 even though when the val is
unicode.
This is fine when val only contains ASCII chars since python can encode
them to str implicitly using ASCII encoding. But when the val is
non-ASCII unicodes,
the conversion fails. Fix it by using a unicode template to avoid the
conversion.
2017-03-21 11:52:50 -07:00
docs Corrected a description mistake which is reported in #441 2016-08-18 11:46:08 +09:00
pyVim add sso.py to support get bearer/hok token from sso server 2017-02-27 15:40:26 -08:00
pyVmomi Fixes #519, #448, #420, #421 Fix SoapAdapter serializer to support serializing unicode chars 2017-03-21 11:52:50 -07:00
sample vSphere 6.5 support. 2016-11-15 12:14:34 -08:00
tests Fixes #519, #448, #420, #421 Fix SoapAdapter serializer to support serializing unicode chars 2017-03-21 11:52:50 -07:00
.gitignore Update .gitignore - ignore egg files 2014-09-02 15:14:13 -04:00
.travis.yml Remove python 2.6 from tox and travis testing. 2015-11-19 23:06:55 -08:00
LICENSE.txt Improve sdist and bdist packaging 2014-08-26 14:16:53 -04:00
MANIFEST.in tox support 2014-08-26 14:27:00 -04:00
NOTICE.txt vSphere 6.5 support. 2016-11-15 12:14:34 -08:00
README.rst vSphere 6.5 support - fix release note link 2016-11-15 14:32:19 -08:00
requirements.txt add sso.py to support get bearer/hok token from sso server 2017-02-27 15:40:26 -08:00
setup.cfg Update setup.cfg 2014-09-05 13:11:09 +02:00
setup.py vSphere 6.5 support. 2016-11-15 12:14:34 -08:00
test-requirements.txt tox support 2014-08-26 14:27:00 -04:00
tox.ini Remove python 2.6 from tox and travis testing. 2015-11-19 23:06:55 -08:00

Build Status

Downloads

pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter.

Getting Started

To get started, see the getting started guide. You'll need Python, pip, and the samples project.

Don't know what pip is? Any serious python developer should know, so here's a throrough intro to pip that we like.

Installing

The master is code that is in development, official releases are tagged and posted to pypi

  • The official release is available using pip, just run pip install --upgrade pyvmomi.
  • To install the version in github use python setup.py develop for development install or python setup.py install.

Testing

Unit tests can be invoked by using the tox command. You may have to configure multiple python interpreters so that you can test in all the environments listed in tox.ini or you will have to run tox with the -e flag to run only in your version of python. For example, if you only have Python 2.7 then tox -e py27 will limit your test run to Python 2.7.

Contributing

Documentation

For general language neutral documentation of vSphere Management API see:

Python Support

  • pyVmomi 6.5 supports 2.7, 3.3, 3.4 and 3.5
  • pyVmomi 6.0.0.2016.4 and later support 2.7, 3.3 and 3.4
  • pyVmomi 6.0.0 and later support 2.7, 3.3 and 3.4
  • pyVmomi 5.5.0-2014.1 and 5.5.0-2014.1.1 support Python 2.6, 2.7, 3.3 and 3.4
  • pyVmomi 5.5.0 and below support Python 2.6 and 2.7

Compatibility Policy

pyVmomi versions are marked vSphere_version-release . Pyvmomi maintains minimum backward compatibility with the previous _four releases of vSphere and it's own previous four releases. Compatibility with much older versions may continue to work but will not be actively supported.

For example, version v6.0.0 is most compatible with vSphere 6.0, 5.5, 5.1 and 5.0. Initial releases compatible with a version of vSphere will bare a naked version number of v6.0.0 indicating that version of pyVmomi was released simultaneously with the GA version of vSphere with the same version number.

Releases

Related Projects

Have fun!