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.8.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for datastorage-0.4.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ab0feb7c1496c8a93f487bf9c4bcec144fd3a1c3c2b05a4e788125180fe429 |
|
MD5 | 860e86207dcce19b516ccb81c1db9f8d |
|
BLAKE2b-256 | b8fd685de93ec9ade67223ae19af3ce75f9767940489a54f08d25bd77905b968 |