vSphere SDK for Python
Project description
Introduction
psphere is a Python interface for the VMware vSphere Web Services SDK, a powerful API for programatically managing your VMware infrastructure:
Provision, clone and snapshot virtual machines
Query and configure clusters, host systems and datastores
Programatically configure ESXi hosts (i.e. for automation)
psphere can be used to create standalone Python scripts or used as a library in larger Python applications (e.g. Django).
Usage
>>> from psphere.client import Client >>> client = Client("your.esxserver.com", "Administrator", "strongpass") >>> servertime = client.si.CurrentTime() >>> print(servertime) 2010-09-04 18:35:12.062575 >>> client.logout()
Installation
The latest stable version of psphere can be installed from PyPi:
# pip install -U psphere2
Community
Discussion and support can be found on the psphere Google Group.
Releasing
To perform a release, you will need to be an admin for the project on GitHub and on PyPI. Contact the maintainers if you need that access.
You will need to have a ~/.pypirc with your PyPI credentials and also the following settings:
[zest.releaser] create-wheels = yes
To perform a release, run the following:
python3.7 -m venv ~/.virtualenvs/dist workon dist pip install -U pip setuptools wheel pip install -U tox zest.releaser fullrelease # follow prompts, use semver ish with versions.
The releaser will handle updating version data on the package and in CHANGES.rst along with tagging the repo and uploading to PyPI.
0.0.0 (2019-02-08)
First version of psphere2 that can be installed from PyPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for psphere2-0.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1d06c0639a308a98bd27858afde816f221b52a38f48f6ca321be5768f578aa5 |
|
MD5 | 726ee220c0f1cad8176e138d1f1837be |
|
BLAKE2b-256 | 68b09c764a481ab723dce230106b6bb3e769c55b9a3a88b6f9362a838d5f17f9 |