Skip to main content

Compressed Pickler: kraut

Project description

kraut

Build Status PyPI Version

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


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)

Uploaded Source

Built Distribution

kraut-0.2-py2.py3-none-any.whl (13.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page