Skip to main content

Hopefully safe and deterministic serializer to binary format, including Pandas data

Project description

test codecov github Python version license: GPL v3 API documentation

lazydf - Serialization of nested objects to binary format

An alternative to pickle, but may use pickle if safety is not needed.

Principle: Start from the simplest and safest possible and try to be fast.

  • try orjson
    • dict, str, int, etc
  • try bson
    • standard types accepted by mongodb
  • serialize as numpy
    • ndarray, pandas dataframe/series

Non-deterministic and unsafe modes (pickle) are planned for the near future.

Python installation

from package

# Set up a virtualenv. 
python3 -m venv venv
source venv/bin/activate

# Install from PyPI
pip install lazydf

from source

git clone https://github.com/lazydf/lazydf
cd lazydf
poetry install

Examples

Some usage examples.

Grants

This work was partially supported by Fapesp under supervision of Prof. André C. P. L. F. de Carvalho at CEPID-CeMEAI (Grants 2013/07375-0 – 2019/01735-0).

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

lazydf-0.220725.4.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

lazydf-0.220725.4-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file lazydf-0.220725.4.tar.gz.

File metadata

  • Download URL: lazydf-0.220725.4.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.15.0-41-generic

File hashes

Hashes for lazydf-0.220725.4.tar.gz
Algorithm Hash digest
SHA256 955c2a5ba5a877a104c27809366b367faf65e6c5b7289b3073ffe81e5b5e4f54
MD5 5464c06b3e7fe371a7f3449127f41a12
BLAKE2b-256 8d24f748f975f490df72e0acccd8ddeddd2d29652b295f9941a1628f5a1cb37a

See more details on using hashes here.

Provenance

File details

Details for the file lazydf-0.220725.4-py3-none-any.whl.

File metadata

  • Download URL: lazydf-0.220725.4-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.15.0-41-generic

File hashes

Hashes for lazydf-0.220725.4-py3-none-any.whl
Algorithm Hash digest
SHA256 40f51c6689bd85e4d82d1c7b073e5b08fa197b5c2366f118f08d52180c74e4f2
MD5 75efd44d4f3b150eeae4ce03a5f34bf4
BLAKE2b-256 43e19f398709ec372a40f21a29c8ae25d37e8937a26c339dd8f8ad9aab02d9ba

See more details on using hashes here.

Provenance

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