{ "info": { "author": "Curtis Thompson", "author_email": "curtis.thompson@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Object Brokering", "Topic :: Utilities" ], "description": "restler\n=======\n\nRestler is an object Serialization library for the web. It supports\ntranslating objects to JSON or XML. Currently, it is targeted at\nGoogle App Engine with python 2.7.\n\nInstallation\n------------\n\nInstall Restler from PyPi using easy_install or pip; or download the\npackage and run::\n\n python setup.py install\n\n(Running ``setup.py`` requires setuptools.)\n\nFor use on Google App Engine, you will need to install the code in the\n``restler`` directory somewhere in your path.\n\nRunning Tests\n-------------\n\nTo run restler's tests::\n\n pip install -r requirements.txt -t lib\n python -m unittest discover\n\nRunning tests requires python 2.7 the Google App Engine SDK or Google Cloud SDK\n\nUsage\n-----\n\nA db.Model or ndb.Model instance can be serialized with the default settings using ``to_json`` or ``to_xml``.\n\n>>> jean = Person(first_name=\"Jeanne\", last_name=\"d'Arc\", ssn=\"N/A\")\n>>> to_json(jean)\n'{\"first_name\": \"Jeanne\", \"last_name\": \"d\\'Arc\", \"ssn\": \"N/A\"}'\n\nTo include only certain fields, use a ``ModelStrategy``.\nWhen using a ``ModelStrategy``, you will need to use a restler model decorator.\n\n>>> @ae_db_serializer\n>>> class User(db.Model)\n>>> ...\n\nNow setup the ``ModelStrategy``\n\n>>> person_strategy = ModelStrategy(Person).include(\"first_name\", \"last_name\")\n>>> to_json(jean, person_strategy)\n'{\"first_name\": \"Jeanne\", \"last_name\": \"d'Arc\"}'\n\nOr, to exclude specified fields:\n\n>>> person_strategy = ModelStrategy(Person, include_all_fields=True).exclude(\"ssn\")\n>>> to_json(jean, person_strategy)\n'{\"first_name\": \"Jeanne\", \"last_name\": \"d'Arc\"}'\n\nFor more details on customizing serialization, see the documentation.\n\n\nTODO\n----\n\nhttps://bitbucket.org/curtis/restler/issues?status=new&status=open", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/curtis/restler", "keywords": "serialization json xml", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "restler-serialization", "package_url": "https://pypi.org/project/restler-serialization/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/restler-serialization/", "project_urls": { "Homepage": "https://bitbucket.org/curtis/restler" }, "release_url": "https://pypi.org/project/restler-serialization/0.4.1/", "requires_dist": null, "requires_python": "", "summary": "Restler provides flexible and configurable JSON and XML object serialization for the web", "version": "0.4.1" }, "last_serial": 2088595, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8aead58b73c6817775bf9814c06ed9c4", "sha256": "e0eb428dcec7479c4981f38d318166e64c4fe6f78e6f2d470c9a0d6dc5cf6085" }, "downloads": -1, "filename": "restler_serialization-0.1-py2.5.egg", "has_sig": false, "md5_digest": "8aead58b73c6817775bf9814c06ed9c4", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 22255, "upload_time": "2011-09-21T01:07:54", "url": "https://files.pythonhosted.org/packages/a5/b4/d267f0a1c7ba295a8a85295214410443ed6f9f6ef428fe143af11fc50905/restler_serialization-0.1-py2.5.egg" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "2a98038fb37a1b6cfa9f41746ec5144b", "sha256": "d51977b556844965383729195b196ecdf36dbb0b4b3e9acb5e154be5254bdce7" }, "downloads": -1, "filename": "restler_serialization-0.2-py2.5.egg", "has_sig": false, "md5_digest": "2a98038fb37a1b6cfa9f41746ec5144b", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 22252, "upload_time": "2011-09-21T01:14:30", "url": "https://files.pythonhosted.org/packages/90/d5/81a2d0b730a2fd1af197b99771043f6705d200e610d09c3d30f643c58656/restler_serialization-0.2-py2.5.egg" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "0f61b1ce16dd4b6063f16b9a979bff93", "sha256": "4228cb3e194b3df1fdb0380bbd1d3e289faec75dfa60d29e37926b27f16ab945" }, "downloads": -1, "filename": "restler_serialization-0.3-py2.7.egg", "has_sig": false, "md5_digest": "0f61b1ce16dd4b6063f16b9a979bff93", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 24580, "upload_time": "2012-09-09T15:52:58", "url": "https://files.pythonhosted.org/packages/a8/d8/c4b68092f1dcbc328ae82c6e9c1f261dfc6d5593c2b353ac3e06e0b5be8c/restler_serialization-0.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "6c5f91dee8876bb649425b972717095a", "sha256": "74b47ecf46df7ba7646a46e9335d861557b3c15e23caae821364152e04cc62d9" }, "downloads": -1, "filename": "restler-serialization-0.3.tar.gz", "has_sig": false, "md5_digest": "6c5f91dee8876bb649425b972717095a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11630, "upload_time": "2012-09-09T15:35:17", "url": "https://files.pythonhosted.org/packages/0b/45/183637e0aa580329459e2694a87c87f3f01e26087eb214edb4a433c8e04e/restler-serialization-0.3.tar.gz" } ], "0.4": [], "0.4.1": [ { "comment_text": "", "digests": { "md5": "c217396773e945078b03c897e4a15c78", "sha256": "2e12ec30850988fedbcdf62735b249c15048c6274fc06e59ab7c7855f903017b" }, "downloads": -1, "filename": "restler_serialization-0.4.1-py2.7.egg", "has_sig": false, "md5_digest": "c217396773e945078b03c897e4a15c78", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 30864, "upload_time": "2016-04-28T11:54:29", "url": "https://files.pythonhosted.org/packages/4b/f5/dfd0361a61907633934916e4e1f62ae2524f225bc49e1f5c33ee53674bc2/restler_serialization-0.4.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "4ce100f8a2659b6b8027559f14d51abb", "sha256": "1027198dd3f25596d058995e807cb2fc34182664b9b81ecfee545493f1ee93ce" }, "downloads": -1, "filename": "restler-serialization-0.4.1.tar.gz", "has_sig": false, "md5_digest": "4ce100f8a2659b6b8027559f14d51abb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13702, "upload_time": "2016-04-28T11:54:11", "url": "https://files.pythonhosted.org/packages/8d/af/1886484d3bd1fc76b6a5e758322207b5a224e798db74b2976e25a8e7d6e2/restler-serialization-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c217396773e945078b03c897e4a15c78", "sha256": "2e12ec30850988fedbcdf62735b249c15048c6274fc06e59ab7c7855f903017b" }, "downloads": -1, "filename": "restler_serialization-0.4.1-py2.7.egg", "has_sig": false, "md5_digest": "c217396773e945078b03c897e4a15c78", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 30864, "upload_time": "2016-04-28T11:54:29", "url": "https://files.pythonhosted.org/packages/4b/f5/dfd0361a61907633934916e4e1f62ae2524f225bc49e1f5c33ee53674bc2/restler_serialization-0.4.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "4ce100f8a2659b6b8027559f14d51abb", "sha256": "1027198dd3f25596d058995e807cb2fc34182664b9b81ecfee545493f1ee93ce" }, "downloads": -1, "filename": "restler-serialization-0.4.1.tar.gz", "has_sig": false, "md5_digest": "4ce100f8a2659b6b8027559f14d51abb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13702, "upload_time": "2016-04-28T11:54:11", "url": "https://files.pythonhosted.org/packages/8d/af/1886484d3bd1fc76b6a5e758322207b5a224e798db74b2976e25a8e7d6e2/restler-serialization-0.4.1.tar.gz" } ] }