Metadata-Version: 2.0
Name: pyvcloud
Version: 18.0.2
Summary: VMware vCloud Python SDK
Home-page: https://github.com/vmware/pyvcloud
Author: VMware, Inc.
Author-email: pgomez@vmware.com
License: License :: OSI Approved :: Apache Software License
Keywords: pyvcloud vcloud vcloudair vmware
Platform: Windows
Platform: Linux
Platform: Solaris
Platform: Mac OS-X
Platform: Unix
Classifier: Development Status :: 1 - Planning
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Developers
Classifier: Environment :: No Input/Output (Daemon)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Distributed Computing
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS
Requires-Dist: PyYAML (>=3.10)
Requires-Dist: iptools (>=0.6.1)
Requires-Dist: lxml (>=3.4.1)
Requires-Dist: netaddr (>=0.7.13)
Requires-Dist: progressbar (>=2.3)
Requires-Dist: requests (>=2.4.3)

pyvcloud
========

|docs-latest| |pip| |ver| |build-status|

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:

.. code:: python

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

Login to a vCloud Director instance:

.. code:: python

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

See `changes log <http://pyvcloud.readthedocs.org/en/latest/changes.html>`_ for a list of changes.

Installation
============

The Python SDK requires the libxml2 and libxslt libraries, see `lxml <http://lxml.de/installation.html>`_ for more details.

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

.. code:: bash

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

On RHEL-based distributions:

.. code:: bash

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

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

.. code:: bash

    pip install --user pyvcloud

**pyvcloud** can also be installed with `virtualenv <http://docs.python-guide.org/en/latest/dev/virtualenvs/>`_

Examples
========

See the `examples <https://github.com/vmware/pyvcloud/blob/master/examples>`_ directory for sample code.

Development and Test
====================

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

.. code:: bash

    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``.

.. code:: python

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

To test **pyvcloud**:

.. code:: bash

    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_example.yaml tests/config_standalone.yaml
    # customize credentials and other parameters
    nosetests --verbosity=2  --tc-format yaml --tc-file tests/config_standalone.yaml \
                tests/vcloud_tests.py


.. |build-status| image:: https://img.shields.io/travis/vmware/pyvcloud.svg?style=flat
    :alt: build status
    :scale: 100%
    :target: https://travis-ci.org/vmware/pyvcloud/

.. |docs| image:: https://readthedocs.org/projects/pyvcloud/badge/?version=stable
    :alt: Documentation Status
    :scale: 100%
    :target: http://pyvcloud.readthedocs.org/en/stable/

.. |docs-latest| image:: https://readthedocs.org/projects/pyvcloud/badge/?version=latest
    :alt: Documentation Status
    :scale: 100%
    :target: http://pyvcloud.readthedocs.org/en/latest/

.. |pip| image:: https://img.shields.io/pypi/dm/pyvcloud.svg
    :alt: Download Status
    :scale: 100%
    :target: https://pypi.python.org/pypi/pyvcloud

.. |ver| image:: https://img.shields.io/pypi/v/pyvcloud.svg
    :alt: Stable Version
    :scale: 100%
    :target: https://pypi.python.org/pypi/pyvcloud


