ezsaver
Lightweight tool to simplify saving/loading stuff in Jupyter notebooks.
Installation
Install with pip
pip install ezsaver
Usage
Import ezsaver as ez, and use ez.save() to save data. It will save objects of any complexity like tensorflow models, multidimensional numpy arrays, etc. Just feed it your filepath and the names of all the variables you want to save as arguments:
import ezsaver as ez
data1 = 2
data2 = np.random.random(size=(2, 4))
ez.save(filepath, data1, data2)
To load the data later, use ez.load(), giving it the filepath as an argument. It returns a dict, where the keys are the names of the original variables. If you forget what you named a variable, just view loaded_data.keys() to see them all.:
loaded_data = ez.load(filepath)
# keys are same name as original variables
data1 = saved_data['data1']
data2 = saved_data['data2']
If you have a feature request or problem, please open an issue. Note because of complexities of Python, ezsave does not work if you are coding directly from the command line .
Acknowledgments
Metadata
Release files for ezsaver 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ezsaver-0.1.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ezsaver-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / ezsaver-0.1.0.tar.gz
| Download URL | ezsaver-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b501ae6e43a8b5c28525c982cce2aabb9ce32b207696051707e0efa33a73365e
|
|
BLAKE2b-256 checksum How to use checksums |
fd50b36957975036fe0d7d7ccb42e300938df9abfed0d65aeef68de557a9e922
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / ezsaver-0.1.0-py3-none-any.whl
| Download URL | ezsaver-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8dfd470e2eb8a3b1fb56fd2ef6a8462c42be8ba70cec01e969aeffc4e788a98f
|
|
BLAKE2b-256 checksum How to use checksums |
489b7b7b89ab58c09ec7c1cacf2c0d89a9d178dfc66ae729c21e762ce319a7ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|