• Stars
    star
    168
  • Rank 225,507 (Top 5 %)
  • Language
    Python
  • License
    Other
  • Created about 10 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Reference service implementation of the HDF5 REST API

h5serv - REST-based service for HDF5 data

https://travis-ci.org/HDFGroup/h5serv.svg?branch=develop

Introduction

h5serv is a web service that implements a REST-based web service for HDF5 data stores as described in the paper: http://hdfgroup.org/pubs/papers/RESTful_HDF5.pdf.

Notice

h5serv has been deprecated. Users looking for a RESTful way of accessing HDF data should use HSDS (https://github.com/HDFGroup/hsds) instead.

Websites

Quick Install

Install Python (2.7 or later) and the following packages:

  • NumPy 1.10.4 or later
  • h5py 2.5 or later
  • tornado 4.0.2 or later
  • watchdog 0.8.3 or later
  • requests 2.3 or later (for client tests)

Clone the hdf5-json project: git clone https://github.com/HDFGroup/hdf5-json.git . Next, cd to the hdf5-json folder and run: python setup.py install.

Clone this project: git clone https://github.com/HDFGroup/h5serv.git.

Running the Server

Start the server: cd h5serv; python h5serv.

By default the server will listen on port 5000. The port and and several other defaults can be modified with command line options. For example to use port 8888 run: python h5serv --port=8888.

See test cases for examples of interacting with the server. Run: python testall.py from the test directory to run through the entire test suite.

Also, the interface (at least as far as read requests) can be explored in a browser. Go to: http://127.0.0.1:5000/. A JSON browser plugin will be helpful for formatting responses from the server to be more human readable.

See h5serv/docs/Installation.rst for step by step install instructions.

Running with Docker

To run h5serv as a docker container you just need to install Docker (no Python, h5py, etc. needed).

  • Install docker: https://docs.docker.com/installation/#installation.
  • Run the h5serv image: docker run -p 5000:5000 -d -v <mydata>:/data hdfgroup/h5serv where <mydata> is the folder path that contains any HDF5 files you want to made available through the h5serv REST API. Since requests to the server can modify (or delete!) content, you probably want to create a new folder and copy files to it.
  • Go to http://192.168.99.100:5000/ in your browser to verify the server is up and running (replace 192.168.99.100 with the IP address of the system or VM that is running the container).

Writing Client Applications

As a REST service, clients be developed using almost any programming language. The test programs under: h5serv/test/integ illustrate some of the methods for peforming different operations using Python.

The related project: https://github.com/HDFGroup/h5pyd provides a (mostly) h5py-compatible interface to the server for Python clients.

Uninstalling

h5serv does not modify anything in the system outside the directory where it was installed, so just remove the install directory and all contents to uninstall.

Reporting bugs (and general feedback)

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

For general questions/feedback, please use the list ([email protected]).

More Repositories

1

hdf5

Official HDF5® Library Repository
C
598
star
2

hdf-compass

Python-based viewer for HDF5 on other file formats
Python
130
star
3

hsds

Cloud-native, service based access to HDF data
Python
119
star
4

h5pyd

h5py distributed - Python client library for HDF Rest API
Python
108
star
5

HDF.PInvoke

Raw HDF5 Power for .NET
C#
81
star
6

hdf5-json

Specification and tools for representing HDF5 in JSON
Python
73
star
7

hdfview

Java
58
star
8

hdf5-cffi

Common Lisp bindings for the HDF5 library using CFFI
Common Lisp
36
star
9

hermes

Extending the HDF5 library to support intelligent I/O buffering for deep memory and storage hierarchy systems
C++
34
star
10

vol-async

Asynchronous I/O for HDF5
C
19
star
11

build_hdf5

Scripts for building HDF5 for various platforms and compilers
Shell
16
star
12

hdf-docker

Dockerfiles for HDF related containers
Dockerfile
16
star
13

vol-cache

HDF5 Cache VOL connector for caching data on fast storage layers and moving data asynchronously to the parallel file system to hide I/O overhead.
C
16
star
14

hdf4

Official HDF4 Library Repository
C
14
star
15

hdf-rest-api

Python
12
star
16

hdf5-iotest

HDF5 Performance Analysis Checklist
Jupyter Notebook
12
star
17

hdf5_plugins

CMake
11
star
18

h5ld

Python reader for Linked Data in HDF5 files
Python
11
star
19

PyHexad

A PyXLL-based Excel add-in for HDF5
Python
9
star
20

datacontainer

Data Container Study
Shell
8
star
21

hsds_examples

Jupyter Notebook
8
star
22

psh5x

A Windows PowerShell HDF5 Extension
C++
6
star
23

HDF.PInvoke.1.10

HDF.PInvoke for .NET Standard
C#
6
star
24

hdf5-tutorial

A tutorial for new and intermediate HDF5 users (of all ages)
Jupyter Notebook
6
star
25

hdflab_examples

Python Notebook examples for HDFLab
Jupyter Notebook
6
star
26

emacs

Supporting HDF5 in the world's most powerful productivity environment
YASnippet
5
star
27

vol-rest

HDF5 REST VOL Connector
C
5
star
28

hcl

Hermes Container Library
C++
5
star
29

vol-daos

HDF5 VOL connector for DAOS
C
5
star
30

hdf5-poker

Everything you've ever wanted to know about the HDF5 file format (but didn't dare ask).
5
star
31

hdf5-examples

C
4
star
32

dynamic-dns

A dynamic DNS server for mapping files to DNS entries
Python
4
star
33

Tutorial

C
4
star
34

vol-tests

C
4
star
35

hdfcloud_workshop

Jupyter Notebook
3
star
36

hdf5-api-ref

HDF5: API Specification Reference Manual
Python
3
star
37

blog

A repository for material related to postings on the HDF Blog (http://blog.hdfgroup.org/)
Python
3
star
38

Recorder

A Multi-Level Library for Understanding I/O Activity in HPC Applications
C
3
star
39

vol-log-based

Log VOL - an HDF5 VOL connector for storing data in a time-log layout in files
C++
3
star
40

hdf5-spark-connector

HDF5 Connector for Apache Spark
Scala
3
star
41

tar2h5

Convert Tape ARchives to HDF5 files
C
2
star
42

nasa_cloud

Python
2
star
43

alcove

Everything that you have always wanted to know about the HDF5 file format, but were ashamed to ask.
Jupyter Notebook
2
star
44

hdf5doc

HTML
2
star
45

hsds-bucket-loader

Python
2
star
46

cve_hdf5

For testing CVE issues filed against the HDF5 library
Shell
2
star
47

armed-hdf5

HDF5 on ARM architectures
1
star
48

hdf5vfd4hdfs-demo

A demonstration of the HDF5 Virtual File Driver for HDFS
HTML
1
star
49

Replayer

Automatic Generation of I/O Trace Generators for HPC Applications
C++
1
star
50

aiohstools

Async tools for HDF Server
Python
1
star
51

hdf-spack

Python
1
star