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
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8d75ddb3214b0162e7cb789d7c188c4361826cc2be9864feac94ef6faaa77d |
|
MD5 | 4b2fa86952b8b6ec0883929fd9cacbde |
|
BLAKE2b-256 | d145431c30f785c66b221d18dc31c85ac4c2c10161171814e29fc946f6551484 |
Hashes for glue_struct_transform-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab523dfb3ea34b9acd9379a902f40b40a5b56b8c75b2d6a61cfb2cec926fba40 |
|
MD5 | 52dac6c8804cb154f294df93d0807643 |
|
BLAKE2b-256 | 685e00956243aeef95cd8009d68e23e32a16f81060e7edfeb07db15bae9b2f7b |