Skip to main content

Python Perl Storable module

Project description

https://raster.shields.io/pypi/v/storable https://raster.shields.io/travis/CowboyTim/python-storable/master

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


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.4.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

storable-1.2.4-py2.py3-none-any.whl (10.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file storable-1.2.4.tar.gz.

File metadata

  • Download URL: storable-1.2.4.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for storable-1.2.4.tar.gz
Algorithm Hash digest
SHA256 8baa3f0d77758d47bd3912fcff15446047a72e94b9281f0440f1b94d778fe21c
MD5 cb9a4585bc5e5122af683a2c351cd5ce
BLAKE2b-256 04d6fb647c8df5949cde0ee9382ef32e5da395d9286c8d7420883f1812a4fd46

See more details on using hashes here.

File details

Details for the file storable-1.2.4-py2.py3-none-any.whl.

File metadata

  • Download URL: storable-1.2.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for storable-1.2.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 998305ebebc501b9531a2ba2e6eb184b295d417a8cd1a6c588a0211ec970156f
MD5 cf0be5890883d628131e3592fc89eb33
BLAKE2b-256 ed19ea0b4eb8b014e82bb8f313f5212f41f5947c4fda5ee0d26f8e66bad165fb

See more details on using hashes here.

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