Skip to main content

No project description provided

Project description

Pypi version Tests Python tests coverage PyPI - Python Version

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


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.10.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

serialzy-0.0.10-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file serialzy-0.0.10.tar.gz.

File metadata

  • Download URL: serialzy-0.0.10.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for serialzy-0.0.10.tar.gz
Algorithm Hash digest
SHA256 6eb97835d38226d27f7b6f2b1c1d8fe7c84cdf539ce0b88707cf7c6f377b8a50
MD5 f2df6d73959799870a20e4141657cd87
BLAKE2b-256 2e62a576121986d764c12f05aa5014a26e7c4de49d620cad4bd83e09f7e48ed9

See more details on using hashes here.

File details

Details for the file serialzy-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: serialzy-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for serialzy-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2079061691adfc7bc578f1816428b40755c498bd328a8d4af19581e6e3316f0d
MD5 99c64ccb173302f5f4030d947e0f1e8c
BLAKE2b-256 0595fc52526a6be5aec91f40fb8231ed827f61f7c46410ab4649754754042dac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page