{ "info": { "author": "Wijnand Modderman-Lenstra", "author_email": "maze@pyth0n.org", "bugtrack_url": null, "classifiers": [], "description": "===========\n jsonproxy\n===========\n\nGateway interface between non-standard types and JSON_ serialization.\n\n\n\nRequirements\n============\n\nRequirements:\n\n * python 2.6+\n\n\nUsage\n=====\n\nYou can add custom types to the JSON serializer proxy by adding them to the\ndefault ``ENCODER`` or ``DECODER`` instances::\n\n >>> from jsonproxy import ENCODER, DECODER, dumps, loads\n >>> class Point(object):\n ... def __init__(self, x, y):\n ... self.x = x\n ... self.y = y\n ... def __repr__(self):\n ... return '' % (self.x, self.y)\n ...\n >>> ENCODER.register('point',\n ... lambda obj: isinstance(obj, Point),\n ... lambda obj: [obj.x, obj.y])\n ...\n >>> DECODER.register('point',\n ... lambda obj: Point(obj[0], obj[1]))\n ...\n >>> test = dumps(Point(23, 42))\n >>> print test\n {\"__proxy__\": \"point\", \"value\": [23, 42]}\n >>> print repr(loads(test))\n \n\n\n\nSupported Types\n===============\n\nThe following non-standard types are supported:\n\n * complex (numbers)\n\n * Ellipsis\n\n * set\n\n * datetime.date objects\n\n * datetime.datetime objects\n\n\nCredits\n=======\n\nThe ``iso8601.py`` module is written by `micktwomey `_.\n\n\nBugs\n====\n\nUse the issue-tracker at https://github.com/tehmaze/jsonproxy/issues\n\n\nLicense\n=======\n\nCopyright (c) 2011 `Wijnand Modderman-Lenstra `_\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n.. _JSON: http://json.org/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tehmaze/jsonproxy", "keywords": "JSON proxy", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "jsonproxy", "package_url": "https://pypi.org/project/jsonproxy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jsonproxy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/tehmaze/jsonproxy" }, "release_url": "https://pypi.org/project/jsonproxy/0.1/", "requires_dist": null, "requires_python": null, "summary": "Gateway interface between non-standard types and JSON serialization.", "version": "0.1" }, "last_serial": 738876, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7a4070aa6a9a07ce85f0eb2f7d549647", "sha256": "b55e8305919448191c9b4050de70556ba63f51186bd7f61cfeaf6c0f0f35f858" }, "downloads": -1, "filename": "jsonproxy-0.1.tar.gz", "has_sig": false, "md5_digest": "7a4070aa6a9a07ce85f0eb2f7d549647", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4054, "upload_time": "2011-02-03T01:11:49", "url": "https://files.pythonhosted.org/packages/83/db/43f7c849070af8256ba89ccc3801dc70bd76c38382ea6e138c6110fc40aa/jsonproxy-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7a4070aa6a9a07ce85f0eb2f7d549647", "sha256": "b55e8305919448191c9b4050de70556ba63f51186bd7f61cfeaf6c0f0f35f858" }, "downloads": -1, "filename": "jsonproxy-0.1.tar.gz", "has_sig": false, "md5_digest": "7a4070aa6a9a07ce85f0eb2f7d549647", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4054, "upload_time": "2011-02-03T01:11:49", "url": "https://files.pythonhosted.org/packages/83/db/43f7c849070af8256ba89ccc3801dc70bd76c38382ea6e138c6110fc40aa/jsonproxy-0.1.tar.gz" } ] }