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
datastorage-0.4.7.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for datastorage-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3cfdb2f3ba535ad3bed6452d75fa0556c09ab21e747f668b025d583f1b02e3e |
|
MD5 | 11c92f0c2e5703acb876f44a99aa0df6 |
|
BLAKE2b-256 | 99525889a5eccd5ad10b76d78ba039cbc6651c618e3afeb600e6f684e7cd3bd8 |