Skip to main content

Generate Mantle models using JSON files

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SRJSON2Mantle-1.1.3.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file SRJSON2Mantle-1.1.3.tar.gz.

File metadata

  • Download URL: SRJSON2Mantle-1.1.3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for SRJSON2Mantle-1.1.3.tar.gz
Algorithm Hash digest
SHA256 26da164961575d0dcf03c67c4dc0b4fb36b557eb02fd98afcbd5c9269c50ec4d
MD5 df72619ff76bc34a35b1811514026cc0
BLAKE2b-256 4b8739cce309f629bb13a090679341ab6d8937d46900701eca237e916e678d17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page