serialize and deserialize objects
Project description
serializer_data
serialize and deserialize objects in a simple way
there are two classes Serializer and Serializable, the first uses static methods while the other does not (see examples)
Test 0
from serializer_data.serializable import Serializable
data_set = {"key1": 3, "key2": 5}
serial = Serializable("fileBinary.mm")
serial.serialize(data_set)
new_data_set = serial.deserialize()
print(new_data_set)
Test 1
from serializer_data.serializer import Serializer
data_set = {"key1": 3, "key2": 5}
serial = Serializer.serialize(data_set, "fileBinary.mm")
new_data_set = Serializer.deserialize("fileBinary.mm")
print(new_data_set)
Installation
pip install serializer_data
Authors
Buscarino Antonino
License
GNU General Public License v3
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
Built Distribution
Hashes for serializer_data-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f61e2fe493e5162fb1d3e74c2bb5733c7e2b3d3dcba102a72a76c0672842c88f |
|
MD5 | 80053206a530989d5b43d9908cc23ae8 |
|
BLAKE2b-256 | 8be1c4fc7a820a62e3c4993380a53941eb67162684d0fbfed3f244517486dfd5 |