Skip to main content

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:

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.

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

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

hpestorapi-0.9.9.tar.gz (22.7 kB view details)

Uploaded Source

File details

Details for the file hpestorapi-0.9.9.tar.gz.

File metadata

  • Download URL: hpestorapi-0.9.9.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for hpestorapi-0.9.9.tar.gz
Algorithm Hash digest
SHA256 8f999b6840c3a8a104cd31a3b95945cf54f732d5dd6911c32b635e86367c8c96
MD5 7cc7c85c169acd1dac954fc3c0bc711d
BLAKE2b-256 542617f00c762e29154d50b04cece54a7c4b60287188e420fb4000967b4fcb3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page