Compressed Pickler: kraut
Project description
kraut
pickle
with built in compression with Python Standard Library bz2
with no dependencies. Useful for serializing massive Dict objects, CSV files or NetworkX graphs and many more.
Installation
pip install kraut
Usage
from kraut import write_compressed, read_compressed
my_huge_data_object = {...}
write_compressed("save/myobj.pkl.bz2", my_huge_data_object):
...
my_restored_object = read_compressed("save/myobj.pkl.bz2"):
assertEqual(my_huge_data_object, my_restored_object)
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
kraut-0.2.tar.gz
(13.7 kB
view hashes)
Built Distribution
kraut-0.2-py2.py3-none-any.whl
(13.1 kB
view hashes)