Metadata-Version: 2.0
Name: datastorage
Version: 0.3.7
Summary: Dict-like object that can be saved in hdf5 or numpy format
Home-page: https://github.com/marcocamma/datastorage
Author: marco cammarata
Author-email: marcocammarata@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Requires-Dist: h5py
Requires-Dist: numpy

datastorage
--------

To use simply do::
   >>> from datastorage import DataStorage
   >>> data = DataStorage( a=(1,2,3),b="add",filename='store.npz' )

   >>> # data.a will be a dictionary
   >>> data = DataStorage( myinfo = dict( name= 'marco', surname= 'cammarata'),\
   >>>                     data   = np.arange(100) )

   >>>  # reads from file if it exists
   >>>  data = DataStorage( 'mysaveddata.npz' ) ;

   >>>  create empty storage (with default filename)
   >>>  data = DataStorage()
   >>>  data.mynewdata = np.ones(10)


