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
File details
Details for the file datastorage-0.4.10.linux-x86_64.tar.gz
.
File metadata
- Download URL: datastorage-0.4.10.linux-x86_64.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b50a5a7ff163f3fb53058c634cdb9efa9ab4544118a0c2963f966e6f62de7e |
|
MD5 | df7973d30ae37963efe1dbb27a0b4a5a |
|
BLAKE2b-256 | c6c3f04266ad1798dc2329f2123d15c8de122727361bb3f2b4a073ce1da7e0c2 |