Python library that provides very simple way to use Rest API services for HPE storage and disk backup devices
Project description
Package description
hpestorapi - python library that provides very 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 depends on:
Python 3.6 or newer
Python requests library
Install from PyPI
To download and install hpestorapi you can use pip:
# pip install hpestorapi
Install 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 in 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: pdf
Issues
If you encounter any problems, please open an issue along with a detailed description.
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hpestorapi-0.9.8.tar.gz
.
File metadata
- Download URL: hpestorapi-0.9.8.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b650a3286c28fb2e8f4341119a44ca06f111af8826cbcf45f20b9ec41ae7e5 |
|
MD5 | 15d79386ed9466f230a362f1e7894ecd |
|
BLAKE2b-256 | 0ba079dc83d084f7bb88972759e1925ac7679b39a0e4d2735ac4d622b70dcbba |