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.6.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for datastorage-0.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54c9fc4aed4d9d948c21fa339b3505c0bd0fb3d60ea0c0604a71b09ee469ffe3 |
|
MD5 | 7a259bc82995fbcd46e1d8550a442f7b |
|
BLAKE2b-256 | 221cdd5770b46b1b8bae7729e042cf7955c9277f9dca6c4ac3a2edfdfb3b8d7d |