Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Dict-like object that can be saved in hdf5 or numpy format

Project description

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)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for datastorage, version 0.4.8
Filename, size File type Python version Upload date Hashes
Filename, size datastorage-0.4.8-py3-none-any.whl (14.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size datastorage-0.4.8.tar.gz (10.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page