No project description provided
Project description
JSkiner
The is a python Json Schema Inference Engine with Rust's core.
Installation
pip install jsiner
Usage
Checking the Json Schema of a Large .jsonl file
jshow \
--jsonl <path_to_jsonl>
--verbose <0/1>
--out <output_file_path>
--nworkers <number_of_cpu_core>
Infering the Schema in Python
from jshow import InferenceEngine
cpu_cnt = 16
engine = InferenceEngine(cpu_cnt)
json_string_list = ["1", "1.2", "null", "{\"a\": 1}"]
schema_str = engine.run(json_string_list)
print(schema_str)
'Union({Atomic(Float()), Atomic(Int()), Atomic(Non()), Record({"a": Atomic(Int())})})'
TODO:
- move json schema inference rust code here
- add cmd.py tools for parsing .jsonl file to jshow
- build the cicd pipeline using .workflow
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
jskiner-0.0.0.tar.gz
(90.2 kB
view hashes)
Built Distribution
Close
Hashes for jskiner-0.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5d4fb802faff1b8713addff778e28a18e41888d1751b2f855b7818c0ae7f402 |
|
MD5 | 26cb2cd39da7a89298d30aced973f0a1 |
|
BLAKE2b-256 | c352977e8c78d1d5b1cf6f9cca84ff6d89362d32d4644557c10e3959c7e0076d |