{ "info": { "author": "Jose Dinuncio", "author_email": "jdinunci@uc.edu.ve", "bugtrack_url": null, "classifiers": [], "description": "repoze.what.plugins.ini -- Plugin for repoze.what authorization framework\n=========================================================================\n\n What is repoze.what.plugins.ini?\n --------------------------------\n\n repoze.what.plugins.ini is a plugin for repoze.what that offers group and\n permissions adapters for sources based on INI files.\n\n\n What is repoze.what?\n --------------------\n\n From repoze.what site:\n\n repoze.what is an authorization framework for WSGI applications, based\n on repoze.who (which deals with authentication).\n\n On the one hand, it enables an authorization system based on the groups \n to which the authenticated or anonymous user belongs and the permissions \n granted to such groups by loading these groups and permissions into the \n request on the way in to the downstream WSGI application.\n\n And on the other hand, it enables you to manage your groups and \n permissions from the application itself or another program, under a \n backend-independent API. For example, it would be easy for you to switch \n from one back-end to another, and even use this framework to migrate the\n data.\n\n repoze.what can be used as authorization framework for turbogear, repoze.bfg \n or your own WSGI server.\n \n\n How to install repoze.what.plugins.ini?\n ---------------------------------------\n\n You can install the last stable version with easy_install::\n\n\n easy_install repoze.what.plugins.ini\n\n\n or the developer version via git::\n\n\n git clone git://github.com/jdinuncio/repoze.what.plugins.ini.git\n cd repoze.what.plugins.ini\n python setup.py install\n\n\n The source file format\n ----------------------\n\n The format used in the source files is similar to the INI file format. The \n file consists in a serie of sections, each one with a section header of the \n form \u201c[section-name]\u201d, followed by entries of the form \u201cvalue\u201d. Spaces \n before and after section headers or entries are ignored. Characters after \n \u201d#\u201d are ignored.\n\n An example of a group file::\n\n\n [admins]\n rms\n\n [developers]\n rms\n linus\n\n [trolls]\n sballmer\n\n [python]\n [php]\n\n\n An example of a permissions file:\n\n\n [see-site]\n trolls\n\n [edit-site]\n admins\n developers\n\n [commit]\n developers\n\n\n How to use it?\n --------------\n \n All you need to do is to instantiate a repoze.what middleware using \n repoze.what.plugins.ini.INIGroupAdapter or \n repoze.what.plugins.ini.INIPermissionsAdapter::\n\n \n # First, we'll need a WSGI application\n my_app = None # Of course, you'll change None for your WSGI app\n\n # We need to set up the repoze.who components used by repoze.what for\n # authentication\n from repoze.who.plugins.htpasswd import HTPasswdPlugin, crypt_check\n from repoze.who.plugins.basicauth import BasicAuthPlugin\n\n htpasswd = HTPasswdPlugin('passwd', crypt_check)\n basicauth = BasicAuthPlugin('MyRepoze')\n identifiers = [('basicauth', basicauth)]\n authenticators = [('htpasswd', htpasswd)]\n challengers = [('basicauth', basicauth)]\n mdproviders = []\n\n # We'll use group and permission based exclusively on INI files\n from repoze.what.plugins.ini import INIGroupAdapter\n from repoze.what.plugins.ini import INIPermissionsAdapter\n\n groups = {'all_groups': INIGroupAdapter('groups.ini')}\n permissions = {'all_perms': INIPermissionsAdapter('permissions.ini')}\n\n # Finally, we create the repoze.what middleware\n import logging\n\n from repoze.what.middleware import setup_auth\n\n middleware = setup_auth(\n app = my_app,\n group_adapters = groups,\n permission_adapters = permissions, \n identifiers = identifiers, \n authenticators = authenticators,\n challengers = challengers, \n mdproviders = mdproviders, \n log_level = logging.DEBUG\n )", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jdinuncio/repoze.what.plugins.ini/tree/master", "keywords": "wsgi repoze what pluggins authorization INI ini", "license": "BSD-derived (see http://www.repoze.org/LICENSE.txt)", "maintainer": null, "maintainer_email": null, "name": "repoze.what.plugins.ini", "package_url": "https://pypi.org/project/repoze.what.plugins.ini/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/repoze.what.plugins.ini/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/jdinuncio/repoze.what.plugins.ini/tree/master" }, "release_url": "https://pypi.org/project/repoze.what.plugins.ini/0.2.5/", "requires_dist": null, "requires_python": null, "summary": "repoze.what pluggin with sources based on INI files.", "version": "0.2.5" }, "last_serial": 798839, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "d854afa73eb31f737c8bb0b415232275", "sha256": "5b79b7e05993b43606e28e5e255513c121ff58db65c211fef0aa14a72d74ffab" }, "downloads": -1, "filename": "repoze.what.plugins.ini-0.2-py2.5.egg", "has_sig": false, "md5_digest": "d854afa73eb31f737c8bb0b415232275", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 14159, "upload_time": "2008-12-09T18:31:47", "url": "https://files.pythonhosted.org/packages/6f/fe/e98d0e1230b7af9c1f1fa15dd3eafea378c8b0a530872fefd2a8509fc596/repoze.what.plugins.ini-0.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "b9bff2f36be794d170133e11b035a02d", "sha256": "6cd2ba08a5097f75fc9dfd0a41d70b8f8d2a58b0628d18136fad9ebdab7e3d78" }, "downloads": -1, "filename": "repoze.what.plugins.ini-0.2.tar.gz", "has_sig": false, "md5_digest": "b9bff2f36be794d170133e11b035a02d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3942, "upload_time": "2008-12-09T18:30:01", "url": "https://files.pythonhosted.org/packages/63/01/ec80846f0356054fa9d9bb226c18fac1314628b020f6fe68cd771c8eb6e9/repoze.what.plugins.ini-0.2.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "c0db2dc38b9d30dfe206a96a66e9d045", "sha256": "0a45ab8e31ab699ca36f273e9b119e9afed72fc63ee8f773014f462c7f0a12c3" }, "downloads": -1, "filename": "repoze.what.plugins.ini-0.2.2-py2.5.egg", "has_sig": false, "md5_digest": "c0db2dc38b9d30dfe206a96a66e9d045", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 15322, "upload_time": "2008-12-11T14:07:10", "url": "https://files.pythonhosted.org/packages/c8/0b/d09ccd345a6abb5eee7db3fe04b098828f726ed7d6f199aa8e6776f0ceb0/repoze.what.plugins.ini-0.2.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "ef7d87b36ea89913fa21f0ab7f305035", "sha256": "dab89af545123edae4fd3608718e5fdc09d95754120392eb7bdfcd20b2c5d9d9" }, "downloads": -1, "filename": "repoze.what.plugins.ini-0.2.2.tar.gz", "has_sig": false, "md5_digest": "ef7d87b36ea89913fa21f0ab7f305035", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5419, "upload_time": "2008-12-11T14:07:33", "url": "https://files.pythonhosted.org/packages/e3/0e/1b65ce242cc464c7028a5eb1fbb9b85d1743d3aca8b470fbb4afe77595ea/repoze.what.plugins.ini-0.2.2.tar.gz" } ], "0.2.5": [] }, "urls": [] }