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.12.tar.gz
(12.0 kB
view hashes)
Built Distribution
serialzy-0.0.12-py3-none-any.whl
(17.3 kB
view hashes)
Close
Hashes for serialzy-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdcb760c19804353e33d1d21ea8c2de0f839d8bb49843f65e825d0d99a8d7966 |
|
MD5 | a460441a2d8b3af40002184078d8f1d4 |
|
BLAKE2b-256 | c417c0f5c385310d63d0d65da61b367d51a4ec8c92246c48e1bdcbd0dcfdc1c3 |