Skip to content
/ kraut Public

`pickle` with built in compression with Python Standard Library `bz2` with no dependencies.

License

Notifications You must be signed in to change notification settings

nullscry/kraut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

`pickle` with built in compression with Python Standard Library `bz2` with no dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages