Hopefully safe and deterministic serializer to binary format, including Pandas data
Project description
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
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
lazydf-0.220726.2.tar.gz
(17.8 kB
view details)
Built Distribution
File details
Details for the file lazydf-0.220726.2.tar.gz
.
File metadata
- Download URL: lazydf-0.220726.2.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.4 Linux/5.15.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c31061f5676bb7c231d986c4c36ce80abef84033458f88d081ebd493114d950 |
|
MD5 | 586f837413c9d9afcb5c019c6fa3f70d |
|
BLAKE2b-256 | 42d48698b18f5d407c10868e2bed7eafa06a18be586f0b3692d1c176e3458cdd |
Provenance
File details
Details for the file lazydf-0.220726.2-py3-none-any.whl
.
File metadata
- Download URL: lazydf-0.220726.2-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.4 Linux/5.15.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be9ef097721d9f65ff49b684ce24c214eeb17b1b50a4d53837a8740b92e5859d |
|
MD5 | 41203813cf35e26dfeafb26dd8c01ee0 |
|
BLAKE2b-256 | 3973bfc590ebb330a83834924ca33bbe6e9c62df7822049805782ddefdc0f741 |