Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

serializer_data-2.0.0.tar.gz (14.6 kB view hashes)

Uploaded source

Built Distribution

serializer_data-2.0.0-py3-none-any.whl (15.0 kB view hashes)

Uploaded py3

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