{ "info": { "author": "Takumi Sueda", "author_email": "puhitaku@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: JavaScript", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "TypedMarshal\n============\n\nStrongly typed (un)marshaller between Python object and JSON inspired by Golang's \"encode/json\" library.\n\n\nShort example\n-------------\n\nHere is a pitch for TypedMarshal.\n\nLet there be a JSON model definition: ::\n\n from typedmarshal import MarshalModel\n\n class SampleModel(MarshalModel):\n name: str = None\n age: int = None\n hobbies: List[str] = []\n\nThen unmarshal JSON: ::\n\n js_str = '''\n {\n \"name\": \"Hatsune Miku\",\n \"age\": 16,\n \"hobbies\": [\"Sing a song\", \"Dance to music\", \"Eat negi\"]\n }\n '''\n\n js_obj = SampleModel()\n js_obj.load_json(js_str)\n\nNow defined attributes are available to use: ::\n\n >>> js_obj.name\n 'Hatsune Miku'\n\n >>> js_obj.hobbies\n ['Sing a song', 'Dance to music', 'Eat negi']\n\nVoila!\n\n\nDevelopment progress\n--------------------\n\nIt's still in alpha and unstable. Everything may change in future.\n\n\nContributing\n------------\n\nTBD\n\n\nLicense\n-------\n\nThis library is released under BSD License.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/puhitaku/typedmarshal", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "typedmarshal", "package_url": "https://pypi.org/project/typedmarshal/", "platform": "", "project_url": "https://pypi.org/project/typedmarshal/", "project_urls": { "Homepage": "https://github.com/puhitaku/typedmarshal" }, "release_url": "https://pypi.org/project/typedmarshal/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Strongly typed JSON (un)marshal library", "version": "0.0.1" }, "last_serial": 3924619, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "cbee79c2c0fa5c946aca5a7bda24a16f", "sha256": "9b53322bf045caf1a5d2c5487ff370dacc7e04183b8332075afad49f97a461ff" }, "downloads": -1, "filename": "typedmarshal-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cbee79c2c0fa5c946aca5a7bda24a16f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4708, "upload_time": "2018-06-03T02:28:58", "url": "https://files.pythonhosted.org/packages/ed/a8/5e5ef313aad21bdea736a39faaee1fe52b65a1865947bfbfbf8afbb003ef/typedmarshal-0.0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cbee79c2c0fa5c946aca5a7bda24a16f", "sha256": "9b53322bf045caf1a5d2c5487ff370dacc7e04183b8332075afad49f97a461ff" }, "downloads": -1, "filename": "typedmarshal-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cbee79c2c0fa5c946aca5a7bda24a16f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4708, "upload_time": "2018-06-03T02:28:58", "url": "https://files.pythonhosted.org/packages/ed/a8/5e5ef313aad21bdea736a39faaee1fe52b65a1865947bfbfbf8afbb003ef/typedmarshal-0.0.1-py3-none-any.whl" } ] }