Path to this page:
./
wip/py-serialize,
Multiple serialization formats with support for custom classes
Branch: CURRENT,
Version: 0.1,
Package name: py312-serialize-0.1,
Maintainer: kamelderouicheTODO: 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
...
Master sites:
RMD160: cf0b9659f63045efca71c054acf156cc010519de
Filesize: 11.936 KB
Version history: (Expand)
- (2024-09-19) Package has been reborn
- (2024-09-19) Updated to version: py312-serialize-0.1
- (2024-09-15) Package deleted from pkgsrc
- (2023-02-13) Package has been reborn
- (2023-02-13) Updated to version: py310-serialize-0.1
- (2021-10-08) Updated to version: py39-serialize-0.1