{ "info": { "author": "Livio Ribeiro", "author_email": "livioribeiro@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: CherryPy", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: Session" ], "description": "===============================\ncherrypy.authorizer.neomodel\n===============================\n\nBasic user model, authenticator and authorizer for lribeiro.cherrypy.authorizer and neomodel\n\nUsage:\n------\n\n.. sourcecode:: python\n\n import cherrypy\n\n from lribeiro.cherrypy.authorizer import authorize\n from lribeiro.cherrypy.authorizer.authentication import AuthControllerDefaultDispatcher\n\n from lribeiro.cherrypy.authorizer.neomodel.auth import authenticator, authorizer\n\n\n class Root:\n @cherrypy.expose\n def index(self):\n return 'index'\n\n @cherrypy.expose\n @authorize\n def auth_required(self):\n return 'auth required'\n\n @cherrypy.expose\n @authorize({'read': 'page', 'write': 'log'})\n def authorized(self):\n return 'authorized'\n\n @cherrypy.expose\n @authorize({'edit': ['page', 'site']})\n def unauthorized(self):\n return 'unauthorized'\n\n config = {\n '/': {\n 'tools.sessions.on': True,\n 'tools.authorizer.on': True,\n 'auth.authenticator': authenticator,\n 'auth.authorizer': authorizer,\n 'auth.login_page': '/login'\n }\n }\n\n if __name__ == '__main__':\n root = Root()\n root.auth = AuthControllerDefaultDispatcher()\n\n cherrypy.quickstart(root, '/', config)", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/livioribeiro/cherrypy-authorizer-neomodel", "keywords": "authentication,authorization,access control,cherrypy,neomodel", "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "lribeiro.cherrypy.authorizer.neomodel", "package_url": "https://pypi.org/project/lribeiro.cherrypy.authorizer.neomodel/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lribeiro.cherrypy.authorizer.neomodel/", "project_urls": { "Homepage": "http://bitbucket.org/livioribeiro/cherrypy-authorizer-neomodel" }, "release_url": "https://pypi.org/project/lribeiro.cherrypy.authorizer.neomodel/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Basic user model, authenticator and authorizer for lribeiro.cherrypy.authorizer and neomodel", "version": "1.0.1" }, "last_serial": 1217262, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "915922a62cee03feaacea753d3dbad73", "sha256": "53fe176ae6ac44efc07c1c86c1a614c5744d4a41e7afedc3d0cfadb2cb0a58c3" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.neomodel-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "915922a62cee03feaacea753d3dbad73", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5735, "upload_time": "2014-09-04T13:22:59", "url": "https://files.pythonhosted.org/packages/b0/63/ae25452877a057ee35a1c4f0192f78f5db9f60c16986ad50f4a41ee05b9d/lribeiro.cherrypy.authorizer.neomodel-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "44367c800a9feed880d7ddb44e291f11", "sha256": "4d24aa97f01b298cb69edc27399e2e4f9547681c3429df7fa1cb66b79cdcd84d" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.neomodel-1.0.tar.gz", "has_sig": false, "md5_digest": "44367c800a9feed880d7ddb44e291f11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3184, "upload_time": "2014-09-04T13:23:02", "url": "https://files.pythonhosted.org/packages/b8/f4/be36931a520434d065d8a0708be51a5ff6902b1885125c2dfa7ebd35d49b/lribeiro.cherrypy.authorizer.neomodel-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "bcbe79eae812d8e8b0fbcdf0e35a6eed", "sha256": "8bc9ae1e4deafb9e64578fca554fec932446ab2ae1c74fd88609bdef080be0ae" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.neomodel-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bcbe79eae812d8e8b0fbcdf0e35a6eed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5859, "upload_time": "2014-09-08T18:12:35", "url": "https://files.pythonhosted.org/packages/53/40/6df1ec8dd9ccec082bb4b49ea2074b159f711ab81b9d46f6021c44735678/lribeiro.cherrypy.authorizer.neomodel-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7347d8d2d6ecee078dc234b46f40c203", "sha256": "dcc15c44107a4e1fcb15d5ad19523768ff59c8aaa1c974e477f8b70b75614025" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.neomodel-1.0.1.tar.gz", "has_sig": false, "md5_digest": "7347d8d2d6ecee078dc234b46f40c203", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3087, "upload_time": "2014-09-08T18:12:33", "url": "https://files.pythonhosted.org/packages/13/44/f3e8e3eb0aea3fb5eca8885f37104aba709dc79d271012687b282a6c2452/lribeiro.cherrypy.authorizer.neomodel-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bcbe79eae812d8e8b0fbcdf0e35a6eed", "sha256": "8bc9ae1e4deafb9e64578fca554fec932446ab2ae1c74fd88609bdef080be0ae" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.neomodel-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bcbe79eae812d8e8b0fbcdf0e35a6eed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5859, "upload_time": "2014-09-08T18:12:35", "url": "https://files.pythonhosted.org/packages/53/40/6df1ec8dd9ccec082bb4b49ea2074b159f711ab81b9d46f6021c44735678/lribeiro.cherrypy.authorizer.neomodel-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7347d8d2d6ecee078dc234b46f40c203", "sha256": "dcc15c44107a4e1fcb15d5ad19523768ff59c8aaa1c974e477f8b70b75614025" }, "downloads": -1, "filename": "lribeiro.cherrypy.authorizer.neomodel-1.0.1.tar.gz", "has_sig": false, "md5_digest": "7347d8d2d6ecee078dc234b46f40c203", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3087, "upload_time": "2014-09-08T18:12:33", "url": "https://files.pythonhosted.org/packages/13/44/f3e8e3eb0aea3fb5eca8885f37104aba709dc79d271012687b282a6c2452/lribeiro.cherrypy.authorizer.neomodel-1.0.1.tar.gz" } ] }