{ "info": { "author": "Kirill Klenov", "author_email": "horneds@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Natural Language :: Russian", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "Bottle-RAuth\n############\n\n.. _description:\n\nBottle-RAuth -- Short description.\n\n.. _badges:\n\n.. image:: http://img.shields.io/travis/klen/bottle-rauth.svg?style=flat-square\n :target: http://travis-ci.org/klen/bottle-rauth\n :alt: Build Status\n\n.. image:: http://img.shields.io/coveralls/klen/bottle-rauth.svg?style=flat-square\n :target: https://coveralls.io/r/klen/bottle-rauth\n :alt: Coverals\n\n.. image:: http://img.shields.io/pypi/v/bottle-rauth.svg?style=flat-square\n :target: https://pypi.python.org/pypi/bottle-rauth\n\n.. image:: http://img.shields.io/pypi/dm/bottle-rauth.svg?style=flat-square\n :target: https://pypi.python.org/pypi/bottle-rauth\n\n.. image:: http://img.shields.io/gratipay/klen.svg?style=flat-square\n :target: https://www.gratipay.com/klen/\n :alt: Donate\n\n.. _documentation:\n\n**Docs are available at https://bottle-rauth.readthedocs.org/. Pull requests\nwith documentation enhancements and/or fixes are awesome and most welcome.**\n\n.. _contents:\n\n.. contents::\n\n.. _requirements:\n\nRequirements\n=============\n\n- python >= 2.6\n\n.. _installation:\n\nInstallation\n=============\n\n**Bottle-RAuth** should be installed using pip: ::\n\n pip install bottle-rauth\n\n.. _usage:\n\nUsage\n=====\n\n::\n\n import bottle\n\n from bottle_rauth import RAuthPlugin\n\n app = bottle.Bottle()\n app.install(RAuthPlugin(github={\n 'type': 'oauth2',\n 'client_id': 'e3e297bb9f506cbea557',\n 'client_secret': 'd113380beb8f1ed8a77b688e2b81b76c9be00d09',\n 'authorize_url': 'https://github.com/login/oauth/authorize',\n 'access_token_url': 'https://github.com/login/oauth/access_token',\n 'base_url': 'https://api.github.com/',\n }))\n\n\n @app.route('/')\n def index():\n return 'Login with github'\n\n\n @app.route('/github', provider='github')\n def github(rauth):\n info = rauth.get('user').json()\n info['token'] = rauth.access_token\n return info\n\n if __name__ == '__main__':\n app.run(port=5000)\n\n\n.. _bugtracker:\n\nBug tracker\n===========\n\nIf you have any suggestions, bug reports or\nannoyances please report them to the issue tracker\nat https://github.com/klen/bottle-rauth/issues\n\n.. _contributing:\n\nContributing\n============\n\nDevelopment of Bottle-RAuth happens at: https://github.com/klen/bottle-rauth\n\n\nContributors\n=============\n\n* klen_ (Kirill Klenov)\n\n.. _license:\n\nLicense\n=======\n\nLicensed under a `BSD license`_.\n\n.. _links:\n\n.. _BSD license: http://www.linfo.org/bsdlicense.html\n.. _klen: https://github.com/klen", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/klen/bottle-oauth", "keywords": "bottle,oauth,rauth", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "bottle-rauth", "package_url": "https://pypi.org/project/bottle-rauth/", "platform": "Any", "project_url": "https://pypi.org/project/bottle-rauth/", "project_urls": { "Homepage": "https://github.com/klen/bottle-oauth" }, "release_url": "https://pypi.org/project/bottle-rauth/0.1.1/", "requires_dist": null, "requires_python": null, "summary": null, "version": "0.1.1" }, "last_serial": 1357815, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8f610188be1df77e6e86f035d82f6b00", "sha256": "2d920ee8ed0f1ebe2992740dbcd9bc260b0a142b7a9e132192299544bdfba2ff" }, "downloads": -1, "filename": "bottle_rauth-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8f610188be1df77e6e86f035d82f6b00", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4882, "upload_time": "2014-12-22T19:56:00", "url": "https://files.pythonhosted.org/packages/4e/82/e33fe0dd368b6dbb319372683d5eb8dce162e4b3ae85953187c8521052b3/bottle_rauth-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d5f37942ab21449e4a86ac7e57dc9cd", "sha256": "1e07218e9dcaadef8bdbb8aed8f2b44ff24cadd11af6dd293b75a93fa1d6f00f" }, "downloads": -1, "filename": "bottle-rauth-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0d5f37942ab21449e4a86ac7e57dc9cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3995, "upload_time": "2014-12-22T19:55:57", "url": "https://files.pythonhosted.org/packages/4a/a4/f81527ab8fcaddacc77f767fcec9e42da5ba50767b2456f0a312fd2e82b1/bottle-rauth-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "84dbe69eb67a4365c4c5167a8ae32f5e", "sha256": "b7356b6e924bd7ea4c69d31dc714077c2a45b61572a427ebb7a51693586e8aef" }, "downloads": -1, "filename": "bottle_rauth-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "84dbe69eb67a4365c4c5167a8ae32f5e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4913, "upload_time": "2014-12-22T20:20:06", "url": "https://files.pythonhosted.org/packages/63/8a/5cc86835d9f4bc3efddefafad8f83a72abac063975b8d037386a7142fdf7/bottle_rauth-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9e126c8180bcea0070f49a3efd25a806", "sha256": "276c17c7eb7b1971128959094de631262c645082fdb9f5e0dda28e829040103b" }, "downloads": -1, "filename": "bottle-rauth-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9e126c8180bcea0070f49a3efd25a806", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4029, "upload_time": "2014-12-22T20:20:03", "url": "https://files.pythonhosted.org/packages/ca/23/d973022d7182d9da001fef8679a318e8001cd82b893d566b7919f566b985/bottle-rauth-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "84dbe69eb67a4365c4c5167a8ae32f5e", "sha256": "b7356b6e924bd7ea4c69d31dc714077c2a45b61572a427ebb7a51693586e8aef" }, "downloads": -1, "filename": "bottle_rauth-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "84dbe69eb67a4365c4c5167a8ae32f5e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4913, "upload_time": "2014-12-22T20:20:06", "url": "https://files.pythonhosted.org/packages/63/8a/5cc86835d9f4bc3efddefafad8f83a72abac063975b8d037386a7142fdf7/bottle_rauth-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9e126c8180bcea0070f49a3efd25a806", "sha256": "276c17c7eb7b1971128959094de631262c645082fdb9f5e0dda28e829040103b" }, "downloads": -1, "filename": "bottle-rauth-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9e126c8180bcea0070f49a3efd25a806", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4029, "upload_time": "2014-12-22T20:20:03", "url": "https://files.pythonhosted.org/packages/ca/23/d973022d7182d9da001fef8679a318e8001cd82b893d566b7919f566b985/bottle-rauth-0.1.1.tar.gz" } ] }