Save stuff quick and easy in Python
Project description
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
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
Built Distribution
File details
Details for the file ezsaver-0.1.0.tar.gz
.
File metadata
- Download URL: ezsaver-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b501ae6e43a8b5c28525c982cce2aabb9ce32b207696051707e0efa33a73365e |
|
MD5 | c87f977bd9c4e5b107dade5b5a6439af |
|
BLAKE2b-256 | fd50b36957975036fe0d7d7ccb42e300938df9abfed0d65aeef68de557a9e922 |
File details
Details for the file ezsaver-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ezsaver-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dfd470e2eb8a3b1fb56fd2ef6a8462c42be8ba70cec01e969aeffc4e788a98f |
|
MD5 | 90458fd45965bcadcffa943ee73f6ba3 |
|
BLAKE2b-256 | 489b7b7b89ab58c09ec7c1cacf2c0d89a9d178dfc66ae729c21e762ce319a7ea |