{ "info": { "author": "Fernando Cicconeto", "author_email": "fcicconeto@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3.6" ], "description": "# py-jobject\n\nA package to easily convert between Python objects and JSON-compatible dictionaries, with built-in type conversion.\n\n# Usage\n\n- Declare a class with type-annotated attributes:\n\n```python\nclass MyObject:\n\n foo: int\n bar: str\n```\n\n- Convert to a `dict` object:\n\n```python\nfrom py_jobject import to_dict\n\nobj = MyObject()\nobj.foo = 123\nobj.bar = 'abc'\n\nmy_dict = to_dict(obj)\n\nassert my_dict == {\n 'foo': 123,\n 'bar': 'abc'\n}\n```\n\n- Convert from a `dict` object:\n\n```python\nfrom py_jobject import from_dict\n\nmy_dict = {\n 'foo': 123,\n 'bar': 'abc'\n}\n\nobj = from_dict(obj, MyObject)\n\nassert obj.foo == 123\nassert obj.bar == 'abc'\n```\n\n# Features\n\n- Supports type conversion:\n\n```python\nfrom py_jobject import from_dict\n\nmy_dict = {\n 'foo': '123',\n}\n\nobj = from_dict(obj, MyObject)\n\nassert obj.foo == 123\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fcicc/py-jobject", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "py-jobject", "package_url": "https://pypi.org/project/py-jobject/", "platform": "", "project_url": "https://pypi.org/project/py-jobject/", "project_urls": { "Homepage": "https://github.com/fcicc/py-jobject" }, "release_url": "https://pypi.org/project/py-jobject/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A package to easily convert between Python objects and JSON-compatible dictionaries, with built-in type conversion.", "version": "0.1.0" }, "last_serial": 4910014, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8a78c10362afcc56c35d142081029489", "sha256": "dbef99fd2254d88664417f29dfd821925aa34297955fdede29dfccd30e531e39" }, "downloads": -1, "filename": "py_jobject-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8a78c10362afcc56c35d142081029489", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16706, "upload_time": "2019-03-07T12:39:45", "url": "https://files.pythonhosted.org/packages/d3/3e/f74c312b6c1e7ce1d89b4690b7629ea20e430936d256bfe23e5dee625ffe/py_jobject-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2740399f21d5026474f106807cebd2b1", "sha256": "8ac12546f56045c547189b55d5499a28ce29fafc2075b81e3241e835f2ddbf33" }, "downloads": -1, "filename": "py-jobject-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2740399f21d5026474f106807cebd2b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5639, "upload_time": "2019-03-07T12:39:47", "url": "https://files.pythonhosted.org/packages/f3/c6/dc7878544e2deb56caa3cdd49f877f31ebab87f024a4f7cdfa8615f2c23e/py-jobject-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8a78c10362afcc56c35d142081029489", "sha256": "dbef99fd2254d88664417f29dfd821925aa34297955fdede29dfccd30e531e39" }, "downloads": -1, "filename": "py_jobject-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8a78c10362afcc56c35d142081029489", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16706, "upload_time": "2019-03-07T12:39:45", "url": "https://files.pythonhosted.org/packages/d3/3e/f74c312b6c1e7ce1d89b4690b7629ea20e430936d256bfe23e5dee625ffe/py_jobject-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2740399f21d5026474f106807cebd2b1", "sha256": "8ac12546f56045c547189b55d5499a28ce29fafc2075b81e3241e835f2ddbf33" }, "downloads": -1, "filename": "py-jobject-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2740399f21d5026474f106807cebd2b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5639, "upload_time": "2019-03-07T12:39:47", "url": "https://files.pythonhosted.org/packages/f3/c6/dc7878544e2deb56caa3cdd49f877f31ebab87f024a4f7cdfa8615f2c23e/py-jobject-0.1.0.tar.gz" } ] }