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.7.tar.gz
(13.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
datastorage-0.7-py3-none-any.whl
(20.5 kB
view details)
File details
Details for the file datastorage-0.7.tar.gz.
File metadata
- Download URL: datastorage-0.7.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
452d18fe049fbb859422a475db1e10644fc7257e6d3f924f06d68c37fa6d8e15
|
|
| MD5 |
3d0f4394a33829a3f52d8689ab22c0fb
|
|
| BLAKE2b-256 |
af41a36ab236e25a30758b5ca2b0269f882588dd7bb15cf8bba8a49d13a3918c
|
File details
Details for the file datastorage-0.7-py3-none-any.whl.
File metadata
- Download URL: datastorage-0.7-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ad7d6d556a0516f62dba4106996165d1a93f0099f4e24fe54f7e4b4fadd2af8
|
|
| MD5 |
24f0e0fd87da1e72650080941e6f1416
|
|
| BLAKE2b-256 |
3951353a7485e822d82e990da06965d0530e7439e6ed334fdfceca2c0c0a3c10
|