hpe-storage / python-3parclient

This is a python client that talks to the HPE Alletra 9000 and HPE Primera and HPE 3PAR storage array via REST.
Apache License 2.0
48 stars 70 forks source link

.. image:: https://img.shields.io/pypi/v/python-3parclient.svg :target: https://pypi.python.org/pypi/python-3parclient :alt: Latest Version

.. image:: https://img.shields.io/pypi/dm/python-3parclient.svg :target: https://pypi.python.org/pypi/python-3parclient :alt: Downloads

HPE Alletra 9000 and HPE Primera and HPE 3PAR REST Client

This is a Client library that can talk to the HPE Alletra 9000 and Primera and 3PAR Storage array. The HPE Alletra 9000 and Primera and 3PAR storage array has a REST web service interface and a command line interface. This client library implements a simple interface for talking with either interface, as needed. The python Requests library is used to communicate with the REST interface. The python paramiko library is used to communicate with the command line interface over an SSH connection.

This is the new location for the rebranded HP 3PAR Rest Client and will be where all future releases are made. It was previously located on PyPi at: https://pypi.python.org/pypi/hp3parclient

The GitHub repository for the old HP 3PAR Rest Client is located at: https://github.com/hpe-storage/python-3parclient/tree/3.x

The HP 3PAR Rest Client (hp3parclient) is now considered deprecated.

Requirements

This branch requires 3.1.3 version MU1 or later of the HPE 3PAR firmware. This branch requires 4.3.1 version of the HPE Primera firmware. This branch requires 9.3.0 version of the HPE Alletra 9000 firmware. File Persona capabilities require HPE 3PAR firmware 3.2.1 Build 46 or later.

Capabilities

File Persona Capabilities

Installation

To install from source::

$ sudo pip install .

To install from http://pypi.org::

$ sudo pip install python-3parclient

Unit Tests

To run all unit tests::

$ tox -e py27

To run a specific test::

$ tox -e py27 -- test/file.py:class_name.test_method_name

To run all unit tests with code coverage::

$ tox -e cover

The output of the coverage tests will be placed into the coverage dir.

Folders

Documentation

To build the documentation::

$ tox -e docs

To view the built documentation point your browser to::

docs/html/index.html

Running Simulators

The unit tests should automatically start/stop the simulators. To start them manually use the following commands. To stop them, use 'kill'. Starting them manually before running unit tests also allows you to watch the debug output.

Building wheel dist

This client now supports building via the new python WHEELS standard. Take a look at http://pythonwheels.com