{ "info": { "author": "Xin Wang", "author_email": "i@wangx.in", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Objective C", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Topic :: Text Processing" ], "description": "JSON2Mantle\n========================\n\nGenerate [Mantle](https://github.com/Mantle/Mantle) models using JSON files.\n\n##Quick start\n\n### Install\n\n```\n$ sudo pip install JSON2Mantle\n```\n\n### Usage\n\n```\n$ json2mantle [-h] [--prefix PREFIX] [--author AUTHOR]\n json_file output_dir\n```\n\n### Example\n\n```\n$ json2mantle api_model.json class --prefix XYZ --author \"John Smith\"\n```\n\nwill 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`.\n\n## Features\n\n* Supports nested JSON data, which means JSON2Mantle can generate the correct number of classes that the JSON file contains.\n* Convert field name like `var_name` to `varName` automatically.\n* Author name is grabbed from Address Book by default (Python 2 on OS X only).\n* Python 2/3 compatible.\n* Generated Objective-C files are documented.\n\n## Note\n\n* 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`.\n* Only supports generating Objective-C files.\n* If the input JSON file is an array, it will ask you to give a name for the array items.\n\n## TODO\n- [ ] reserved words\n- [ ] URL type\n- [ ] Unit test\n\n## License\nThe MIT License (MIT)", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sutar/JSON2Mantle", "keywords": "mantle parser objective-c", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "JSON2Mantle", "package_url": "https://pypi.org/project/JSON2Mantle/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/JSON2Mantle/", "project_urls": { "Homepage": "https://github.com/sutar/JSON2Mantle" }, "release_url": "https://pypi.org/project/JSON2Mantle/0.0.9/", "requires_dist": null, "requires_python": null, "summary": "Generate Mantle models using JSON files", "version": "0.0.9" }, "last_serial": 1551239, "releases": { "0.0.2": [], "0.0.3": [ { "comment_text": "", "digests": { "md5": "3f9d8a37753c26c2f9baffcbe636a1a3", "sha256": "a24a6462dcd3cf62db153454638195a635456cadb7f4ed6698f6cfad8463c5f1" }, "downloads": -1, "filename": "JSON2Mantle-0.0.3.tar.gz", "has_sig": false, "md5_digest": "3f9d8a37753c26c2f9baffcbe636a1a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6001, "upload_time": "2015-03-07T18:51:06", "url": "https://files.pythonhosted.org/packages/83/d2/2220a7554ed2957f55c17b0d3c40a30cd6a8f334455d58657cc1a16ae537/JSON2Mantle-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "18dc566069357d43b8e5148a596cac9a", "sha256": "7b5272004e8d970370fd96cf5a2b5dcca7354291540282f6b9bb50ab12f6e300" }, "downloads": -1, "filename": "JSON2Mantle-0.0.4.tar.gz", "has_sig": false, "md5_digest": "18dc566069357d43b8e5148a596cac9a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6177, "upload_time": "2015-03-10T13:02:33", "url": "https://files.pythonhosted.org/packages/8d/51/1abc0d1c5fad23224bc4a818bdb06f6afe0fa0f1d896fe15b824b8f521cf/JSON2Mantle-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "96a96e59736a8169b55fdd440cef81c3", "sha256": "1989d69e077458a3c6bda135a889e0f3f4a318d01e695a3372e0308caf147217" }, "downloads": -1, "filename": "JSON2Mantle-0.0.5.tar.gz", "has_sig": false, "md5_digest": "96a96e59736a8169b55fdd440cef81c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6094, "upload_time": "2015-03-10T23:00:43", "url": "https://files.pythonhosted.org/packages/7a/8c/77d28b522eb740b24d7c006ac6b786f47215f0d4b1ee412fe1bcbc97b555/JSON2Mantle-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "6ea3848fb1c4384bebbd1f88143184cb", "sha256": "06c194d7293f531ddf4b202ccc85a357fe749ccae8168c894cf8c2a9a966daf2" }, "downloads": -1, "filename": "JSON2Mantle-0.0.6.tar.gz", "has_sig": false, "md5_digest": "6ea3848fb1c4384bebbd1f88143184cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6114, "upload_time": "2015-03-10T23:52:33", "url": "https://files.pythonhosted.org/packages/01/27/b91d64dea95c79033c7d2caab9dcd8afd3262017f0cb9d632369566dd762/JSON2Mantle-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "8e3fd771f2dda5ae217bee06acdd4974", "sha256": "901b99365351d305555b118b1f0c1a131c992894958d163b0cc0b8b3061a35bf" }, "downloads": -1, "filename": "JSON2Mantle-0.0.7.tar.gz", "has_sig": false, "md5_digest": "8e3fd771f2dda5ae217bee06acdd4974", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7552, "upload_time": "2015-04-03T13:38:22", "url": "https://files.pythonhosted.org/packages/0c/f2/49820571a8569b5e9e1fed431c1fa029b41d636e981190dba06003ed51c6/JSON2Mantle-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "39a7f1458c7ea9582126b8af59c982fc", "sha256": "61abb03a3609c970ecb8ca0a5e8dcd8cebe45691e19e8bc46682431832606677" }, "downloads": -1, "filename": "JSON2Mantle-0.0.8.tar.gz", "has_sig": false, "md5_digest": "39a7f1458c7ea9582126b8af59c982fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7234, "upload_time": "2015-04-03T22:09:54", "url": "https://files.pythonhosted.org/packages/5b/fd/940d2c7818fe899a8d33521906ec00623f3bca875e4a6c6a6d30bd3b7418/JSON2Mantle-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "25fb3bdcf6398927855eeb61dd5a6e84", "sha256": "d46f37ed2b64a57b8cf01129591be0a9f7270d1ce19668d66cabf6b5c368351f" }, "downloads": -1, "filename": "JSON2Mantle-0.0.9.tar.gz", "has_sig": false, "md5_digest": "25fb3bdcf6398927855eeb61dd5a6e84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7284, "upload_time": "2015-05-18T06:56:36", "url": "https://files.pythonhosted.org/packages/53/19/97dcb1bf6cd29a1ae630b48390a308c40d110e35f1a8ee5663cf752b9754/JSON2Mantle-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "25fb3bdcf6398927855eeb61dd5a6e84", "sha256": "d46f37ed2b64a57b8cf01129591be0a9f7270d1ce19668d66cabf6b5c368351f" }, "downloads": -1, "filename": "JSON2Mantle-0.0.9.tar.gz", "has_sig": false, "md5_digest": "25fb3bdcf6398927855eeb61dd5a6e84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7284, "upload_time": "2015-05-18T06:56:36", "url": "https://files.pythonhosted.org/packages/53/19/97dcb1bf6cd29a1ae630b48390a308c40d110e35f1a8ee5663cf752b9754/JSON2Mantle-0.0.9.tar.gz" } ] }