No project description provided
Project description
JSkiner
The is a python Json Schema Inference Engine with Rust's core. Its inferencing speed is about 10 times of its pure-python counterpart (jsonschema-inference).
Installation
pip install jskiner
Usage
Checking the Json Schema of a Large .jsonl file
jskiner \
--jsonl <path_to_jsonl>
--verbose <0/1>
--out <output_file_path>
--nworkers <number_of_cpu_core>
Infering the Schema in Python
from jskiner import InferenceEngine
cpu_cnt = 16
engine = InferenceEngine(cpu_cnt)
json_string_list = ["1", "1.2", "null", "{\"a\": 1}"]
schema = engine.run(json_string_list)
schema
Union({Atomic(Float()), Atomic(Int()), Atomic(Non()), Record({"a": Atomic(Int())})})
Calculate the Union of a List of Schema
from jskiner import InferenceEngine
from jskiner.schema import Atomic, Int, Non
cpu_cnt = 16
engine = InferenceEngine(cpu_cnt)
schema = engine.run([Atomic(Int()), Atomic(Non)])
schema
Optional(Atomic(Int()))
Using | Operation between Two Schema
from jskiner import Atomic, Int, Non
schema = Atomic(Int()) | Atomic(Non())
schema
Optional(Atomic(Int()))
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for jskiner-0.0.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73cbf07ba66a0e1326da934817d962a634baafbdbd04627eee79ee3514787489 |
|
MD5 | 1c8946abd5ecde335964f0e4bd3c8d8f |
|
BLAKE2b-256 | b94daa1f82b21e021ac93b30d1d720bd8372592b10a40287e07cea615af5fb7f |
Close
Hashes for jskiner-0.0.12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dd43456771503aee4767de10a63c21c362732ac3125cd24de07a88d4b200592 |
|
MD5 | a043b7042290d312145c94a75cffa9e6 |
|
BLAKE2b-256 | aee4362c41defb8c799f9c6c1bb095efb66ea11a53e45aecf57c9ec739bd6e4e |
Close
Hashes for jskiner-0.0.12-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec971318be9d8e1332ecde9f80d6f6531f5cb2898ce0f7bacddc9cb32d07f259 |
|
MD5 | 6288cd96ffc0821977fd56056d4b42e4 |
|
BLAKE2b-256 | dd7db724a621afde43663edf3128a9c15e8ccbe2c11c887e358be2c6f3d37dcb |
Close
Hashes for jskiner-0.0.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33a1ba9626eefe203e9d190ba43d312c4d59bbf619a5a3b3e92b61e37262589f |
|
MD5 | 067fefeeb2e375da62517eacab693521 |
|
BLAKE2b-256 | 8306ca5a281f18bf4b295dc158fb54821f5d0ae7086db75d2e8b38ca40f61149 |
Close
Hashes for jskiner-0.0.12-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9beda58e682eef680f7662283240b26351e1658dc765c225d7ead632ee57895c |
|
MD5 | 71766d1a0e54620801f21b59d1e3e292 |
|
BLAKE2b-256 | 7372bb7562e4e4a14cf20aad44a6805d59be8a6f06fa2a0d076dc224e15197d6 |
Close
Hashes for jskiner-0.0.12-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3135e726a1f5097b6cdca6f7493b25dac4e092ae691c3e4e2589fa1ddd259459 |
|
MD5 | 2f39af32928fe7be528e7a08671f632e |
|
BLAKE2b-256 | 904b87b6aa8edf2ad1b8f0181a1d3615dfb02fe6c912e1a25a7b811c2dba39b4 |
Close
Hashes for jskiner-0.0.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b047af35158a174eac8f6265f86a74d07cab0f86c6b2d2356aba4357b22d521d |
|
MD5 | fee0389328e057844b2e305eed7e107e |
|
BLAKE2b-256 | d011c07948624c2734b8e35e40dfd2d50a86dea1487be46d8e529f897a343d5f |
Close
Hashes for jskiner-0.0.12-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb7cd8130e26e86513d246469a55cd96f9cd947d900bbbf5fb20d353bfd0d606 |
|
MD5 | ec8dd3d42806fe885f66da63ee55a755 |
|
BLAKE2b-256 | f7172a3d77400f549e4ba702aecfa9633fee4176f362f85c5730052596ca8739 |
Close
Hashes for jskiner-0.0.12-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66675e7eca5ad99b603c4a97b6c15c23935ad72b0a319fe1b7d3ce231feb8918 |
|
MD5 | a5d03d63d57fd057660f003b2aa42787 |
|
BLAKE2b-256 | 588e7bafe72fdcc96e1daaec59a21b3f4cc4ce8f81077acd8f694972dbbef90d |
Close
Hashes for jskiner-0.0.12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7edc288a0aa27e064acd39f0976289b7d96699dce04e5a804f7149680f5c8215 |
|
MD5 | 579887adc693b341005b140a1b02e84c |
|
BLAKE2b-256 | 2d881f1ed53a6fd892f712864eebb1d086bf95d1e8de028fb88c2e3e10d9a0bd |
Close
Hashes for jskiner-0.0.12-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61555d0865051e4f775e4be1663c76ae1befb2946ddaf3d79ce52d7840477751 |
|
MD5 | 1fde801f0e952189be1e68ca4a042212 |
|
BLAKE2b-256 | 649aaebd6d60e6a2f9dca5b2b0034dce03e7ab3c4efd53d343bb78db61675d79 |