Module Expr Str Import alias ImportFrom alias Import alias Import alias Assign NameStore Call NameLoad Str ListLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad If CompareGt NameLoad NameLoad body Assign NameStore BinOpMod Str BinOpDiv NameLoad NameLoad orelse If CompareGt NameLoad NameLoad body Assign NameStore BinOpMod Str BinOpDiv NameLoad NameLoad orelse If CompareGt NameLoad NameLoad body Assign NameStore BinOpMod Str BinOpDiv NameLoad NameLoad orelse If CompareGt NameLoad NameLoad body Assign NameStore BinOpMod Str BinOpDiv NameLoad NameLoad orelse If CompareGt NameLoad NameLoad body Assign NameStore BinOpMod Str BinOpDiv NameLoad NameLoad orelse If CompareGt NameLoad NameLoad body Assign NameStore BinOpMod Str BinOpDiv NameLoad NameLoad orelse If CompareGt NameLoad NameLoad body Assign NameStore BinOpMod Str BinOpDiv NameLoad NameLoad orelse If CompareGt NameLoad NameLoad body Assign NameStore BinOpMod Str BinOpDiv NameLoad NameLoad orelse Assign NameStore BinOpMod Str NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign AttributeStore NameLoad attr Call AttributeLoad Str attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr TryExcept body Assign NameStore BinOpMult AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore BinOpMult AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore BinOpAdd NameLoad Str AugAssignAdd NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Str Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad NameLoad NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Import alias With Call NameLoad NameLoad NameStore body Print Str Print NameLoad Print Str Print Str Print AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr Print SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Num Num Slice Num Num Print SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str ExtSlice Index Num Index Num Index Num Slice Num Num
N/A N/A H5View: a light, h5py/IPython-friendly HDF5 viewer in text mode.

Usage:

    import h5view
    with h5view.open('test.h5') as f:
        # display the whole structure of the file
        print(f)
        # access a group and display its information
        print(f.MyGroup1.SubGroup)
        # access a dataset
        X = f.MyGroup2.MyDataset[0,:]
        # access an attribute
        val = f.MyGroup3.myAttr
        # access the corresponding h5py object
        item = f.MyDataset.item()
        # get a descendant from its relative path
        print(f.MyGroup4.get('MySubgroup/MyDataset'))

In IPython, tab completion shows all direct children (groups, datasets,
attributes) of the file or any item (group/dataset), making it quite
convenient to interactively explore a HDF5 file.

 N/A h5py collections namedtuple N/A operator N/A os N/A ItemInfo N/A namedtuple ItemInfo N/A path itemtype shape dtype format_size N/A N/A num_bytes N/A N/A N/A Pretty print a file size. N/A num_bytes N/A float num_bytes N/A KiB 1024 N/A MiB N/A KiB KiB N/A GiB N/A KiB MiB N/A TiB N/A KiB GiB N/A PiB N/A KiB TiB N/A EiB N/A KiB PiB N/A ZiB N/A KiB EiB N/A YiB N/A KiB ZiB N/A N/A num_bytes YiB N/A N/A output N/A %.3g YB N/A num_bytes YiB N/A N/A N/A num_bytes ZiB N/A N/A output N/A %.3g ZB N/A num_bytes ZiB N/A N/A N/A num_bytes EiB N/A N/A output N/A %.3g EB N/A num_bytes EiB N/A N/A N/A num_bytes PiB N/A N/A output N/A %.3g PB N/A num_bytes PiB N/A N/A N/A num_bytes TiB N/A N/A output N/A %.3g TB N/A num_bytes TiB N/A N/A N/A num_bytes GiB N/A N/A output N/A %.3g GB N/A num_bytes GiB N/A N/A N/A num_bytes MiB N/A N/A output N/A %.3g MB N/A num_bytes MiB N/A N/A N/A num_bytes KiB N/A N/A output N/A %.3g KB N/A num_bytes KiB N/A N/A output N/A %.3g B num_bytes N/A output N/A Item N/A object N/A N/A Represents a group or a dataset in the file. __init__ N/A N/A self file parent name itemtype N/A kwargs N/A N/A N/A self file file N/A N/A self parent parent N/A N/A self name name N/A N/A self itemtype itemtype N/A N/A self _children N/A N/A N/A self kwargs kwargs N/A parentnm N/A parent fullname N/A N/A N/A parentnm endswith / N/A N/A parentnm N/A parentnm N/A -1 N/A N/A self fullname N/A N/A / join N/A parentnm name N/A _add_child N/A N/A self name child N/A N/A N/A Add a child. N/A N/A N/A self _children N/A name child N/A children N/A N/A self N/A N/A N/A Return the list of children. N/A N/A N/A N/A self _children keys N/A get N/A N/A self name N/A N/A N/A Return an attribute, a children, or any descendant from its full
        name. N/A N/A name N/A N/A self _attrs N/A N/A N/A N/A self _attr name N/A N/A / name N/A N/A N/A parent child N/A N/A N/A os path split name N/A N/A N/A N/A N/A self get parent get child N/A N/A N/A N/A N/A self _children get name N/A __getattr__ N/A N/A self name N/A N/A N/A Access a child. N/A val N/A N/A self get name N/A N/A val None N/A N/A val N/A N/A N/A self kwargs get name N/A val N/A __dir__ N/A N/A self N/A N/A N/A Return the list of attributes and children. N/A d N/A N/A N/A self _children keys N/A N/A N/A d extend N/A N/A self _attrs N/A N/A N/A d extend N/A self kwargs N/A N/A sorted d N/A item N/A N/A self N/A N/A N/A Return the associated h5py object (group or dataset). N/A N/A N/A N/A N/A self file f get N/A self fullname N/A __getitem__ N/A N/A self i N/A N/A N/A For a dataset, access any part of the array. N/A N/A N/A self itemtype dataset N/A N/A N/A N/A N/A self item N/A i N/A _attr N/A N/A self name N/A N/A N/A Return an attribute. N/A item N/A N/A self item N/A N/A N/A item attrs N/A name N/A _attrs N/A N/A self N/A N/A N/A Return the list of attributes. N/A N/A sorted N/A N/A N/A N/A N/A self item attrs keys N/A _get_repr N/A N/A self N/A N/A N/A Pretty print this item. N/A N/A N/A self itemtype group N/A N/A s N/A self fullname N/A N/A N/A N/A self itemtype dataset N/A N/A item N/A N/A N/A N/A self file f get N/A self fullname N/A N/A shape dtype N/A N/A str N/A item shape N/A str N/A item dtype N/A N/A N/A nbytes N/A N/A N/A item dtype itemsize N/A item size N/A N/A N/A N/A nbytes N/A N/A N/A item dtype itemsize N/A N/A item len N/A s N/A N/A {0:s}: shape {1:s}, dtype "{2:s}", {3:s} format N/A self fullname shape dtype N/A format_size nbytes N/A attr N/A N/A self _attrs N/A N/A val N/A N/A self get attr N/A s N/A N/A 
  * {0}: {1} format attr val N/A s N/A __repr__ N/A N/A self N/A N/A N/A Pretty print this item and all its descendants recursively. N/A repr N/A N/A self _get_repr N/A child N/A self _children N/A N/A repr N/A repr N/A repr N/A N/A N/A N/A self get child __repr__ N/A repr N/A N/A Dataset N/A Item N/A __init__ N/A N/A self file parent name N/A N/A N/A N/A N/A N/A super Dataset self __init__ file parent name dataset N/A N/A Group N/A Item N/A __init__ N/A N/A self file parent name N/A N/A N/A N/A N/A N/A super Group self __init__ file parent name group N/A N/A File N/A Item N/A N/A Represents a HDF5 file. __init__ N/A N/A self filename N/A None N/A N/A N/A self fullname / N/A N/A N/A N/A super File self __init__ self self group N/A N/A self filename filename N/A N/A self f None N/A N/A self iteminfos N/A N/A N/A N/A self open N/A open N/A N/A self filename N/A None N/A N/A Open the file in read-only mode. N/A N/A filename None N/A N/A filename N/A self filename N/A N/A N/A self filename filename N/A N/A N/A N/A self f None N/A filename None N/A N/A N/A self f N/A N/A h5py File filename r N/A N/A N/A self _visit N/A close N/A N/A self N/A N/A N/A Close the file. N/A N/A N/A self f None N/A N/A N/A N/A N/A self f close N/A __enter__ N/A N/A self N/A N/A N/A Enter the file, to use with `with`. N/A self N/A __exit__ N/A N/A self type value tb N/A N/A N/A Exit the file, to use with `with`. N/A N/A N/A self close N/A _visit_item N/A N/A self name N/A N/A N/A Callback function for `visit`: register the item. N/A item N/A N/A N/A self f get name N/A N/A isinstance item N/A h5py Dataset N/A N/A itemtype dataset N/A N/A shape dtype N/A N/A item shape N/A item dtype N/A N/A N/A isinstance item N/A h5py Group N/A N/A itemtype group N/A N/A shape dtype N/A None None N/A N/A N/A N/A self iteminfos append N/A ItemInfo name itemtype shape dtype N/A N/A / name N/A N/A N/A N/A self _children N/A name N/A Item self self name itemtype shape shape dtype dtype N/A N/A N/A parentnm childnm N/A N/A N/A os path split name N/A parent N/A N/A self get parentnm N/A child N/A Item self parent childnm itemtype shape shape dtype dtype N/A N/A N/A parent _add_child childnm child N/A _visit N/A N/A self N/A N/A N/A Visit the whole hierarchy of groups and datasets in the file. N/A N/A N/A self f None N/A N/A N/A N/A N/A self f visit N/A self _visit_item N/A N/A self iteminfos N/A sorted N/A self iteminfos key N/A N/A operator itemgetter 0 N/A N/A self iteminfos N/A __repr__ N/A N/A self N/A N/A N/A Return a complete pretty print representation of the file and
        all its groups, datasets and attributes. N/A filename N/A N/A N/A os path realpath N/A self filename N/A s N/A N/A <HDF5 file "{0:s}", {1:s}>
 format filename N/A format_size N/A N/A N/A os path getsize filename N/A s N/A N/A N/A super File self __repr__ N/A s N/A N/A open N/A N/A filename N/A N/A N/A Open a HDF5 file. N/A N/A File filename N/A N/A N/A __name__ __main__ N/A N/A filename test.h5 N/A N/A N/A N/A N/A os path exists filename N/A N/A create N/A N/A open filename f N/A N/A Let's display the file. N/A f N/A N/A Now, let's access some attributes, groups, and datasets. N/A N/A f MyAttr N/A N/A f MyGroup2 N/A N/A N/A N/A f MyGroup2 MyDataset1 N/A N/A 2 4 N/A 3 5 N/A N/A N/A N/A N/A N/A f MyGroup1 MyGroup11 get MyGroup111/MyDataset2 N/A N/A 0 N/A 0 N/A 0 N/A 1 3