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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size datastorage-0.4.9.linux-x86_64.tar.gz (19.9 kB) | File type Source | Python version None | Upload date | Hashes View |
Filename, size datastorage-0.4.9-py3-none-any.whl (14.2 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Close
Hashes for datastorage-0.4.9.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d5a0462a85bbcd21b117dcfb748919b8b76fe64ce4cfa024f4b0c3a810f7ff0 |
|
MD5 | e8ca918b5eca66f5d1019dda2a56452d |
|
BLAKE2-256 | d4e04565a2730c3de812d00df45e916764ae711298bc53f22bcb9cc95217e852 |
Close
Hashes for datastorage-0.4.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ca071ba8d4517b2c783ab42fd586d025576547c1fbe72626c4aa676280d27a4 |
|
MD5 | 898ea772c7e3c2c183da6d69a661629b |
|
BLAKE2-256 | 97357a32c739f89636e90922a2b82f97de911b4af3e4e1b9709a5d0f754b1f66 |