{ "info": { "author": "Paul Downey", "author_email": "paul.downey@whatfettle.com", "bugtrack_url": null, "classifiers": [], "description": "A base class for TiddlyWeb to simplify the development of serializers \nin particular those which exchange bags, recipes and tiddlers as \nrepresentations in a _generic_ format, such as JSON, XML, YAML, etc.\n\nThe simplerizer pacakge uses the dump and load objects to implement\nall of the known core methods for exchanging representations with TiddlyWeb\nresources. This contrasts with the core TiddlyWeb SerializionInterface\nwhich throws \"NotImplemented\" exceptions for methods not explicity defined.\nBoth approaches may have merit, hence this being offered as a plugin.\n\nThe following simplerizer based plugin is a replacement for the core\njson serializer:\n\n from simplejson import dumps, loads\n from tiddlywebplugins.simplerizer import Simplerization as SerializationInterface\n\n def init(config):\n # register the serializer\n content_type = \"text/json\"\n config[\"extension_types\"][\"json\"] = content_type\n config[\"serializers\"][content_type] = [__name__, \"text/json; charset=UTF-8\"]\n\n class Serialization(SerializationInterface):\n \"\"\"Access TiddlyWeb resources using the JSON representation.\"\"\"\n\n def dump(self, object):\n \"\"\"Dump a dictionary object to a JSON string.\"\"\"\n return simplejson.dumps(object)\n\n def load(self, input_string):\n \"\"\"Load a dictionary object from a JSON string.\"\"\"\n return simplejson.loads(input_string)\n\nTo use this code install the package and add 'tiddlywebplugins.simplerizer'\nto install_requires section of setup.py for your serializer package:\n\n install_requires = ['setuptools', 'simplejson', 'tiddlyweb.simplerizer', 'tiddlyweb'],\n\nCreated by Paul Downey, .\nhttp://blog.whatfettle.com\n\nThis package is licensed under the same terms as TiddlyWeb itself.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/tiddlywebplugins.simplerizer", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "tiddlywebplugins.simplerizer", "package_url": "https://pypi.org/project/tiddlywebplugins.simplerizer/", "platform": "Posix; MacOS X; Windows", "project_url": "https://pypi.org/project/tiddlywebplugins.simplerizer/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/tiddlywebplugins.simplerizer" }, "release_url": "https://pypi.org/project/tiddlywebplugins.simplerizer/0.1/", "requires_dist": null, "requires_python": null, "summary": "TiddlyWeb plugin to simplify the development of serializers.", "version": "0.1" }, "last_serial": 800652, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "684ca5b16e287ab00a9f18d7222a85c0", "sha256": "9b87dcb8959db93e064039dcc7b1cbb3d1fdd7e32c0c0d64fd82cc3f30616d22" }, "downloads": -1, "filename": "tiddlywebplugins.simplerizer-0.1.tar.gz", "has_sig": false, "md5_digest": "684ca5b16e287ab00a9f18d7222a85c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4118, "upload_time": "2010-03-22T15:00:59", "url": "https://files.pythonhosted.org/packages/dd/b3/39b75603bf889a223410f78d656e4c54d80097cd0a3100b817abb1681178/tiddlywebplugins.simplerizer-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "684ca5b16e287ab00a9f18d7222a85c0", "sha256": "9b87dcb8959db93e064039dcc7b1cbb3d1fdd7e32c0c0d64fd82cc3f30616d22" }, "downloads": -1, "filename": "tiddlywebplugins.simplerizer-0.1.tar.gz", "has_sig": false, "md5_digest": "684ca5b16e287ab00a9f18d7222a85c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4118, "upload_time": "2010-03-22T15:00:59", "url": "https://files.pythonhosted.org/packages/dd/b3/39b75603bf889a223410f78d656e4c54d80097cd0a3100b817abb1681178/tiddlywebplugins.simplerizer-0.1.tar.gz" } ] }