Metadata-Version: 2.1
Name: glue-struct-transform
Version: 0.2.0
Summary: This libs works to convert a json schema to a glue schema struct.
Home-page: UNKNOWN
Author: Vitor Guirardeli Arakaki
Author-email: vi.arakaki@hotmail.com
License: MIT
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

##  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.


[![PyPI](https://img.shields.io/pypi/v/glue-struct-transform)](https://pypi.org/project/glue-struct-transform/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/glue-struct-transform)](https://pypi.org/project/glue-struct-transform/)
[![PyPI License](https://img.shields.io/pypi/l/glue-struct-transform)](https://pypi.org/project/glue-struct-transform/)

###  Installation
```
pip install glue-struct-transform
```

### Get Started
How to convert a jsonchema to a glue struct schema using this lib
```Python
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`

