Skip to main content

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


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 details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

jst-1.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (744.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

jst-1.10.0-cp39-none-win_amd64.whl (659.8 kB view details)

Uploaded CPython 3.9Windows x86-64

jst-1.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (744.6 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

jst-1.10.0-cp39-cp39-macosx_10_7_x86_64.whl (677.5 kB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

jst-1.10.0-cp38-none-win_amd64.whl (659.8 kB view details)

Uploaded CPython 3.8Windows x86-64

jst-1.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (744.6 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

jst-1.10.0-cp38-cp38-macosx_10_7_x86_64.whl (677.5 kB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

jst-1.10.0-cp37-none-win_amd64.whl (659.8 kB view details)

Uploaded CPython 3.7Windows x86-64

jst-1.10.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (744.5 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

jst-1.10.0-cp37-cp37m-macosx_10_7_x86_64.whl (677.6 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

jst-1.10.0-cp36-none-win_amd64.whl (659.7 kB view details)

Uploaded CPython 3.6Windows x86-64

jst-1.10.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (744.2 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

jst-1.10.0-cp36-cp36m-macosx_10_7_x86_64.whl (677.1 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

File details

Details for the file jst-1.10.0.tar.gz.

File metadata

  • Download URL: jst-1.10.0.tar.gz
  • Upload date:
  • Size: 64.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for jst-1.10.0.tar.gz
Algorithm Hash digest
SHA256 2b7078c2fe6b67ef75f699ce5a2c4d52894de70946fef0273495fd10afe617b7
MD5 340df039afea3e6ce36788b28af1b131
BLAKE2b-256 76800f5d3589544c6d29a020b05b795c476d2c8522ee3929d6cd8ef63b49b847

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: jst-1.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 744.6 kB
  • Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

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

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp39-none-win_amd64.whl.

File metadata

  • Download URL: jst-1.10.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 659.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for jst-1.10.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 7c76062f497dccb7a172af7898e99325b10bfc3bb6fd8033b518398db1cbf8f6
MD5 807b32681c3bb0bae15d63883d8e6be3
BLAKE2b-256 346979a52dc0e384e7ff41a093af72dc6119f9213b325d84047ec941198be457

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: jst-1.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 744.6 kB
  • Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

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

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: jst-1.10.0-cp39-cp39-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 677.5 kB
  • Tags: CPython 3.9, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for jst-1.10.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 15fe344e0a952f01ea3049d7c61de7e2030554b4e64d19daa5c833eb4ab69740
MD5 51ebc0887ab80b9c39c467b76cdbeb46
BLAKE2b-256 6e577fc2ed7443addc7f6727fb5528762a2cbfbb3b3100480ded3b83566c6363

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp38-none-win_amd64.whl.

File metadata

  • Download URL: jst-1.10.0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 659.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for jst-1.10.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 917a67546a0923bd3793fb02c271cccfa3e67c84a6187718ae656f7c7c27ca34
MD5 82c2b4e3c6ef714974a2bb302a729858
BLAKE2b-256 448531dece9aee74076a180b043cf8c6628754a9f917da5d90c8a16c03997d0c

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: jst-1.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 744.6 kB
  • Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

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

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: jst-1.10.0-cp38-cp38-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 677.5 kB
  • Tags: CPython 3.8, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for jst-1.10.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 37fc9912f73b6ada79cec5ddf20fd367cc5d89e8d4f9e3a7a514437ae198a34d
MD5 678c370d7a4f3fda7bd1d7511f837aa4
BLAKE2b-256 399191a4268122b6010bcb4dacedfaef61eb7eb6df01e4f743cab8ff3283a0cb

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp37-none-win_amd64.whl.

File metadata

  • Download URL: jst-1.10.0-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 659.8 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for jst-1.10.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 59523c6469138beae4e510f81d470ac644f76386b9427e3e1a677abaf5ffacb6
MD5 9b9fb0c3b03f26a33d11e51e9fd12180
BLAKE2b-256 d3cd2269d9965d85a9755c12d6f9c86b88e990bab92ace6f6e26856a232ae2d3

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: jst-1.10.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 744.5 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

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

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: jst-1.10.0-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 677.6 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for jst-1.10.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a0a303293cfea5b69f646afc3584786d839e698fb395d49fb7c500902f5fce24
MD5 e7d550deead0175faa8ed71a1ccfd29e
BLAKE2b-256 a4da82728fca82325b36e3da86704de92623712e03192b4268e1cb0b12474893

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp36-none-win_amd64.whl.

File metadata

  • Download URL: jst-1.10.0-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 659.7 kB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

File hashes

Hashes for jst-1.10.0-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 c9d60451476daeacea625d10fbfee79bd0b9b2669be4d08866b48a30ea4c37d7
MD5 3c9e5f43970d6023f171d3a0c11ffb7a
BLAKE2b-256 bb5cab8c4d7b88d3aa2f46864d12bba50b3a1dc734d62c8c419fef5f57c5209c

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: jst-1.10.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 744.2 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15

File hashes

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

See more details on using hashes here.

File details

Details for the file jst-1.10.0-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: jst-1.10.0-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 677.1 kB
  • Tags: CPython 3.6m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15

File hashes

Hashes for jst-1.10.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 0ffceba7607a9dbc3e91a8075844d47c4500bdfc49962af3391c869660a0d2b7
MD5 aff865b1b95a944a76d42340d38de403
BLAKE2b-256 da3c7845bb831058343c19fd6c81dfbc40320158352ffad197041982db3551a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page