This libs works to convert a json schema to a glue schema struct.
Project description
Jsonschema to Glue struct
A small library that works to read your provided jsonschema and convert it to a glue struct model, in this way you can integrate it in your pipeline or uses it just to get a output and insert manually in your glue table schema.
Installation
pip install glue-struct-transform
Get Started
How to convert a jsonchema to a glue struct schema using this lib
import json
from glue_struct_transform import GlueStructTransform
# Read or set your json schema
schema = open(f'YOUR_JSON_SCHEMA.json',)
schemaLoad = json.load(schema)
# Pass your json schema in dict type to the function
result = GlueStructTransform.json_schema_to_glue_struct(schemaLoad)
Conversions implementation status
|Json Schema Type |Glue Schema type | Implementation status |Version
|-------------------------|---------------------|---------------|----------
|string |string |implemented
|0.1.0
|number |double |implemented
|0.1.0
|integer |int |implemented
|0.1.0
|object |struct |implemented
|0.1.0
|array |array |implemented
|0.1.0
|boolean |boolean |implemented
|0.1.0
|null |Raises exception |implemented
|0.1.2
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
Built Distribution
Hashes for glue-struct-transform-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d1d7a3219d54569e76f150391c6a8d51eb75c30feedc912326976128fe7cc06 |
|
MD5 | e071660fcd9fab80c7d88553e228d436 |
|
BLAKE2b-256 | 37db2552b38ad3dc52418004472f02bc5e7e9df359b861f136fbfeb3eea230c6 |
Hashes for glue_struct_transform-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95066c1b9a794d67b51751099efbfa90e7c19fc4746c045ddb7d400e43722f1f |
|
MD5 | 5eae965625898407d75966816b807a46 |
|
BLAKE2b-256 | 746d29c068f6815434637398f732d81e0328e1349c6b5ecbd91d4e660c4965b2 |