semvec/pypi-packages huggingface dataset:
SRJSON2Mantle 1.1.3
Generate Mantle models using JSON files
License: MIT
Keywords: mantle parser objective-c

# SRJSON2Mantle

![](https://img.shields.io/badge/build-passing-brightgreen.svg)
![](https://img.shields.io/pypi/status/SRJSON2Mantle.svg)
![](https://img.shields.io/pypi/pyversions/SRJSON2Mantle.svg)
![](https://img.shields.io/badge/license-MIT-green.svg)
![PyPI](https://img.shields.io/pypi/v/SRJSON2Mantle.svg)
![](https://img.shields.io/badge/language-python-orange.svg)

A macOS command line tool that generates Mantle data models based on JSON data.

Feel free to modify the code it creates for you.

## Features

- Supports nested JSON data, which means JSON2Mantle can generate the correct number of classes that the JSON file contains.
- Convert field name like var_name to varName automatically.

## How to install it
```
$ sudo pip install SRJSON2Mantle
```

## How to use it
```
$ srjson2mantle [-h] [--prefix PREFIX] json_file output_dir
```

## Example
```
$ srjson2mantle model.json class --prefix ABC
```

will generate Mantle models according to your api_model.json structure. The output files will be created under output_dir directory and the Objective-C classes have the prefix ABC.