fickle - Python module for serializing executable code

Contents

Description

In short (need to be explained)

fickle - Alternative Pickler
Supports "rigid functions" - functions that are fickled with their byte
code (so when loaded, they'll do exactly the same as they did when they
were saved).

Example usage

Saving functions in strings:

>>> def f(x): print "Hello, %s!"%x
...
>>> import fickle
>>> f = fickle.loads(fickle.dumps(f))
>>> f("Newman")
Hello, Newman!

Authors

Amit Aronovitch and Haggai Scolnicov

Compatibility

Currently only tested on Python 2.4 and up. But - originally written on Python 1.5.2 (check - maybe 2.0?), and was used extensively on 2.2.

Get it!

gzipped tarball
fickle-0.1.0.tar.gz (and yes, it should be openable with Winzip or 7zip).
bzr access
bzr branch http://amit.freeshell.org/mirror/export/fickle