{ "info": { "author": "Johan Nestaas", "author_email": "johannestaas@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Environment :: MacOS X", "Environment :: Win32 (MS Windows)", "Environment :: X11 Applications :: Qt", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Other", "Programming Language :: Python" ], "description": "json2rust\n=========\n\nTurns a JSON document into a struct for rust-lang\n\nInstallation\n------------\n\nFrom the project root directory::\n\n $ python setup.py install\n\nOr::\n \n $ pip install json2rust\n\nUsage\n-----\n\nSimply run it with the name of the root struct and the path to your JSON::\n\n $ json2rust MyStruct data.json\n\nUse --help/-h to view info on the arguments::\n\n $ json2rust --help\n\nExample\n-------\n\nTake your JSON doc::\n\n\t$ cat testdata/example.json \n\t{\n\t\t\"name\": \"Me\",\n\t\t\"age\": 33,\n\t\t\"children\": [\n\t\t\t{\n\t\t\t\t\"name\": \"joe\",\n\t\t\t\t\"age\": 0.5,\n\t\t\t\t\"exists\": false\n\t\t\t}\n\t\t],\n\t\t\"job\": {\n\t\t\t\"employer\": \"foo\",\n\t\t\t\"salary\": 5000000,\n\t\t\t\"coworker\": null\n\t\t}\n\t}\n\nRun json2rust::\n\n\t$ json2rust ExampleStruct testdata/example.json \n\tpub struct ExampleStruct {\n\t\tpub job: Job,\n\t\tpub age: i32,\n\t\tpub name: String,\n\t\tpub children: Vec,\n\t}\n\tpub struct Job {\n\t\tpub salary: i32,\n\t\tpub coworker: Option,\n\t\tpub employer: String,\n\t}\n\tpub struct Children {\n\t\tpub age: f32,\n\t\tpub name: String,\n\t\tpub exists: bool,\n\t}\n\nRelease Notes\n-------------\n\n:0.1.0:\n Project works\n:0.0.1:\n Project created", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.bitbucket.org/johannestaas/json2rust", "keywords": "", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "json2rust", "package_url": "https://pypi.org/project/json2rust/", "platform": "", "project_url": "https://pypi.org/project/json2rust/", "project_urls": { "Homepage": "https://www.bitbucket.org/johannestaas/json2rust" }, "release_url": "https://pypi.org/project/json2rust/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "Turns a JSON document into a struct for rust-lang", "version": "0.1.2" }, "last_serial": 4088026, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e593e35daf7995af25e2f27b1e21f9aa", "sha256": "c57ad401b4596d5d8b85ec8251149e7f3d04dda23795259a5d8d313ea7481c61" }, "downloads": -1, "filename": "json2rust-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e593e35daf7995af25e2f27b1e21f9aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3266, "upload_time": "2016-03-29T05:39:38", "url": "https://files.pythonhosted.org/packages/01/87/52448502ab8ea7fdf78ccd28ae385cd8bc9cad6573d6c682149a624596e1/json2rust-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b662d2b0b3e30221c964bdb6c5e19d9c", "sha256": "8000c691f1fae1451a18941a1ce8d97d739d087cf651f7f76cd82e90ad343945" }, "downloads": -1, "filename": "json2rust-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b662d2b0b3e30221c964bdb6c5e19d9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4954, "upload_time": "2016-03-29T07:09:23", "url": "https://files.pythonhosted.org/packages/c0/2f/daa329e798f6a7ab6fce2ece26a67946ff6b46a5c48bc37498c6f4499f83/json2rust-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a75f31df70fe46608ab54d5e05009ce1", "sha256": "4ac607f64cb5200ca5cadb6e833fb60e30f2bbe59a709187e035fa7383ad7ce5" }, "downloads": -1, "filename": "json2rust-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a75f31df70fe46608ab54d5e05009ce1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4928, "upload_time": "2018-07-21T08:03:33", "url": "https://files.pythonhosted.org/packages/84/0c/36fc0c8f7bd0e2bf40a503aa7d44c8fb1e2b6dafa75e0fdb862a79de94dd/json2rust-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a75f31df70fe46608ab54d5e05009ce1", "sha256": "4ac607f64cb5200ca5cadb6e833fb60e30f2bbe59a709187e035fa7383ad7ce5" }, "downloads": -1, "filename": "json2rust-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a75f31df70fe46608ab54d5e05009ce1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4928, "upload_time": "2018-07-21T08:03:33", "url": "https://files.pythonhosted.org/packages/84/0c/36fc0c8f7bd0e2bf40a503aa7d44c8fb1e2b6dafa75e0fdb862a79de94dd/json2rust-0.1.2.tar.gz" } ] }