README for Python SDK samples The following section describes the current directory contents:
Directory structureThe vSphere Automation Client SDK for Python provides client bindings, documentation, samples, and WSDL files. The following table shows the client directories and their contents.
Python SDK API Docsapidocs directory contains the generated python API reference documentation for vSphere Automation features like Content Library and Tagging. The README page also includes a hyperlink to pyVmomi API reference documentation for convenience. Please Refer to vSphere Automation SDK Pythondoc for details. SDK librariesFor python developers, client libraries are supplied for testing and development purposes. All the supplied libraries are located under lib directory.
Installing SDK and 3rd party librariesThe supplied python libs can be installed using pip install; For details on how to install python packages using pip please refer to pip user guide.vapi_runtimeThis library is needed for accessing features like Content Library and Tagging. > pip install /path/to/VMware-vSphere-Automation-SDK-Python/client/lib/vapi_runtime-2.5.0.zippyOpenSSL is required by vapi_runtime. Please see the pyOpenSSL installation steps for details. vapi_common_clientThis library is needed for accessing features like Content Library and Tagging. > pip install /path/to/VMware-vSphere-Automation-SDK-Python/client/lib/vapi_common_client-2.5.0.zip vapi_client_bindingsThis library is needed for accessing features like Content Library and Tagging. > pip install /path/to/VMware-vSphere-Automation-SDK-Python/client/lib/vapi_client_bindings-2.5.0.zip pyVmomiThis library is needed for accessing/manipulating vCenter Server managed objects using vSphere APIs; For more information please refer to vmware pyVmomi > pip install pyvmomiThe following 3rd party python libraries are required to be installed for running the sample.
pyOpenSSLThis requires python cryptography package to be installed as a pre-requisite. Please follow the detailed instruction from installing cryptography dev documentation VMware strongly recommends using openssl version 1.0.1j or, higher. SDK and samples are tested against openssl version >= 1.0.1j. pyOpenSSL version 0.14 is needed for the SDK (vapi_runtime) and samples. For details on how to install the package please go to pypi.python.org/pypi/pyOpenSSL/0.14. lxmlPlease follow detailed instructions from Installing lxml > pip install lxml Notes for the Windows clientHow to use MinGW's gcc compiler when installing python package using pip?
[build] compiler=mingw32Here's an alternative method:
suds(suds-jurko)This library is needed for lookup service queries; For more information please refer to suds Documentation > pip install sudsUse suds-jurko for python 3.x > pip install suds-jurko Running a samplePlease refer to running a vcenter sample for detailed steps to run a vCenter sample.Please refer to running a workflow sample for detailed steps to run a vCenter Single Sign-On, Content Library or Tagging sample.
|