Skip to main content

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


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)

Uploaded Source

Built Distribution

jskiner-0.0.0-cp39-cp39-macosx_11_0_arm64.whl (403.9 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

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