{ "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 '