pyVmomi

VMware vSphere API Python 绑定。『VMware vSphere API Python Bindings』

  • 所有者: vmware/pyvmomi
  • 平台: Windows,Linux,Mac
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

.. image:: https://travis-ci.org/vmware/pyvmomi.svg?branch=v6.0.0.2016.4
:target: https://travis-ci.org/vmware/pyvmomi
:alt: Build Status

.. image:: https://img.shields.io/pypi/dm/pyvmomi.svg
:target: https://pypi.python.org/pypi/pyvmomi/
:alt: 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 <http://vmware.github.io/pyvmomi-community-samples/#getting-started>. You'll need Python <https://www.python.org/downloads/>, pip <https://pip.pypa.io/en/latest/installing.html#using-package-managers>, and the samples project <https://github.com/vmware/pyvmomi-community-samples/tarball/master>.

  • http://vmware.github.io/pyvmomi-community-samples/
  • community discussion on IRC freenode.net channels #pyvmomi and #pyvmomi-dev <http://webchat.freenode.net/?channels=#pyvmomi,#pyvmomi-dev>_
  • community email is on nabble <http://pyvmomi.2338814.n4.nabble.com>_

Don't know what pip is? Any serious python developer should know, so here's a throrough intro to pip <http://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/>_ that we like.

Installing

The master is code that is in development, official releases are tagged and
posted to pypi <https://pypi.python.org/pypi/pyvmomi/>_

  • The official release is available using pip, just run
    pip install --upgrade pyvmomi.
  • To install the version in github <https://github.com/vmware/pyvmomi>_ use
    python setup.py develop for development install or
    python setup.py install.
  • To install github's version <https://github.com/vmware/pyvmomi>_ with sso support, just run
    pip install -e .[sso] inside project's home folder.

Testing

Unit tests can be invoked by using the tox <https://testrun.org/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

  • Research open issues <https://github.com/vmware/pyvmomi/issues?q=is%3Aopen+is%3Aissue>_
  • Follow the contribution standards <https://github.com/vmware/pyvmomi/wiki/Contributions>_
  • Coordinate with other developers <http://webchat.freenode.net/?channels=#pyvmomi,#pyvmomi-dev>_ on the project.

Documentation

For general language neutral documentation of vSphere Management API see:

  • vSphere WS SDK API Docs <https://code.vmware.com/apis/968/vsphere>_

Python Support

  • pyVmomi supports 2.7.x and 3.4+

Note: python2 is deprecated from 01/2020 https://www.python.org/doc/sunset-python-2/. Please switch to Python3

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.

Related Projects

Have fun!

主要指标

概览
名称与所有者vmware/pyvmomi
主编程语言Python
编程语言Python (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2013-12-13 17:30:30
推送于2025-02-14 13:27:23
最后一次提交2025-02-14 15:27:22
发布数30
最新版本名称v8.0.3.0.1 (发布于 )
第一版名称v5.1.0 (发布于 )
用户参与
星数2.3k
关注者数186
派生数773
提交数442
已启用问题?
问题数880
打开的问题数303
拉请求数113
打开的拉请求数3
关闭的拉请求数81
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?