Python wrappers around streamson
Project description
Python streamson
Python bindings for streamson. A memory efficient json splitter written in Rust. The project is still in an early phase, but it seems to be working
Installation
pip install streamson
Usage
Simple
>>> import streamson
>>> data = [b'{"users": ["john","carl","bob"]}']
>>> extracted = streamson.extract_iter((e for e in data), ['{"users"}[]'])
>>> for path, parsed in extracted:
... path, parsed
...
('{"users"}[0]', 'john')
('{"users"}[1]', 'carl')
('{"users"}[2]', 'bob')
Motivation
This project is meant to be use as a fast json splitter. Its main purpose is to split raw binary data instead of parsing it. It is supposed to be fast and memory efficient.
Developer Docs
Build
Poetry is used to manage python dev-dependencies. After you install it you can run:
poetry install
Precommit deployment
To pass the basic lints you may want to install pre-push hook to pre-commit to be sure that CI won't fail in the first step.
poetry run pre-commit install -t pre-push
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
streamson_python-0.1.0.tar.gz
(6.1 kB
view hashes)
Built Distributions
Close
Hashes for streamson_python-0.1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 298590f71ffe0e4754ea71034f698fb51588bb5df14410bcd2987520abd1a606 |
|
MD5 | cfac78015993858ce2b8bfd0f1432fa9 |
|
BLAKE2b-256 | e35d769d85ef4f112bb289f0b2e95d001e0d90ad772d8d297885333655c4d3f9 |
Close
Hashes for streamson_python-0.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edcc6a4d4e1553940e4514db629ba6b2d6b8c0ae57fbdf3912cf2c14362d7ffc |
|
MD5 | d777d0e77b3f123fff647126eb10bdd8 |
|
BLAKE2b-256 | 0ab6f5e3dbadbc7266f822efe4d5600445aa31e56f9edab6b4cf21b790362fc3 |