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 |
Tensorflow.Keras | Sequential, Model with subclasses | tf_keras |
Tensorflow | Checkpoint, Module with subclasses | tf_pure |
LightGBM | LGBMClassifier, LGBMRegressor, LGBMRanker | lgbm |
XGBoost | XGBClassifier, XGBRegressor, XGBRanker | xgb |
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.15.tar.gz
(14.5 kB
view hashes)
Built Distribution
serialzy-0.0.15-py3-none-any.whl
(21.7 kB
view hashes)
Close
Hashes for serialzy-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34b28a9b911b00f68f79f0212bad284705033be8875e060f453f7532052073af |
|
MD5 | 8940c2c59ef523a94f50fa7b25509f04 |
|
BLAKE2b-256 | f26f8b275b54b3b56d12bff456dd542b3577b9826d04344fd0244248cc0d8fd0 |