for any info/changes follow me: @nickmilon

Hellas.Olympia module

This module contains some pickle and compress code snippets named after the city of Olympia where first Olympic games were held

Hellas.Olympia.pickle_compress(obj, print_compression_info=False)[source]

pickle and compress an object

Hellas.Olympia.pickle_decompress(obj)[source]

decompress a pickle_compress object

Hellas.Olympia.pickle_compress_test(obj, print_compression_ratio=True)[source]

verifies id an object is pickable and can be compressed

Hellas.Olympia.pickle_compress_str(obj, print_compression_info=False)[source]

str gets better compression ration

Hellas.Olympia.pickle_decompress_str(obj)[source]

decompress pickle_compressed as str

Warning

it uses ‘eval’ use it carefully