BSD Ports

wip/py-serialize 0.1 NetBSD

Multiple serialization formats with support for custom classes

System
NetBSD
Repository
pkgsrc-wip
Maintainer
[email protected]
License
modified-bsd
Categories
wip, devel, python

Description

TODO: Adjust the following lines from README

Serialize: A common Python API for multiple serialization formats

There are multiple serialization formats out there ...

                    ... and great packages to use them.

But they all have a different API and switching among them is not so simple as it should be. Serialize helps you to do it, including dealing with custom classes. Let's dump a dict using the `pickle` format:

.. code-block:: python

>>> from serialize import dumps, loads
>>> dumps(dict(answer=42), fmt='pickle')
b'\\x80\\x03}q\\x00X\\x06\\x00\\x00\\x00answerq\\x01K\*s.'
>>> loads(\_, fmt='pickle')
{'answer': 42}

And here comes the cool thing, you can just change the serialization format ...

Install

From pkgsrc-wip (no binary package):

cd /usr/pkgsrc/wip/py-serialize && make install clean

Dependencies

Run dependencies 4

No port depends on this one.