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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for datastorage-0.4.10.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b50a5a7ff163f3fb53058c634cdb9efa9ab4544118a0c2963f966e6f62de7e |
|
MD5 | df7973d30ae37963efe1dbb27a0b4a5a |
|
BLAKE2b-256 | c6c3f04266ad1798dc2329f2123d15c8de122727361bb3f2b4a073ce1da7e0c2 |