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.11.tar.gz
(12.0 kB
view hashes)
Built Distribution
serialzy-0.0.11-py3-none-any.whl
(17.3 kB
view hashes)
Close
Hashes for serialzy-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac08bf4dbfa87f0736967dde7485e8a571edf5cabed7abb5ee10df08195f2710 |
|
MD5 | 38e5dc5cc6b75ce4d280f37b87047264 |
|
BLAKE2b-256 | b32f9c56eeee8d9a16110c82741008c57324d8b6df7c9675f8d117577f6488e6 |