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(f'Name={data["name"]},'
          f'SerialNumber={data["serialNumber"]},'
          f'Address={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

hpestorapi-0.9.7.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

hpestorapi-0.9.7-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hpestorapi-0.9.7.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4

File hashes

Hashes for hpestorapi-0.9.7.tar.gz
Algorithm Hash digest
SHA256 938f074253626c162e51691bed8c9b1352abdd19b6868c3662101ba553910df7
MD5 0af9c122b12c0dd3aac69b1dc27a7212
BLAKE2b-256 728082660a0bf6d9554cdce376cd5c9c78e87b375919b1d020133c6bd5aa90e0

See more details on using hashes here.

File details

Details for the file hpestorapi-0.9.7-py3-none-any.whl.

File metadata

  • Download URL: hpestorapi-0.9.7-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4

File hashes

Hashes for hpestorapi-0.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f240b08ea5092310d957f73fbf145de235e88271533f087e41ad5f4cd3284e15
MD5 00454451720439834fc95c8b00b770cd
BLAKE2b-256 17798dee012fdd4b3bce30f565c33bd78f39f85cd98a35ead7f4691fda75adf2

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