Skip to main content

Python wrappers around streamson

Project description

Code Quality Security audit

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)

Uploaded Source

Built Distributions

streamson_python-0.1.0-cp38-cp38-manylinux1_x86_64.whl (170.1 kB view hashes)

Uploaded CPython 3.8

streamson_python-0.1.0-cp37-cp37m-manylinux1_x86_64.whl (170.1 kB view hashes)

Uploaded CPython 3.7m

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