No project description provided
Project description
serialzy
Serialzy is a library for python objects serialization into portable and interoperable data formats (if possible).
Examples
Serialization:
from serialzy.registry import DefaultSerializerRegistry
obj = MyObjToSerialize()
registry = DefaultSerializerRegistry()
serializer = registry.find_serializer_by_type(type(obj))
with open('result', 'wb') as file:
serializer.serialize(obj, file)
Deserialization:
with open('result', 'rb') as file:
deserialized_obj = serializer.deserialize(file)
Serializers can be stable (with portable data formats) or unstable, e.g., cloudpickle:
serializer.stable()
List of supported libraries for stable serialization:
Library | Types | Data format |
---|---|---|
CatBoost | CatBoostRegressor, CatBoostClassifier, CatBoostRanker | cbm |
CatBoost | Pool | quantized pool |
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
serialzy-0.0.9.tar.gz
(10.8 kB
view details)
Built Distribution
serialzy-0.0.9-py3-none-any.whl
(14.9 kB
view details)
File details
Details for the file serialzy-0.0.9.tar.gz
.
File metadata
- Download URL: serialzy-0.0.9.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4464353a026cf837c547e22230b67beee7e85683c5c53fadddf78ce08d57d0fe |
|
MD5 | 56cd58c675e1a030b83b5e86551e44a0 |
|
BLAKE2b-256 | cc9b9f43a7a1b8e783822fa70dbd3d9a2d4f0cc45e98cc053f97dfeb8a3b5b2a |
File details
Details for the file serialzy-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: serialzy-0.0.9-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63217743ee7a5ce8d61c1aa1d6918ddd86b5667f7259c698058420cbd7d2fc35 |
|
MD5 | 1cd22b444ac39e93a994f22efdcaedcd |
|
BLAKE2b-256 | ca6394675367c7173ad5e55ab5fa57b39763412a363455da1b4dd11ad36d20ac |