Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

VMware vCloud Python SDK

Project Description

pyvcloud

Python SDK for VMware vCloud Director and vCloud Air.

This project is under development, the classes, methods and parameters might change over time. This README usually reflects the syntax of the latest version.

Sample Usage

Import modules and instantiate a VCA object:

from pyvcloud.vcloudair import VCA
vcd = VCA(host, user, service_type, service_version, verify)

Login to a vCloud Director instance:

result = vcd.login(password=password, org=org)

See changes log for a list of changes.

Installation

The Python SDK requires the libxml2 and libxslt libraries, see lxml for more details.

On Debian/Ubuntu, you can install lxml and Python development dependencies with this command:

sudo apt-get install libxml2-dev libxslt-dev python-dev python-pip

On RHEL-based distributions:

sudo yum install libxslt-devel libxml2-devel python-devel python-pip

The Python SDK can then be installed with the following command:

pip install --user pyvcloud

pyvcloud can also be installed with virtualenv

Examples

See the examples directory for sample code.

Development and Test

To run the source code, check it out from GitHub and install it with:

python setup.py develop

To log the requests, add the log=True parameter to the VCA constructor. The log is appended to file $TMPDIR/pyvcloud.log.

vcd = VCA(host=host,
          username=username,
          service_type='vcd',
          version='5.7',
          verify=False,
          log=True)

To test pyvcloud:

git clone https://github.com/vmware/pyvcloud.git
cd pyvcloud
virtualenv .venv
source .venv/bin/activate
python setup.py develop
pip install -r test-requirements.txt
cp tests/config.yaml my_config.yaml
# customize credentials and other parameters
nosetests --verbosity=2  --tc-format yaml --tc-file my_config.yaml tests/00010_vcd_login.py

See .gitlab-ci.yml for current tests.

Release History

Release History

History Node

18.0.4.dev44

History Node

18.0.4.dev43

History Node

18.0.4.dev41

History Node

18.0.4.dev40

History Node

18.0.4.dev39

History Node

18.0.4.dev38

History Node

18.0.4.dev37

History Node

18.0.4.dev36

History Node

18.0.4.dev35

History Node

18.0.4.dev33

History Node

18.0.4.dev32

History Node

18.0.4.dev28

History Node

18.0.4.dev22

This version
History Node

18.0.3

History Node

18.0.2

History Node

18

History Node

17.0.1

History Node

16

History Node

15rc2

History Node

15rc1

History Node

14

History Node

14rc9

History Node

14rc8

History Node

14rc7

History Node

14rc6

History Node

14rc5

History Node

14rc2

History Node

14rc1

History Node

13

History Node

13rc16

History Node

13rc15

History Node

13rc14

History Node

13rc13

History Node

13rc12

History Node

13rc11

History Node

13rc10

History Node

13rc8

History Node

13rc7

History Node

13rc6

History Node

13rc5

History Node

13rc4

History Node

13rc3

History Node

13rc2

History Node

13c1

History Node

12

History Node

12c4

History Node

12c3

History Node

12c2

History Node

12c1

History Node

11

History Node

10

History Node

9

History Node

8

History Node

7

History Node

6

History Node

5

History Node

4

History Node

3

History Node

2.2

History Node

2.1

History Node

0.8.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyvcloud-18.0.3.tar.gz (1.3 MB) Copy SHA256 Checksum SHA256 Source Jul 18, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting