{ "info": { "author": "Gladyshev Bogdan", "author_email": "siredvin.dark@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: AsyncIO", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Natural Language :: Russian", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "Sanic OAuth\n-----------\n\n\nSimple OAuth library to work with sanic. Basically, just rewrited version of aioauth_client_ with async/await syntax and some optimization. Can be used only with python 3.5/3.6.\n\nAvailable providers (in alphabetic order):\n\n- Amazon\n- BitBucket\n- BitBucket v2\n- Discord (thanks to @smlbiobot)\n- Eventbrite\n- Facebook\n- Flickr\n- Foursquare\n- Github\n- GitLab\n- Google\n- LinkedIn\n- Meetup\n- ok.ru\n- Pinterest\n- Plurk\n- Tumblr\n- Twitter\n- Vimeo\n- vk.com\n- Yahoo\n- Yandex\n\n\nRequirements\n============\n\n* python >= 3.6\n\n\nInstallation\n============\n\nJust install via pip:\n\n.. code:: \n\n pip install sanic_oauth\n\nNote, that to use blueprint correctly, you need to additionally install :code:`sanic` and :code:`sanic-session`.\n\n\nUsage\n=====\n\nSimple way for use this is blueprint with oauth configuration. \n\nBut, before use it you need to:\n\n1. Create :code:`aiohttp.ClientSession` and bind to app like :code:`async_session` variable.\n2. Create session interface from :code:`sanic-session` package and bind it to app like :code:`session_interface` variable.\n3. Configure :code:`app.config` settings. You should pass :code:`OAUTH_PROVIDER, OAUTH_REDIRECT_URI, OAUTH_SCOPE` and another settings, for example, :code:`OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET`. Every setting with :code:`OAUTH` prefix will be passed to oauth provider construction.\n4. Apply blueprint \n5. Add decorator :code:`login_required` to routes, that required oauth.\n\n\nYou can see example_ for more details.\n\n\nAdvanced usage\n==============\n\nIf you don't like current blueprint, you always can use providers directly and implements you own logic, like in old_example_.\n\n\n\n.. _example: ./example.py\n.. _old_example: ./old_example.py\n.. _aioauth_client: https://github.com/klen/aioauth-client\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/SirEdvin/sanic-oauth", "keywords": "asyncio,http,oauth,sanic", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sanic-oauth", "package_url": "https://pypi.org/project/sanic-oauth/", "platform": "", "project_url": "https://pypi.org/project/sanic-oauth/", "project_urls": { "Homepage": "https://gitlab.com/SirEdvin/sanic-oauth" }, "release_url": "https://pypi.org/project/sanic-oauth/0.4.0/", "requires_dist": [ "yarl (~=1.2.6)", "aiohttp (~=3.3.2)" ], "requires_python": "", "summary": "", "version": "0.4.0" }, "last_serial": 4918443, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a7e7f0605e6dfebf51161d346f038ddd", "sha256": "1206e07897e1437307111f9efc5793293578858f5196382ec4765a1ff4393c54" }, "downloads": -1, "filename": "sanic_oauth-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a7e7f0605e6dfebf51161d346f038ddd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4414, "upload_time": "2018-01-27T08:28:52", "url": "https://files.pythonhosted.org/packages/44/ee/d5d5d6b29fe5371047e0f98376156c8ca72f3fea5188e4deb84a504b62e5/sanic_oauth-0.1.0-py2.py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bee23b163cc1996f92a04e19e33c8a0c", "sha256": "1f7fb0597436913e04493b0ff206075d4bcf4edff25328c88e03f6c6840b9539" }, "downloads": -1, "filename": "sanic_oauth-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bee23b163cc1996f92a04e19e33c8a0c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13581, "upload_time": "2018-01-29T21:19:51", "url": "https://files.pythonhosted.org/packages/a4/da/0e6a2f0cdee1882e64b4597d417d488e771845d873931c77233d2bd3fcd8/sanic_oauth-0.1.1-py2.py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "f657a8ea682aeaa7ec1048754d67963b", "sha256": "05da017a63f295c2cb630786149698784146c0cd2c93bf42b8ee27cd3c30749d" }, "downloads": -1, "filename": "sanic_oauth-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f657a8ea682aeaa7ec1048754d67963b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11686, "upload_time": "2018-05-02T17:31:30", "url": "https://files.pythonhosted.org/packages/02/5a/e3cdbe41d123bc48dd67fc6d6b298ff9ab5b7e86b24a8da8171997075f2b/sanic_oauth-0.1.2-py2.py3-none-any.whl" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "45800bfb4d73b0cd7c44f2eeb7bc9995", "sha256": "11973f4cfacc7168f2473ab18eca7cb1422a8cd5dda0cdc49afd3a5d0bebbe2c" }, "downloads": -1, "filename": "sanic_oauth-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "45800bfb4d73b0cd7c44f2eeb7bc9995", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13050, "upload_time": "2018-05-05T12:28:41", "url": "https://files.pythonhosted.org/packages/96/6c/263ec011ff950ad0f4929a096e27a1bea3234c5bde329131ef709fcecdf6/sanic_oauth-0.2.0-py2.py3-none-any.whl" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3656da58b11ff9e519ad6327428840dd", "sha256": "30bf6e8e666be2ce8e75326f83e08e63195f48233ff7ec14eacd3b8da28c3a87" }, "downloads": -1, "filename": "sanic_oauth-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3656da58b11ff9e519ad6327428840dd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13218, "upload_time": "2018-05-10T13:09:04", "url": "https://files.pythonhosted.org/packages/22/af/bf4d97991adaaa34fd98003c0cf751b77b86e23cdca58f8e360bfb341d92/sanic_oauth-0.2.1-py2.py3-none-any.whl" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "94b3fb24f714233d2c1342632dcf3ca8", "sha256": "abeb8ff14ad603452fce7f51507d92e687dd72636dd372c6501a9102c182d2ea" }, "downloads": -1, "filename": "sanic_oauth-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "94b3fb24f714233d2c1342632dcf3ca8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13247, "upload_time": "2018-05-10T13:47:39", "url": "https://files.pythonhosted.org/packages/73/38/ee38cc612d6dea5f3a51be6ea34bf2c4a0c6e2ba9231a24690b84b10bf34/sanic_oauth-0.2.2-py2.py3-none-any.whl" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "d0af8d0a213b32ef018187ad0a9e9244", "sha256": "994360da1921aff7d17781f2f94b0b93c8da881c4c8981fa70e71cc2f2ec089f" }, "downloads": -1, "filename": "sanic_oauth-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d0af8d0a213b32ef018187ad0a9e9244", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13269, "upload_time": "2018-05-16T14:04:09", "url": "https://files.pythonhosted.org/packages/9a/7f/c8b33008cc6d1c3e671f6639835bd396400695422bed16e47c735c5f8ac7/sanic_oauth-0.2.3-py2.py3-none-any.whl" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "0028937205ed5b28f8772cb0933537d1", "sha256": "3ca8b637efac5d46b380b7a24d983141d3967f1312d1537340483dbcbdcbfeae" }, "downloads": -1, "filename": "sanic_oauth-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0028937205ed5b28f8772cb0933537d1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13285, "upload_time": "2018-06-13T10:16:25", "url": "https://files.pythonhosted.org/packages/9e/e8/dc2434b7f2354b4f7f0fe5ca561b491caf92900583da5863d711ca32cd29/sanic_oauth-0.2.4-py2.py3-none-any.whl" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "bdaffeb5bc17203901aa6d233a36a314", "sha256": "d14ba0d9ac2c82842ab042601f109381d057e30084712cf06c325b78ff4154c1" }, "downloads": -1, "filename": "sanic_oauth-0.2.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bdaffeb5bc17203901aa6d233a36a314", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13303, "upload_time": "2018-08-08T18:12:36", "url": "https://files.pythonhosted.org/packages/15/01/5e74610f9c530ce5bbb7f29fffbc55cf4bb3cdf4828b5da052559d3de450/sanic_oauth-0.2.5-py2.py3-none-any.whl" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "fc7aa19310b03e167d6635b798fd6ab3", "sha256": "4728c2c7570ffc5461f970e1618232e64abda971ae20c96a4a2b0a95ee9c2094" }, "downloads": -1, "filename": "sanic_oauth-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fc7aa19310b03e167d6635b798fd6ab3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14252, "upload_time": "2019-01-25T15:02:31", "url": "https://files.pythonhosted.org/packages/97/86/654b5e74dca17a880e29701abe678f59aa7eed0424d053a5365d572059b9/sanic_oauth-0.3.0-py2.py3-none-any.whl" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "ac9167504d3cfb7d57f2d6a531fbde67", "sha256": "d1aedc8df17b627d5053cd320b86edb77936979b07b81d382c3915e220982f1b" }, "downloads": -1, "filename": "sanic_oauth-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ac9167504d3cfb7d57f2d6a531fbde67", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15367, "upload_time": "2019-03-09T10:29:45", "url": "https://files.pythonhosted.org/packages/dd/e1/3c714a897c2931232aab6a3caa7a22f4cdfe99badd3b1d4f1dea63ade1f1/sanic_oauth-0.4.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ac9167504d3cfb7d57f2d6a531fbde67", "sha256": "d1aedc8df17b627d5053cd320b86edb77936979b07b81d382c3915e220982f1b" }, "downloads": -1, "filename": "sanic_oauth-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ac9167504d3cfb7d57f2d6a531fbde67", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15367, "upload_time": "2019-03-09T10:29:45", "url": "https://files.pythonhosted.org/packages/dd/e1/3c714a897c2931232aab6a3caa7a22f4cdfe99badd3b1d4f1dea63ade1f1/sanic_oauth-0.4.0-py2.py3-none-any.whl" } ] }