Home

Awesome

Open in GitHub Codespaces

h5pyd

Python client library for HSDS

Introduction

This repository contains library, test, and examples of h5pyd - a Python package for HSDS (Highly Scalable Data Service), or other HDF REST compatible web services.

The h5pyd library provides a high-level interface to the REST specification that is generally easier to use than invoking http calls directly.

This package is based on the popular h5py package and aims to be source compatible with the h5py high level interface.

Websites

Related Projects

Installing

Via pip::

pip install h5pyd

From a release tarball or Git checkout::

pip install .

Run hsconfigure to setup the connection info (endpoint, username, and password) to HSDS.
If you don't have access to an HSDS instance, you can easily setup your own HSDS instance. See https://github.com/HDFGroup/hsds for instructions on installing and running HSDS on locally or in the cloud.

Direct Mode

The h5pyd package can be used without an explicit HSDS connection. Rather, the storage system will be accessed directly.

To use in direct mode, set the HS_ENDPOINT to "local" (or "local[n]" where n is the number of desired sub-processes).

For direct mode, some additional environment variables are needed to be defined:

To use "local" mode with S3, define these variables:

To use "local" mode with Azure, defined these variables:

To use "local" with Posix storage, define these variables:

H5PYD Command Line Apps

Several utility applications are included with this package:

Use the --help option to get usage information for each command.

Testing

By default the test suite will attempt to connect to a local instance of HSDS with the http://localhost:5101 endpoint.

Use the following environment variables as needed to modify the default configuration for the test suite:

Run: $python testall.py to execute the test suite.

Uninstalling

Just remove the install directory and all contents to uninstall.

Reporting bugs (and general feedback)

Create new issues at http://github.com/HDFGroup/h5pyd/issues for any problems you find.

For general questions/feedback, please use the HSDS forum (https://forum.hdfgroup.org/c/hsds).