Memoize functions to disk, load and save compressed Pickle files.
Project description
NOTE: You should use pandas.read_pickle and pandas.to_pickle instead for
load and dump.
Available functions:
Use help(pickle_utils) in an interactive session for slightly more detailed
docs.
load(filename_or_object)
Load a Pickle file, from a file name or a file-like object. If the argument is a file name, it must end in ".pkl" or ".pkl.gz". In the second case the file will be compressed.
Use pandas.read_pickle instead.
dump(data, filename_or_object)
Same as before but dump data to disk.
Use pandas.to_pickle instead.
@memoize(filename, log_level=info)
Decorator to memoize the output of a function to filename with pickle. The
function will be executed only if filename does not exist.
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
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
File details
Details for the file pickle_utils-0.1.1.tar.gz.
File metadata
- Download URL: pickle_utils-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25ccc033320f605e891df98b84dd4ed90d4266750dbc60e51aa037b5b2798264
|
|
| MD5 |
e61240490c1b5b27f8c75ee0b60ba6d1
|
|
| BLAKE2b-256 |
32c3fb49f713c18267ee35e50c14d9215fc1662504d33d9025d119879c903554
|
File details
Details for the file pickle_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pickle_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f952a8f0a08762d9f9777fa57763deb4f4c12bf01db5c47946228f3dcdb3069
|
|
| MD5 |
fa1d0fb9aac0403bde9236d1a3c6f3d4
|
|
| BLAKE2b-256 |
4329caea26058ad2911af170d64d115b2c3f34c236c8b4b49e34f9878a37a5f0
|