【文件属性】:
文件名称:JSON2Mantle:通过 JSON 文件生成 Mantle 模型
文件大小:12KB
文件格式:ZIP
更新时间:2021-06-05 12:53:09
Python
JSON2地幔
使用 JSON 文件生成模型。
##快速开始
安装
$ sudo pip install JSON2Mantle
用法
$ json2mantle [-h] [--prefix PREFIX] [--author AUTHOR]
json_file output_dir
例子
$ json2mantle api_model.json class --prefix XYZ --author "John Smith"
将根据您的api_model.json结构生成 Mantle 模型。 输出文件将在output_dir目录下创建,作者姓名将为John Smith ,Objective-C 类具有前缀XYZ 。
特征
支持嵌套的 JSON 数据,这意味着 JSON2Mantle 可以生成 JSON 文件包含的正确数量的类。
自动将v
【文件预览】:
JSON2Mantle-master
----MANIFEST.in(65B)
----JSON2Mantle()
--------objc_template.py(2KB)
--------utils.py(2KB)
--------cli.py(9KB)
--------templates()
--------__init__.py(2B)
--------renderer.py(1KB)
----tests()
--------top10.json(12KB)
--------__init__.py(69B)
----LICENSE(1KB)
----setup.py(1KB)
----.gitignore(681B)
----README.md(1KB)