hpestorapi
Package description
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
Installation
Requirements
hpestorapi library requires:
CPython 3.6+ or PyPy3 interpreter
Python requests library
Installation from PyPI
To download and install hpestorapi you can use pip:
# pip install hpestorapi
Installation from GitHub
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
Usage example
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"]
)
Documentation
The latest version of the documentation can be found here: html
Issues
If you encounter any problems, please open an issue along with a detailed description. Your questions are welcomed in gitter chat.
Package Version Numbers
This project follows Semantic Versioning.
Unit Tests
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
Metadata
Release files for hpestorapi 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hpestorapi-1.0.0.tar.gz | 25.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hpestorapi-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 53.4 kB
Release files / hpestorapi-1.0.0.tar.gz
| Download URL | hpestorapi-1.0.0.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83ae502f5a6b42fe5be36c83eef7a540e9c8a4fbb40be90722498f8dfe76c8d2
|
|
BLAKE2b-256 checksum How to use checksums |
ccd89fe6c347f6f2dbfa5aed45e7e6b859c87181dea559c3c0936b5c184a8385
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / hpestorapi-1.0.0-py2.py3-none-any.whl
| Download URL | hpestorapi-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 28.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a1fd37566b94a881e94a9333800f6cbcaf97c5f012fe91de958f16c16ebd6702
|
|
BLAKE2b-256 checksum How to use checksums |
aef9e94bcdf72f4b71e57222aad377aec2b68a3f3ebdee3a44230659b365099a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|