{ "info": { "author": "Vahid Mardani", "author_email": "vahid.mardani@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: Freeware", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries" ], "description": ".. pymlconf documentation master file, created by\n sphinx-quickstart on Sat Apr 14 05:05:05 2012.\n You can adapt this file completely to your liking, but it should at least\n contain the root `toctree` directive.\n\nCherrypy's Elixir Plugin\n====================================\n\n``CherrypyElixir`` is a cherrypy plugin that provides elixir functionalities on top of sqlalchemy , within cherrypy as a process bus plugin.\n\nExample::\n\n\timport cherrypy\n\timport CherrypyElixir\n\tfrom elixir import Entity, String, Field, OneToMany, Unicode, ManyToOne\n\tCherrypyElixir.setup()\n\t\n\t\n\t# define models\n\tclass Person(Entity):\n\t name = Field(String(128))\n\t addresses = OneToMany('Address')\n\t\n\tclass Address(Entity):\n\t email = Field(Unicode(128))\n\t owner = ManyToOne('Person')\n\t\n\t\n\tclass Root(object):\n\t \n\t @cherrypy.expose\n\t @cherrypy.tools.elixir()\n\t def index(self):\n\t yield ''\n\t\n\t @cherrypy.expose\n\t @cherrypy.tools.elixir()\n\t def add(self,name=None,address=None):\n\t p = Person(name = name)\n\t for addr in address.split(','):\n\t p.addresses.append(Address(email=addr))\n\t \n\t_cp_config={\n\t 'global':{\n\t 'server.socket_host' : '0.0.0.0', \n\t 'server.socket_port' : 1919,\n\t 'engine.elixir.on' : True,\n\t 'engine.elixir.echo' : True,\n\t 'engine.elixir.db_uri' : 'sqlite://test.db'\n\t },\n\t}\n\t\n\tif __name__ == '__main__':\n\t cherrypy.quickstart(Root(), '', config=_cp_config) \n\t \n\nTo access sqlalchemy's ``scoped_session`` directly , you can use ``cherrypy.request.db``", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://packages.python.org/cherrypyelixir", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "CherrypyElixir", "package_url": "https://pypi.org/project/CherrypyElixir/", "platform": "any", "project_url": "https://pypi.org/project/CherrypyElixir/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://packages.python.org/cherrypyelixir" }, "release_url": "https://pypi.org/project/CherrypyElixir/0.5.1/", "requires_dist": null, "requires_python": null, "summary": "Elixir plugin for cherrypy", "version": "0.5.1" }, "last_serial": 783936, "releases": { "0.4": [ { "comment_text": "", "digests": { "md5": "48a9cebed19e619ebeecb5023aef3bef", "sha256": "a6da7ae929c91e661da89c3eb6e30343e104ec0817b47c8ed3f93dc3e4c9898d" }, "downloads": -1, "filename": "CherrypyElixir-0.4-py2.7.egg", "has_sig": false, "md5_digest": "48a9cebed19e619ebeecb5023aef3bef", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5432, "upload_time": "2012-12-16T00:51:05", "url": "https://files.pythonhosted.org/packages/08/f2/d5cce070c0df3fc636f1c759ff43740ba52528d74e67143bbd07305b92da/CherrypyElixir-0.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "eb1ab91b2283dd2c29382230b3ffb985", "sha256": "998137dca0b159a0c7b9ec9e3c4df975887603d338705c4b15dabfe6b87c1b41" }, "downloads": -1, "filename": "CherrypyElixir-0.4.tar.gz", "has_sig": false, "md5_digest": "eb1ab91b2283dd2c29382230b3ffb985", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3296, "upload_time": "2012-12-16T00:51:03", "url": "https://files.pythonhosted.org/packages/56/5a/6e421d10eac7318a8d5e8eb743d2e82e886a79ddb87dff6eccc62abbb86b/CherrypyElixir-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "f563c0507e2ce9b40a43646169774395", "sha256": "4d1adcec351caed356c53a5446d768e1e4d25a2e5d1d9d10f87185f94c785e7a" }, "downloads": -1, "filename": "CherrypyElixir-0.5.tar.gz", "has_sig": true, "md5_digest": "f563c0507e2ce9b40a43646169774395", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3184, "upload_time": "2012-12-23T20:41:38", "url": "https://files.pythonhosted.org/packages/9c/7a/24b617355a699abef036a5d19c7c94e2eee627b75d5434647a82fcae661d/CherrypyElixir-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "80e5d4770989a3922c2b199affa0460c", "sha256": "127498a84cb79056a3abae109d8de39c4113d45d0af81453c35cd313477bb626" }, "downloads": -1, "filename": "CherrypyElixir-0.5.1-py2.7.egg", "has_sig": true, "md5_digest": "80e5d4770989a3922c2b199affa0460c", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5421, "upload_time": "2012-12-23T23:40:18", "url": "https://files.pythonhosted.org/packages/1b/48/1bf6048471b4c616f8892b8c3ab5347db136bd663ef85b0fdee7d04fba2f/CherrypyElixir-0.5.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "746308d06c273e0cd9046b3a10d988c4", "sha256": "ec4881280f97b977f5ee7a0618c77897f124899095317261a8eac6be2c36fceb" }, "downloads": -1, "filename": "CherrypyElixir-0.5.1.tar.gz", "has_sig": true, "md5_digest": "746308d06c273e0cd9046b3a10d988c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3192, "upload_time": "2012-12-23T23:40:09", "url": "https://files.pythonhosted.org/packages/ae/95/2212961c2483f47418315a5071914e0101253bb29dc4f29727c810d63768/CherrypyElixir-0.5.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "80e5d4770989a3922c2b199affa0460c", "sha256": "127498a84cb79056a3abae109d8de39c4113d45d0af81453c35cd313477bb626" }, "downloads": -1, "filename": "CherrypyElixir-0.5.1-py2.7.egg", "has_sig": true, "md5_digest": "80e5d4770989a3922c2b199affa0460c", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5421, "upload_time": "2012-12-23T23:40:18", "url": "https://files.pythonhosted.org/packages/1b/48/1bf6048471b4c616f8892b8c3ab5347db136bd663ef85b0fdee7d04fba2f/CherrypyElixir-0.5.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "746308d06c273e0cd9046b3a10d988c4", "sha256": "ec4881280f97b977f5ee7a0618c77897f124899095317261a8eac6be2c36fceb" }, "downloads": -1, "filename": "CherrypyElixir-0.5.1.tar.gz", "has_sig": true, "md5_digest": "746308d06c273e0cd9046b3a10d988c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3192, "upload_time": "2012-12-23T23:40:09", "url": "https://files.pythonhosted.org/packages/ae/95/2212961c2483f47418315a5071914e0101253bb29dc4f29727c810d63768/CherrypyElixir-0.5.1.tar.gz" } ] }