Python Perl Storable module
Project description
Overview
This is a Python module that is be able to read Perl storable files. Storable is a nice and efficient binary format for Perl that is very popular. A lot of other serialization/deserialization modules exist that are even more or less standardized: JSON, XML, CSV,.. etc. Storable is more or less Perl specific.
To ease integration between Perl - where storable sometimes is the only option - and Python this module is a bridge.
The module has been tested to work with Python 2.7 and upwards.
Quick Usage
from storable import retrieve data = retrieve('/path/to/file.storable') from storable.output import serialize # only works (so far) for JSON-able types and recursion-limited depth # This will not serialize to the exact same object in perl as retrieve/thaw-ing # but will be readable by perl to load json-like values serialized_bytes = serialize({'x': 'bar', 'y': 1, 'z': 1.23, 'w':[], 'v':[1,2,3]})
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
storable-1.2.3.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for storable-1.2.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd9e390ddf1dfbaa503782e577d91fa1fce2d1ea6be821a8ec155bf35c37db15 |
|
MD5 | 8e5e95b743a88ba9211c27385216c8d8 |
|
BLAKE2b-256 | 483fa773dfe3290c0c7a06255417a6a5ef02303f277188d3e92a881e896a0cd1 |