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
Hashes for pickle_utils-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f952a8f0a08762d9f9777fa57763deb4f4c12bf01db5c47946228f3dcdb3069 |
|
MD5 | fa1d0fb9aac0403bde9236d1a3c6f3d4 |
|
BLAKE2b-256 | 4329caea26058ad2911af170d64d115b2c3f34c236c8b4b49e34f9878a37a5f0 |