hpestorapi is a python library that allows a simple way to use Rest API services for HPE storage and disk backup devices. Current version supports:
- HPE 3PAR StoreServ disk arrays
- HPE Primera disk arrays
- HPE XP7 and P9500 (Command View AE Configuration manager is required)
- HPE StoreOnce G3 disk backup device
- HPE StoreOnce G4 disk backup device
hpestorapi library requires:
- CPython 3.6+ or PyPy3 interpreter
- Python requests library
To download and install hpestorapi you can use pip:
# pip install hpestorapi
Get a copy of source code
# git clone https://github.com/HewlettPackard/python-storage-clients.git # cd python-storage-clients
Install the package with dependencies:
# python setup.py install
Import hpestorapi library to your python script:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import hpestorapi
from hpestorapi import StoreServ
with StoreServ('10.0.0.1', '3paruser', '3parpass') as array:
array.open()
status, data = array.get('system')
if status == 200:
print('Name=%s' % data["name"],
'SerialNumber=%s' % data["serialNumber"],
'Address=%s' % data["IPv4Addr"]
)
The latest version of the documentation can be found here: html
If you encounter any problems, please open an issue along with a detailed description. Your questions are welcomed in gitter chat.
This project follows Semantic Versioning.
You should install docker prior to running tests. To run all unit tests:
# pip install -r requirements/development.txt # docker build -t storeserv test/storeserv # docker build -t storeonce3 test/storeonce3 # tox