The h5py Package

Including Cython, Jython, IronPython, PyPy, Django framework, and interpreters: Ipython, IPython Jupyter/Notebook, CPython


Post Reply
User avatar
Eli
Senior Expert Member
Reactions: 183
Posts: 5303
Joined: 9 years ago
Location: Tanzania
Has thanked: 75 times
Been thanked: 88 times
Contact:

#1

The h5py package is a Pythonic interface to the HDF5 binary data format, used for reading and writing HDF5 data files from python.

It enables you to store huge amounts of numerical data, and easily manipulate them from NumPy. For example, you can slice into multi-terabyte datasets stored on disk, as if they were real NumPy arrays. Thousands of datasets can be stored in a single file, categorized and tagged however you want.

H5py uses straightforward NumPy and Python metaphors, like dictionary and NumPy array syntax. For example, you can iterate over datasets in a file, or check out the .shape or .dtype attributes of datasets.

In addition to the easy-to-use high level interface, h5py rests on a object-oriented Cython wrapping of the HDF5 C API. Almost anything you can do from C in HDF5, you can do from h5py.

Reference: http://www.h5py.org/

You can download h5py from Python Package Index (PyPI) or install it quickly by following instructions found here (including h5py usage Demo) or at http://docs.h5py.org.

For Ubuntu Linux, you can install h5py using conda, simply by typing

Code: Select all

conda install h5py
Check if the installed on Ubuntu package dependencies meet requirements by typing

Code: Select all

apt-cache policy <packagename>
Or

Code: Select all

dpkg -l | grep <packagename>
For example, to check the installed version of numpy, type

Code: Select all

apt-cache policy python-numpy
Or

Code: Select all

dpkg -l | grep python-numpy
For Ubuntu 14.04 LTS, if pip or conda install does not work, install h5py for python3 with:

Code: Select all

sudo apt-get install python3-h5py
0
TSSFL -- A Creative Journey Towards Infinite Possibilities!
Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Python Programming”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest