{ "info": { "author": "Scott Philip", "author_email": "sp@scottphilip.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": ".. image:: https://travis-ci.org/scottphilip/google-token.svg?branch=master\n :target: https://travis-ci.org/scottphilip/google-token\n\nGoogle Token\n============\n\nPython Package allowing `Google\nAccount `__ Authorization Tokens to be\nissued when user is not in attendance.\n\nInstallation Instructions\n-------------------------\n\n::\n\n pip install GoogleToken\n\nProperties\n----------\n\nWhen manually logging into a Google Account secured web application, the\ninitial URL will be in the format;\n\n::\n\n https://accounts.google.com/o/oauth2/v2/auth?response_type=token&client_id=0000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com&redirect_uri=https://www.website.com/google/callback&scope=https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile\n\n+-----------+----------------------------------------------------------------+\n| Property | Example |\n+===========+================================================================+\n| Client Id | 0000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleuser |\n| | content.com |\n+-----------+----------------------------------------------------------------+\n| Redirect | https://www.website.com/google/callback |\n| Uri | |\n+-----------+----------------------------------------------------------------+\n| Scope | https://www.googleapis.com/auth/userinfo.email |\n| | https://www.googleapis.com/auth/userinfo.profile |\n+-----------+----------------------------------------------------------------+\n\nUsage Instructions\n------------------\n\nFirst time login will create a Cookies file which stores the issued\ntokens which will subsequently be reused. It is recommended not to the\npassword or the OTP secret in configuration. Once the cookies file is\ncreated the credentials are not required.\n\n.. code:: python\n\n from GoogleToken import GoogleTokenGenerator, GoogleTokenParameters\n parameters = GoogleTokenParameters(oauth_client_id=\"0000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com\",\n oauth_redirect_uri=\"https://www.website.com/google/callback\",\n oauth_scope=\"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile\",\n account_email=\"user@gmail.com\",\n account_password=\"password\",\n account_otp_secret=\"secret\")\n generator = GoogleTokenGenerator(parameters)\n token = generator.generate()\n print(token)\n\nOnce the cookies file is created, the credentials can be omitted.\n\n.. code:: python\n\n from GoogleToken import get_google_token\n token, expiry = get_google_token(account_email=\"account@gmail.com\",\n account_password=\"password\",\n account_otp_secret=\"secret\",\n oauth_client_id=\"0000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com\",\n oauth_redirect_uri=\"https://www.website.com/google/callback\",\n oauth_scope=\"https://www.googleapis.com/auth/userinfo.profile\")\n\n\nDependencies\n------------\n\n`Selenium `__\n\n`Pyotp `__\n\nCredits\n-------\n\nScott Philip\n\nBerlin, Germany\n\nLicence\n-------\n\nGNU General Public License (Version 3, 29 June 2007)\n\nCallerLookup Copyright \u00a9 2017 Scott Philip", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/scottphilip/google-token", "keywords": "Google Account,Access Token,oauth2,Automation", "license": "GNU (v3) License", "maintainer": "", "maintainer_email": "", "name": "GoogleToken", "package_url": "https://pypi.org/project/GoogleToken/", "platform": "", "project_url": "https://pypi.org/project/GoogleToken/", "project_urls": { "Homepage": "http://github.com/scottphilip/google-token" }, "release_url": "https://pypi.org/project/GoogleToken/0.7.6/", "requires_dist": null, "requires_python": "", "summary": "Google User Account login automation", "version": "0.7.6" }, "last_serial": 3066258, "releases": { "0.7.6": [ { "comment_text": "", "digests": { "md5": "c7500dc26b81b4d69333ddbbe8d434d1", "sha256": "54154b3b0faf08d02f76e1f3c3a4edb746769e3a8c3adefd6b63ccf1fc95d6aa" }, "downloads": -1, "filename": "GoogleToken-0.7.6.tar.gz", "has_sig": false, "md5_digest": "c7500dc26b81b4d69333ddbbe8d434d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22406, "upload_time": "2017-08-02T04:19:40", "url": "https://files.pythonhosted.org/packages/b4/39/f0df9a76529f30ee09f5af66cdef6e41d6b517751558cc07e38e6595eb64/GoogleToken-0.7.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c7500dc26b81b4d69333ddbbe8d434d1", "sha256": "54154b3b0faf08d02f76e1f3c3a4edb746769e3a8c3adefd6b63ccf1fc95d6aa" }, "downloads": -1, "filename": "GoogleToken-0.7.6.tar.gz", "has_sig": false, "md5_digest": "c7500dc26b81b4d69333ddbbe8d434d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22406, "upload_time": "2017-08-02T04:19:40", "url": "https://files.pythonhosted.org/packages/b4/39/f0df9a76529f30ee09f5af66cdef6e41d6b517751558cc07e38e6595eb64/GoogleToken-0.7.6.tar.gz" } ] }