Installation
Rust
Add to your Cargo.toml:
cargo add json-tools-rs
Or manually:
[dependencies]
json-tools-rs = "0.9"
Python
Install from PyPI:
pip install json-tools-rs
This pulls in orjson as a regular dependency,
which the bindings use automatically for the Python-side dict ↔ JSON-string
conversion that dict, list[dict], and DataFrame inputs go through (roughly
1.4-1.6x faster end-to-end calls for those input shapes than the standard
library's json module). Documents containing integers beyond 64-bit range
are always routed through the standard library instead, to preserve exact
integer precision.
Pre-built wheels are available for:
| Platform | Architectures |
|---|---|
| Linux (glibc) | x86_64, x86, aarch64, armv7, ppc64le |
| Linux (musl) | x86_64, x86, aarch64, armv7 |
| macOS | x86_64 (Intel), aarch64 (Apple Silicon) |
| Windows | x64 |
Python 3.9+ is supported.
Verify Installation
Rust:
use json_tools_rs::JSONTools; fn main() { let result = JSONTools::new() .flatten() .execute(r#"{"hello": "world"}"#) .unwrap(); println!("{:?}", result); }
Python:
import json_tools_rs as jt
result = jt.JSONTools().flatten().execute({"hello": "world"})
print(result) # {'hello': 'world'}