A tool to transpile JSON Schema into schemas for data processing
Project description
jsonschema-transpiler
A tool for transpiling JSON Schema into schemas for Avro and BigQuery.
Installation
pip install jst
Usage
import json
import jst
json_schema = {
"items": {
"properties": {
"field_1": {"type": "string"},
"field_2": {"type": "integer"},
},
"type": "object",
},
"type": "array",
}
bq_schema = json.loads(jst.convert_bq(json.dumps(json_schema)))
assert bq_schema == [
{
"fields": [
{"mode": "NULLABLE", "name": "field_1", "type": "STRING"},
{"mode": "NULLABLE", "name": "field_2", "type": "INT64"},
],
"mode": "REPEATED",
"name": "root",
"type": "RECORD",
}
]
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
jst-1.10.0.tar.gz
(64.0 kB
view hashes)
Built Distributions
jst-1.10.0-cp39-none-win_amd64.whl
(659.8 kB
view hashes)
jst-1.10.0-cp38-none-win_amd64.whl
(659.8 kB
view hashes)
jst-1.10.0-cp37-none-win_amd64.whl
(659.8 kB
view hashes)
jst-1.10.0-cp36-none-win_amd64.whl
(659.7 kB
view hashes)
Close
Hashes for jst-1.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16cf115b642c5c0261a509b4433a932e74a0022fe7dbf88427b73d3154b07a3b |
|
MD5 | 26fabec211f899058dc8e8e64922f305 |
|
BLAKE2b-256 | da3952d62ab3400839610ee8bcb126cece63a1963686fdac15e9c72a7c26a9cd |
Close
Hashes for jst-1.10.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c76062f497dccb7a172af7898e99325b10bfc3bb6fd8033b518398db1cbf8f6 |
|
MD5 | 807b32681c3bb0bae15d63883d8e6be3 |
|
BLAKE2b-256 | 346979a52dc0e384e7ff41a093af72dc6119f9213b325d84047ec941198be457 |
Close
Hashes for jst-1.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a573150e02e1548e5114a36b52c94e768710a2145177c8b8feb8e01d8a34202 |
|
MD5 | e21f72a5614ea2101be3ebd635c159dc |
|
BLAKE2b-256 | 1608bd5ba9f90a0e5b75d9fa013089422d456eb08105c35e6b74382c6f298662 |
Close
Hashes for jst-1.10.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15fe344e0a952f01ea3049d7c61de7e2030554b4e64d19daa5c833eb4ab69740 |
|
MD5 | 51ebc0887ab80b9c39c467b76cdbeb46 |
|
BLAKE2b-256 | 6e577fc2ed7443addc7f6727fb5528762a2cbfbb3b3100480ded3b83566c6363 |
Close
Hashes for jst-1.10.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 917a67546a0923bd3793fb02c271cccfa3e67c84a6187718ae656f7c7c27ca34 |
|
MD5 | 82c2b4e3c6ef714974a2bb302a729858 |
|
BLAKE2b-256 | 448531dece9aee74076a180b043cf8c6628754a9f917da5d90c8a16c03997d0c |
Close
Hashes for jst-1.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd2d15959a8cb47929c02670a78dfdf78a1a33c51ba23beb4be9590cb09714dc |
|
MD5 | 955300c47e4d3dfaf3f5d15e388e9545 |
|
BLAKE2b-256 | 6615918603232a8a607483cd8b0e7993e4a5bf6dcdbbd9da42afa5f7185371b2 |
Close
Hashes for jst-1.10.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37fc9912f73b6ada79cec5ddf20fd367cc5d89e8d4f9e3a7a514437ae198a34d |
|
MD5 | 678c370d7a4f3fda7bd1d7511f837aa4 |
|
BLAKE2b-256 | 399191a4268122b6010bcb4dacedfaef61eb7eb6df01e4f743cab8ff3283a0cb |
Close
Hashes for jst-1.10.0-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59523c6469138beae4e510f81d470ac644f76386b9427e3e1a677abaf5ffacb6 |
|
MD5 | 9b9fb0c3b03f26a33d11e51e9fd12180 |
|
BLAKE2b-256 | d3cd2269d9965d85a9755c12d6f9c86b88e990bab92ace6f6e26856a232ae2d3 |
Close
Hashes for jst-1.10.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afec0d36779583f277b72b568bf774cdfaf79283b47545e4e5b0b2c1908ccbfd |
|
MD5 | 837d7dacb5cb5f5737ad6b0a6c2a0469 |
|
BLAKE2b-256 | 0f3b306a7df48ef1e78c169fe71f88369265d5da27dabf62cbc5b0104caeb1a0 |
Close
Hashes for jst-1.10.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a303293cfea5b69f646afc3584786d839e698fb395d49fb7c500902f5fce24 |
|
MD5 | e7d550deead0175faa8ed71a1ccfd29e |
|
BLAKE2b-256 | a4da82728fca82325b36e3da86704de92623712e03192b4268e1cb0b12474893 |
Close
Hashes for jst-1.10.0-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d60451476daeacea625d10fbfee79bd0b9b2669be4d08866b48a30ea4c37d7 |
|
MD5 | 3c9e5f43970d6023f171d3a0c11ffb7a |
|
BLAKE2b-256 | bb5cab8c4d7b88d3aa2f46864d12bba50b3a1dc734d62c8c419fef5f57c5209c |
Close
Hashes for jst-1.10.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de379f2c06554081ebcc3f84c2ccfbce193a8f6fda33f0537e67d01abe92a7ae |
|
MD5 | a186d42d72f0869617067b087998dc91 |
|
BLAKE2b-256 | 7ae4acadd178848c624ba0ee27a5daa352b882f8d51586edbe61cc3cc4cb4012 |
Close
Hashes for jst-1.10.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ffceba7607a9dbc3e91a8075844d47c4500bdfc49962af3391c869660a0d2b7 |
|
MD5 | aff865b1b95a944a76d42340d38de403 |
|
BLAKE2b-256 | da3c7845bb831058343c19fd6c81dfbc40320158352ffad197041982db3551a9 |