{ "info": { "author": "Alexander Sapronov", "author_email": "sapronov.alexander92@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Copyright (c) 2013 zgw21cn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nDescription: python-feedly\n =============\n \n .. image:: https://img.shields.io/pypi/v/python-feedly.svg\n \t:target: https://pypi.python.org/pypi/python-feedly\n \n .. image:: https://img.shields.io/pypi/dm/python-feedly.svg\n \t:target: https://pypi.python.org/pypi/python-feedly\n \n \n .. _feedly: http://www.feedly.com\n \n A client for feedly_.\n \n Usage\n =====\n \n .. code-block:: bash\n \n \t$ pip install python-feedly\n \t\n Auth\n ----\n \n At first, you can go to :\n \n .. _sandbox feedly: https://sandbox.feedly.com/v3/auth/dev\n .. _feedly cloud: https://feedly.com/v3/auth/dev\n .. _feedly developer: http://developer.feedly.com/v3/sandbox/\n \n \t- `sandbox feedly`_ - access to sandbox (can be used for personal development)\n \t- `feedly cloud`_ - access to feedly.com (can be used for personal development)\n \t- `feedly developer`_ - access (can be used for production development)\n \n To apply for a client id and client secret. Then you can go to feedly to obtain a code.\n \n Examples\n --------\n \n .. code-block:: python\n \n \tFEEDLY_REDIRECT_URI = \"http://fabreadly.com/auth_callback\"\n \tFEEDLY_CLIENT_ID=\"client_id\"\n \tFEEDLY_CLIENT_SECRET=\"client_secret\"\n \n \tdef get_feedly_client(token=None):\n \t\tif token:\n \t\t\treturn FeedlyClient(token=token, sandbox=True)\n \t\telse:\n \t\t\treturn FeedlyClient(\n \t\t\t\t\t\t\t\tclient_id=FEEDLY_CLIENT_ID, \n \t\t\t\t\t\t\t\tclient_secret=FEEDLY_CLIENT_SECRET,\n \t\t\t\t\t\t\t\tsandbox=True\n \t\t\t)\n \tdef auth(request): \n \t\tfeedly = get_feedly_client()\n \t\t# Redirect the user to the feedly authorization URL to get user code\n \t\tcode_url = feedly.get_code_url(FEEDLY_REDIRECT_URI) \n \t\treturn redirect(code_url)\n \n \n After getting a code, you may exchange it for an access token and a refresh token.\n \n \n .. code-block:: python\n \n \tdef callback(request):\n \t\tcode=request.GET.get('code','')\n \t\tif not code:\n \t\t\treturn HttpResponse('The authentication is failed.')\n \t\t\n \t\tfeedly = get_feedly_client()\n \t\t\n \t\t#response of access token\n \t\tres_access_token = feedly.get_access_token(FEEDLY_REDIRECT_URI, code)\n \t\t# user id\n \t\tif 'errorCode' in res_access_token.keys():\n \t\t\treturn HttpResponse('The authentication is failed.')\n \t\t\t \n \t\tid = res_access_token['id']\n \t\taccess_token=res_access_token['access_token']\n \n \t# get user's subscription\n \tdef feed(access_token):\n \t\t\t'''get user's subscription'''\n \t\t\tfeedly = get_feedly_client()\n \t\t\tuser_subscriptions = feedly.get_user_subscriptions(access_token)\n \nPlatform: UNKNOWN\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/WarmongeR1/python-feedly", "keywords": "", "license": "The MIT License (MIT)", "maintainer": "", "maintainer_email": "", "name": "python-feedly", "package_url": "https://pypi.org/project/python-feedly/", "platform": "", "project_url": "https://pypi.org/project/python-feedly/", "project_urls": { "Homepage": "https://github.com/WarmongeR1/python-feedly" }, "release_url": "https://pypi.org/project/python-feedly/1.1.0/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "Client for Feedly.com", "version": "1.1.0" }, "last_serial": 4352523, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "f7256337145b9f88b37d07e740c8dc7a", "sha256": "c200049cad8fb588a098dc2a241f3ed6ce13ebf47f160237d533142940895684" }, "downloads": -1, "filename": "python-feedly-0.0.3.tar.gz", "has_sig": false, "md5_digest": "f7256337145b9f88b37d07e740c8dc7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4249, "upload_time": "2015-02-01T01:44:56", "url": "https://files.pythonhosted.org/packages/61/08/662143086286b43a914b86434a3ce409f04e8bb6cb3e5e26949ca3912d38/python-feedly-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "078a6143c60cfaecaa88fcfde43e3f64", "sha256": "bd0e39909f0cddd12b22953aec7dcde23197d043bfa2b3dcb1a9e413967f6ee6" }, "downloads": -1, "filename": "python-feedly-0.0.4.tar.gz", "has_sig": false, "md5_digest": "078a6143c60cfaecaa88fcfde43e3f64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4400, "upload_time": "2015-02-03T15:34:14", "url": "https://files.pythonhosted.org/packages/ac/13/3c9593ddf58690f1a65d945a0d70876c7af2fb7b74921452ff889623ad37/python-feedly-0.0.4.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "f520eed15a0cd49fd374c569985e9e2c", "sha256": "a58009b262b37f5f11d81ff00fe30fbd2d38aca54273adb96214f3e7b28aab62" }, "downloads": -1, "filename": "python-feedly-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f520eed15a0cd49fd374c569985e9e2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4413, "upload_time": "2015-09-11T06:41:03", "url": "https://files.pythonhosted.org/packages/c9/18/5869532815eee3f7c31954468d2bf99d1c0b0ca2acfcc751aea864b3ae56/python-feedly-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "debebb037824a39dd38b6a63e1d23976", "sha256": "b26953f3c2daf9d2856670d89dbea9b4dd796b8f1480aae2d85b7ae5a92c9a69" }, "downloads": -1, "filename": "python_feedly-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "debebb037824a39dd38b6a63e1d23976", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5222, "upload_time": "2018-10-08T15:29:03", "url": "https://files.pythonhosted.org/packages/e4/3b/4b2e5d6f0c2def7ff60c98363a13be6f49a11c2a2f18aed971b95e595c34/python_feedly-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6934ff4fb3bf22a0f5d2f6da9844e5f4", "sha256": "2a39f1594375b32de985c71e47ef913df566b8338468816fd1b92274cbb6f556" }, "downloads": -1, "filename": "python-feedly-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6934ff4fb3bf22a0f5d2f6da9844e5f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5138, "upload_time": "2018-10-08T15:29:04", "url": "https://files.pythonhosted.org/packages/19/5d/c0e4568f145c0e09101be14aba4bf090fb2e97b8955f1e77f57d58278085/python-feedly-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "debebb037824a39dd38b6a63e1d23976", "sha256": "b26953f3c2daf9d2856670d89dbea9b4dd796b8f1480aae2d85b7ae5a92c9a69" }, "downloads": -1, "filename": "python_feedly-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "debebb037824a39dd38b6a63e1d23976", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5222, "upload_time": "2018-10-08T15:29:03", "url": "https://files.pythonhosted.org/packages/e4/3b/4b2e5d6f0c2def7ff60c98363a13be6f49a11c2a2f18aed971b95e595c34/python_feedly-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6934ff4fb3bf22a0f5d2f6da9844e5f4", "sha256": "2a39f1594375b32de985c71e47ef913df566b8338468816fd1b92274cbb6f556" }, "downloads": -1, "filename": "python-feedly-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6934ff4fb3bf22a0f5d2f6da9844e5f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5138, "upload_time": "2018-10-08T15:29:04", "url": "https://files.pythonhosted.org/packages/19/5d/c0e4568f145c0e09101be14aba4bf090fb2e97b8955f1e77f57d58278085/python-feedly-1.1.0.tar.gz" } ] }