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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file serializer_data-2.0.0.tar.gz.
File metadata
- Download URL: serializer_data-2.0.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d120cf3c1f1bd66dc00a2e07fdaac1920a39649bbf6016197be9f273e501d98f
|
|
| MD5 |
809765098c2daa2c75ca461c26db0394
|
|
| BLAKE2b-256 |
237b0df2137a21f7350f481b8c04230ba41a0798192c8a92154111b04d4e8f5e
|
File details
Details for the file serializer_data-2.0.0-py3-none-any.whl.
File metadata
- Download URL: serializer_data-2.0.0-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f61e2fe493e5162fb1d3e74c2bb5733c7e2b3d3dcba102a72a76c0672842c88f
|
|
| MD5 |
80053206a530989d5b43d9908cc23ae8
|
|
| BLAKE2b-256 |
8be1c4fc7a820a62e3c4993380a53941eb67162684d0fbfed3f244517486dfd5
|