{ "info": { "author": "Globo.com", "author_email": "entretenimento1@corp.globo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS", "Operating System :: OS Independent", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4" ], "description": "tornado-alf |build-status|\n===========\n\nTornado OAuth 2 Client\n---------------------\n\n`tornado-alf` is a OAuth 2 Client base on the tornado's AsyncHTTPClient\n\nFeatures\n--------\n\n* Automatic token retrieving and renewing\n* Token expiration control\n* Automatic retry on status 401 (UNAUTHORIZED)\n\nUsage\n-----\n\nInitialize the client and use it as a AsyncHTTPClient object.\n\n.. code-block:: python\n\n from tornadoalf.client import Client\n\n client = Client(\n token_endpoint='http://example.com/token',\n client_id='client-id',\n client_secret='secret')\n\n resource_uri = 'http://example.com/resource'\n\n response = yield client.fetch(resource_uri,\n method='POST', body='{\"name\": \"alf\"}',\n headers={'Content-Type': 'application/json'})\n\n\nHow it works?\n-------------\n\nBefore any request the client tries to retrive a token on the endpoint,\nexpecting a JSON response with the ``access_token`` and ``expires_in`` keys.\n\nThe client keeps the token until it is expired, according to the ``expires_in``\nvalue.\n\nAfter getting the token, the request is issued with a `Bearer authorization\nheader `_:\n\n.. code-block::\n\n GET /resource/1 HTTP/1.1\n Host: example.com\n Authorization: Bearer token\n\nIf the request fails with a 401 (UNAUTHORIZED) status, a new token is retrieved\nfrom the endpoint and the request is retried. This happens only once, if it\nfails again the error response is returned.\n\n\nTroubleshooting\n---------------\n\nIn case of an error retrieving a token, the error response will be returned,\nthe real request won't happen.\n\n\nRelated projects\n----------------\n\nThis project tries to be an adaptaion to tornado of\n`alf `_\n\n\n.. |build-status| image:: https://secure.travis-ci.org/globocom/tornado-alf.png?branch=master\n :target: https://travis-ci.org/globocom/tornado-alf", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/globocom/tornado-alf", "keywords": "oauth client client_credentials tornado", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "tornado-alf", "package_url": "https://pypi.org/project/tornado-alf/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tornado-alf/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/globocom/tornado-alf" }, "release_url": "https://pypi.org/project/tornado-alf/0.4.4/", "requires_dist": null, "requires_python": null, "summary": "OAuth Client For Tornado", "version": "0.4.4" }, "last_serial": 5080684, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "c8d8f7c32838fdcba18e3c9c4102ce1d", "sha256": "4d9bf645e29b6d319cf1654638f8300fcab87a2556ae65e4028ad8cdce8f3162" }, "downloads": -1, "filename": "tornado-alf-0.3.tar.gz", "has_sig": false, "md5_digest": "c8d8f7c32838fdcba18e3c9c4102ce1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3546, "upload_time": "2014-06-11T19:02:33", "url": "https://files.pythonhosted.org/packages/c6/93/eca160904d15c2b021c158d91cda7a65ed7ae63c7184b417e1a5a1d395c4/tornado-alf-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "61c513a5f8b1b29ebee0918a0adc27d4", "sha256": "6a3d8c3807f20484507819075d6962a561090889d502994aac2933aea8292c9a" }, "downloads": -1, "filename": "tornado-alf-0.3.1.tar.gz", "has_sig": false, "md5_digest": "61c513a5f8b1b29ebee0918a0adc27d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3553, "upload_time": "2014-06-11T19:10:34", "url": "https://files.pythonhosted.org/packages/0c/a5/ac7ad0dcbecbf76b6f6c9e49d6a90282bcc9f18eaa60f25f7fe065f314df/tornado-alf-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "e0e181b1815ece2ad84995ed769a933d", "sha256": "3a284c7534ba11cdca7e1040a3f170ee59b2fc358d9544fb6b3fe2b7bbc8b0c9" }, "downloads": -1, "filename": "tornado-alf-0.3.2.tar.gz", "has_sig": false, "md5_digest": "e0e181b1815ece2ad84995ed769a933d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3550, "upload_time": "2014-06-16T22:06:53", "url": "https://files.pythonhosted.org/packages/b8/a1/d8fc957ded4cc2209f298abf900e4e1602dd138545c6c1a5d7f0fde9b02e/tornado-alf-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "98932e6683dc91f1fc87af95b6175352", "sha256": "6703ccdd08a5a0987451415b1a0c2fc5fa82ac5dbbed05a4bce341cf6cb4eb57" }, "downloads": -1, "filename": "tornado-alf-0.3.3.tar.gz", "has_sig": false, "md5_digest": "98932e6683dc91f1fc87af95b6175352", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3594, "upload_time": "2014-06-29T00:10:52", "url": "https://files.pythonhosted.org/packages/10/c1/2f31571c39ebfcd3943642514bc9ea9d98487281eb800cc0735a40c6d066/tornado-alf-0.3.3.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "29693ddd8a321f763fdbb9bf7ab2cfc5", "sha256": "951f1249ecea7ffd63d221c8f192043c20dabbb70d9dbbb8dabd7ae67ba9c075" }, "downloads": -1, "filename": "tornado-alf-0.4.0.tar.gz", "has_sig": false, "md5_digest": "29693ddd8a321f763fdbb9bf7ab2cfc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3722, "upload_time": "2014-07-02T17:48:14", "url": "https://files.pythonhosted.org/packages/ab/88/d9322de934c8477b8df59a3c42b1ce1cca237ac675020a1d2cbe8dd95fa0/tornado-alf-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "41b0fee4d557ec6d3016805012c18394", "sha256": "fae417d19a93b3d9d017d3a1cfaa84f8774ba2eb1c8860455b585f7216005405" }, "downloads": -1, "filename": "tornado-alf-0.4.1.tar.gz", "has_sig": false, "md5_digest": "41b0fee4d557ec6d3016805012c18394", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3739, "upload_time": "2014-07-10T23:55:18", "url": "https://files.pythonhosted.org/packages/dc/7c/8f62b781769ab2a5d6d0475609544d7b31de1e4255d493e94b0be7242bec/tornado-alf-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "ba6b915a7e0bc73a8874b9d188e5824e", "sha256": "325ee7025fcc71f2a7c39d7d01e6fdf41a42f5ca0db2c2b57d1660afaeb1718f" }, "downloads": -1, "filename": "tornado-alf-0.4.2.tar.gz", "has_sig": false, "md5_digest": "ba6b915a7e0bc73a8874b9d188e5824e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3743, "upload_time": "2015-03-12T14:14:27", "url": "https://files.pythonhosted.org/packages/45/81/bd388e51513f491be28b22fd81a4ca8597661a643e2b83c4e86a70758d74/tornado-alf-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "75e0dd2945283326ed717fcf7f574f80", "sha256": "cec9921efd77f04f4e873b7a9e2093a044e79d4c13c4efb29eb1120e5c5d4410" }, "downloads": -1, "filename": "tornado-alf-0.4.3.tar.gz", "has_sig": false, "md5_digest": "75e0dd2945283326ed717fcf7f574f80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3832, "upload_time": "2015-10-20T21:05:58", "url": "https://files.pythonhosted.org/packages/c0/48/00e375e6f87ea3700e0b860820bed3b684213b11f29f1d817cad90b59b53/tornado-alf-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "28f609154775f9ee8f8cb9bfb680fc0d", "sha256": "7cd30a5774541b5195144f41a50126c51261c595f5f6364cb00aec4068618ea9" }, "downloads": -1, "filename": "tornado-alf-0.4.4.tar.gz", "has_sig": false, "md5_digest": "28f609154775f9ee8f8cb9bfb680fc0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3831, "upload_time": "2015-10-20T21:08:39", "url": "https://files.pythonhosted.org/packages/8d/cd/082c9328de9ebd2b75962fabc4ce1b271fddaac2c31ccac7b0f027c52d32/tornado-alf-0.4.4.tar.gz" } ], "0.5.0rc1": [ { "comment_text": "", "digests": { "md5": "3d20045b7c531191d08a4724190ec5bc", "sha256": "bf6a0fe74336a4f698e94386eeece3ed98c26f15d1510a3bd09a24ddec743a57" }, "downloads": -1, "filename": "tornado-alf-0.5.0rc1.tar.gz", "has_sig": false, "md5_digest": "3d20045b7c531191d08a4724190ec5bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4463, "upload_time": "2019-04-02T20:21:42", "url": "https://files.pythonhosted.org/packages/0f/00/1a01ac68fe72ee0f809a3bf58d86c53f4e02e35a57529ff06f248e9137ee/tornado-alf-0.5.0rc1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "28f609154775f9ee8f8cb9bfb680fc0d", "sha256": "7cd30a5774541b5195144f41a50126c51261c595f5f6364cb00aec4068618ea9" }, "downloads": -1, "filename": "tornado-alf-0.4.4.tar.gz", "has_sig": false, "md5_digest": "28f609154775f9ee8f8cb9bfb680fc0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3831, "upload_time": "2015-10-20T21:08:39", "url": "https://files.pythonhosted.org/packages/8d/cd/082c9328de9ebd2b75962fabc4ce1b271fddaac2c31ccac7b0f027c52d32/tornado-alf-0.4.4.tar.gz" } ] }