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)
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
Close
Hashes for glue-struct-transform-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c3bdf03252a5bec473aed290237a51f9ea70950b83ce5def8774e28ab4c8a1 |
|
MD5 | 9382e392a24f41eed3142fd5c16c5043 |
|
BLAKE2b-256 | d2c5e708edcc3e742c4e5d3cfc0cd5fe5967cea35914299978829c897bb13b3f |
Close
Hashes for glue_struct_transform-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70f930b7c506621c0fb9ae9a4344c88dcc40db6b3570d9e7f8b615ff9f970d79 |
|
MD5 | 2ae3a01ebe321d42aa1d205549cad88e |
|
BLAKE2b-256 | 428b9e5bae543426ad698762e7a3848069ef050fbebfe255606c7f7209fa7a3c |