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

Uploaded Source

Built Distribution

serialzy-0.0.14-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: serialzy-0.0.14.tar.gz
  • Upload date:
  • Size: 12.7 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.14.tar.gz
Algorithm Hash digest
SHA256 81f16e5a3ec14f236ea61a34584015a1ba463043be369e8b6299e6d1018d1d39
MD5 178c935d2e1e124dfa5bf6b7a90c97a6
BLAKE2b-256 919870893823279f2afab11c3e6fddc6edd2b0b2a17df5372e904cf0f8412392

See more details on using hashes here.

File details

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

File metadata

  • Download URL: serialzy-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 18.5 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 8c90ac84a3821aa11d29e2c6198d85a35597c258d22a56fda8259932e2920039
MD5 43b61c1af061e2c158ddc09ea9df61ec
BLAKE2b-256 819f7ea7555398cf6085671392706fec9267be9ec4e6d6756d7a594773d453d6

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