{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": ".. image:: https://travis-ci.org/fair-research/native-login.svg?branch=master\n :target: https://travis-ci.org/fair-research/native-login\n\n.. image:: https://coveralls.io/repos/github/fair-research/native-login/badge.svg?branch=master\n :target: https://coveralls.io/github/fair-research/native-login?branch=master\n\n.. image:: https://img.shields.io/pypi/v/fair-research-login.svg\n :target: https://pypi.python.org/pypi/fair-research-login\n\n.. image:: https://img.shields.io/pypi/wheel/fair-research-login.svg\n :target: https://pypi.python.org/pypi/fair-research-login\n\n.. image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg\n :alt: License\n :target: https://opensource.org/licenses/Apache-2.0\n\nFair Research Login\n===================\n\nThis package makes writing Globus scripts and clients a breeze! Easily setup\ntoken management and local server login with a few lines of code. Easily extend\ncomponents as your app grows and requires its own config.\n\nInstallation\n------------\n\nThe only requirements are the Globus SDK. Nothing else is required.\n\nInstall with pip:\n\n.. code-block:: python\n\n pip install fair-research-login\n\n\nGetting Started\n---------------\n\nYou'll need a Client ID from Globus. Follow `these instructions `_\nfrom the Globus Auth Developer Guide. Be sure to check the\n**Native App** box in the registration form. Note the Client ID assigned by Globus. \nYou'll need it in your code, as shown in the example below.\n\nUsage looks like this:\n\n.. code-block:: python\n\n from fair_research_login.client import NativeClient\n\n cli = NativeClient(client_id='', app_name='My App')\n cli.login()\n\n\nThe following example uses the Auth API to fetch the logged-in user's identity data and print it:\n\n.. code-block:: python\n\n from globus_sdk import AuthClient\n\n auth_client = AuthClient(authorizer=cli.get_authorizers()['auth.globus.org'])\n print(auth_client.oauth2_userinfo())\n\nSee the 'examples' directory for extended usage.\n\n\nRefresh Tokens\n--------------\n\nBy default, regular tokens will expire in a couple days. You can request refresh tokens to make\nuser logins last forever. This is handy if you need to do long running tasks or small tasks\nevery day, but you need to be *absolutely certain these tokens are in a secure location*.\n\nRequest refresh tokens with one extra argument to login:\n\n.. code-block:: python\n\n cli.login(refresh_tokens=True)\n\n\nTesting\n-------\n\nInstall the test requirements:\n\n pip install -r test-requirements.txt\n\nRun pytest:\n\n pytest\n\nSee coverage with a couple more arguments:\n\n pytest --cov=fair_research_login tests/\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fair-research/native-login", "keywords": "", "license": "Apache 2.0", "maintainer": "Fair Research", "maintainer_email": "", "name": "fair-research-login", "package_url": "https://pypi.org/project/fair-research-login/", "platform": "", "project_url": "https://pypi.org/project/fair-research-login/", "project_urls": { "Homepage": "https://github.com/fair-research/native-login" }, "release_url": "https://pypi.org/project/fair-research-login/0.1.5/", "requires_dist": [ "globus-sdk (>=1.5.0)" ], "requires_python": "", "summary": "A generalized library for storing native auth tokens", "version": "0.1.5" }, "last_serial": 5792953, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a93a52b7dacfcd4d0ec8205a680423b3", "sha256": "91d07e63a5f920ee1b31e2a43c744184b58f7fd4ec6abfc3f36508d3ed8f0cb7" }, "downloads": -1, "filename": "fair_research_login-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a93a52b7dacfcd4d0ec8205a680423b3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 30165, "upload_time": "2019-02-13T22:16:42", "url": "https://files.pythonhosted.org/packages/19/10/bb8fa1726a5250a7cf8198d2b682a20581ccc4a8bde7db15cf6db725c980/fair_research_login-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "098a89afa1f223211c96356553451127", "sha256": "518d6d101ebf899f409f37c45e8818a9c870deff0d4c6fdf574c5974f7ba2ff0" }, "downloads": -1, "filename": "fair-research-login-0.1.0.tar.gz", "has_sig": false, "md5_digest": "098a89afa1f223211c96356553451127", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25456, "upload_time": "2019-02-13T22:16:44", "url": "https://files.pythonhosted.org/packages/5d/40/a53673ad5ce44c52435fe3719db23b66e45cb54d831a533e6f1dcc3500ff/fair-research-login-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "70180197605c4550bae10ddd4514195b", "sha256": "b5de66a41d94285e9c707fe65a3cf416cf9260b9af71ce4c392aae28e088e4b5" }, "downloads": -1, "filename": "fair-research-login-0.1.1.tar.gz", "has_sig": false, "md5_digest": "70180197605c4550bae10ddd4514195b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25704, "upload_time": "2019-05-17T18:46:21", "url": "https://files.pythonhosted.org/packages/4c/9f/18ac8f12782e431e94482002a78a8f49295632eaa987dc869341bb309a0d/fair-research-login-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c5e7fd361e6fd1b8a2e0b316e7531d85", "sha256": "ee29e281a24e454515a74e0f30cd8183bbb9993320fc38f343544233e12a22e7" }, "downloads": -1, "filename": "fair_research_login-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c5e7fd361e6fd1b8a2e0b316e7531d85", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 30695, "upload_time": "2019-05-24T15:36:44", "url": "https://files.pythonhosted.org/packages/a1/6b/962027cf34b50d2c7774ca9143a5feadcd5c524a7b71b1a16a55a872ed0f/fair_research_login-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c44ed21cd32ca4413ff2e32d31de1f7a", "sha256": "ccb86e5abcfc687ef52c46abd3d88055818c559050ce2ecafda5c81c10ac656c" }, "downloads": -1, "filename": "fair-research-login-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c44ed21cd32ca4413ff2e32d31de1f7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25829, "upload_time": "2019-05-24T15:36:26", "url": "https://files.pythonhosted.org/packages/41/63/b7ec32797efe8dcb76d7baa702f0e31bbc53c5915d97b6b268f51a050017/fair-research-login-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "eba7ec7f01b0dc80b65c866c6bb098ce", "sha256": "c895562f94ecd82fa5e3045434e338100b5d265271a82fff97e6c9dcf32ca023" }, "downloads": -1, "filename": "fair_research_login-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eba7ec7f01b0dc80b65c866c6bb098ce", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 36415, "upload_time": "2019-08-13T23:10:04", "url": "https://files.pythonhosted.org/packages/02/cf/1752d2efccd7d8a3aae69154f4944bd958df0e24af3c79850b8e398533cd/fair_research_login-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd0b927acbeb9a34b791a3bc4d64d5ee", "sha256": "561537a0deb611f0648d963cb86d2d92e65f06c56b5a41ddd9ac915963ead498" }, "downloads": -1, "filename": "fair-research-login-0.1.3.tar.gz", "has_sig": false, "md5_digest": "cd0b927acbeb9a34b791a3bc4d64d5ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30928, "upload_time": "2019-08-13T23:10:06", "url": "https://files.pythonhosted.org/packages/bd/e2/ce0eb497d6327c7991c051f467faec23d061b4021e864b2f33377d615dd2/fair-research-login-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "8b97555f8a7c5b976e604ae7fe8c6a41", "sha256": "7b77ee63c310a0dfe7e0218518aa89a88ff60d6b77e57c80ee2b95acfe0c830e" }, "downloads": -1, "filename": "fair_research_login-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b97555f8a7c5b976e604ae7fe8c6a41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 36414, "upload_time": "2019-09-06T15:46:14", "url": "https://files.pythonhosted.org/packages/02/a0/428754b8f22d23f78c5f4a81cfada84dd309a6b16da2e433e43991f0392e/fair_research_login-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0ebf5f9c6b8fc8dc8634ed03360a66b", "sha256": "7c3ad66a5f48a44f908bb15f1cddf881dc8441561bf478a1d8fba838b1bac536" }, "downloads": -1, "filename": "fair-research-login-0.1.4.tar.gz", "has_sig": false, "md5_digest": "b0ebf5f9c6b8fc8dc8634ed03360a66b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30945, "upload_time": "2019-09-06T15:46:16", "url": "https://files.pythonhosted.org/packages/37/81/cba1c0a535df52abdf4c4ab20faf4266a8db258bf77d2e3e5cf3519a8b37/fair-research-login-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "a81cce9d9b9f9a2e73dc25e9388f8497", "sha256": "f87f55be0dc303c1e0bd4be2b3c00422d429f7ff0a0ba18a85bb33115831c6b7" }, "downloads": -1, "filename": "fair_research_login-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a81cce9d9b9f9a2e73dc25e9388f8497", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 36478, "upload_time": "2019-09-06T15:56:43", "url": "https://files.pythonhosted.org/packages/2b/b8/dc5d5229c1ea866ce0b5046ab48caefca4614e5cbb3a220b57fb7a3f996c/fair_research_login-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "605528020028c0567d2f8a34a4cde3f6", "sha256": "75f61c2b6736e6a049fe541f6d72ef952f91b8901330d52b05e8bff57a976a84" }, "downloads": -1, "filename": "fair-research-login-0.1.5.tar.gz", "has_sig": false, "md5_digest": "605528020028c0567d2f8a34a4cde3f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31010, "upload_time": "2019-09-06T15:56:46", "url": "https://files.pythonhosted.org/packages/9e/c2/d05df7e3e327a7d542d8a79102b82221dc58241954338b522b47105e2de4/fair-research-login-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a81cce9d9b9f9a2e73dc25e9388f8497", "sha256": "f87f55be0dc303c1e0bd4be2b3c00422d429f7ff0a0ba18a85bb33115831c6b7" }, "downloads": -1, "filename": "fair_research_login-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a81cce9d9b9f9a2e73dc25e9388f8497", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 36478, "upload_time": "2019-09-06T15:56:43", "url": "https://files.pythonhosted.org/packages/2b/b8/dc5d5229c1ea866ce0b5046ab48caefca4614e5cbb3a220b57fb7a3f996c/fair_research_login-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "605528020028c0567d2f8a34a4cde3f6", "sha256": "75f61c2b6736e6a049fe541f6d72ef952f91b8901330d52b05e8bff57a976a84" }, "downloads": -1, "filename": "fair-research-login-0.1.5.tar.gz", "has_sig": false, "md5_digest": "605528020028c0567d2f8a34a4cde3f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31010, "upload_time": "2019-09-06T15:56:46", "url": "https://files.pythonhosted.org/packages/9e/c2/d05df7e3e327a7d542d8a79102b82221dc58241954338b522b47105e2de4/fair-research-login-0.1.5.tar.gz" } ] }