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
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
Torch Module with subclasses pt

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-1.0.0rc0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

serialzy-1.0.0rc0-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file serialzy-1.0.0rc0.tar.gz.

File metadata

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

File hashes

Hashes for serialzy-1.0.0rc0.tar.gz
Algorithm Hash digest
SHA256 9708bb48cb99a0a11bd6cc2891f1a9dbd6bfeae7aca6a2a6f0179c9d75442f8d
MD5 07f2426cbcf55372ec57c7890f640cf2
BLAKE2b-256 61c4b7217170c469bd0ad70984a4dbe945396355c4702ca389e34d2efebd33df

See more details on using hashes here.

File details

Details for the file serialzy-1.0.0rc0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for serialzy-1.0.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 a137b29b6f36585298315dfb3a563d0eab24efaf9ba8a4d6b6c55e06bb28e29c
MD5 ba9719988f168580ea6041ecc7aab41c
BLAKE2b-256 00846a6d706eeae2b50188684478ceb4373ecfa4d307d8f848ef3e2db0476e11

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