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.8.tar.gz
(10.6 kB
view details)
Built Distribution
serialzy-0.0.8-py3-none-any.whl
(14.8 kB
view details)
File details
Details for the file serialzy-0.0.8.tar.gz
.
File metadata
- Download URL: serialzy-0.0.8.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65be7c50021549110f17e6f3d48a65434b7ef846a06f564b67ead251f83f3ba3 |
|
MD5 | afe0ab6d1fc85587fec034de284d607a |
|
BLAKE2b-256 | 759e238bf40c382437338e6e3c0622189c5c35901e862dc295c32f2384c976d9 |
File details
Details for the file serialzy-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: serialzy-0.0.8-py3-none-any.whl
- Upload date:
- Size: 14.8 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 | c568b1327dcae8d9992256abd5af5255a9b0368e7d9814717bb2aa8986eca5ae |
|
MD5 | f4d352ee0653b96f97996d88dcb42cb0 |
|
BLAKE2b-256 | c1abdfa89f201bb3b6a29b242008859620b6d6abff27ba3e2fee902686aea2ed |