Metadata-Version: 2.1
Name: jdtt
Version: 1.2.2
Summary: JSON to programming language schema converter
Author: Joey Shi
Platform: unix
Platform: linux
Platform: osx
Platform: cygwin
Platform: win32
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# json-data-type-transcompiler

![pytest.yml](https://github.com/joeyshi12/json-data-type-transcompiler/actions/workflows/pytest.yml/badge.svg)

CLI tool for transpiling JSON into a programming language data model.

A web interface for using this library is provided at <a href="https://devtools.joeyshi.xyz/jdtt">devtools.joeyshi.xyz/jdtt</a>

## Installation

```
pip3 install jdtt
```

## Usage

```
usage: jdtt [-h] [-l {python,typescript,java,scala}] [-n SCHEMA_NAME] [-s] [-d DATE_FORMAT] [json_file]

positional arguments:
  json_file                            JSON filepath

options:
  -h                                   show this help message and exit
  -l {python,typescript,java,scala}    target language for transpilation
  -n SCHEMA_NAME                       name of the schema
  -s                                   sanitize symbol names in schema
  -d DATE_FORMAT                       regex for detecting date fields
```
