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.13.tar.gz
(12.1 kB
view hashes)
Built Distribution
serialzy-0.0.13-py3-none-any.whl
(17.3 kB
view hashes)
Close
Hashes for serialzy-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c6048d998da12d3fd8bb5ced62fb33c22000598abb9c81d7481c494c4d1e01 |
|
MD5 | ba450fe58f6a3159c4a9af1bb9f330e5 |
|
BLAKE2b-256 | a3ec75dc2b273cd3c4c7ee6b2470e17c28e9a387ad5255e2b2f28ec8a2074425 |