Metadata-Version: 1.1
Name: JSON2Mantle
Version: 0.0.4
Summary: Generate Mantle models using JSON files
Home-page: https://github.com/sutar/JSON2Mantle
Author: Xin Wang
Author-email: i@wangx.in
License: MIT
Description: JSON2Mantle
        ========================
        
        Generate [Mantle](https://github.com/Mantle/Mantle) models using JSON files.
        
        ##Quick start
        
        ### Install
        
        ```
        $ sudo pip install JSON2Mantle
        ```
        
        ### Usage
        
        ```
        $ json2mantle [-h] [--prefix PREFIX] [--author AUTHOR]
                           json_file output_dir
        ```
        
        ### Example
        
        ```
        $ json2mantle api_model.json class --prefix XYZ --author "John Smith"
        ```
        
        will generate Mantle models according to your `api_model.json` structure. The output files will be created under `output_dir` directory, the author name will be `John Smith`, and the Objective-C classes have the prefix `XYZ`.
        
        ## 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.
        * Python 2/3 compatible.
        
        ## Note
        
        * When reserved words in Objective-C appear, it will replace the original name with a prefix `model`. For instance, if you have a field with the name `id`, the generated one would be `modelId`.
        * Only supports generating Objective-C files.
        * If the input JSON file is an array, it will ask you to give a name for the array items.
        
        ## TODO
        - [ ] reserved words
        - [ ] URL type
        
        ## License
        The MIT License (MIT)
        
Keywords: mantle parser objective-c
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Objective C
Classifier: Topic :: Text Processing
