{ "info": { "author": "Chris Liu", "author_email": "cliu@coursera.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2.7" ], "description": "courseraoauth2client\n====================\n\n.. image:: https://travis-ci.org/coursera/courseraoauth2client.svg\n :target: https://travis-ci.org/coursera/courseraoauth2client\n\nThis project is a library consisting of a command line interface and a client\nfor interacting with Coursera's OAuth2 authorized APIs.\n\nInstallation\n------------\n\nTo install this sdk, simply execute::\n\n sudo pip install courseraoauth2client\n\n`pip `_ is a python package manager.\nIf you do not have ``pip`` installed on your machine, please follow the\ninstallation instructions for your platform found at:\nhttps://pip.pypa.io/en/latest/installing.html#install-or-upgrade-pip\n\nSetup\n-----\n\nBefore using Coursera's OAuth2 APIs, be sure you know your client id,\nclient secret, and scopes you want for for your application. You may create\nan application at https://accounts.coursera.org/console. When creating the\napplication, set the\n``Redirect URI`` to be ``http://localhost:9876``.\n\nNext, authorize your application by running ``courseraoauth2client config authorize --app APP``\nwhere ``APP`` is a disambiguating identifier to be referred to later when making Coursera API calls.\n\n\nCommand Line Interface\n----------------------\n\nThe project includes a command line tool. Simply run::\n\n courseraoauth2client -h\n\nfor a complete list of features, flags, and documentation.\n\n\nconfig\n^^^^^^\n\nConfigures the Coursera OAuth2 client library.\n\nExamples:\n - ``courseraoauth2client config authorize --app APP``\n\n Configures the tool to go through the `authorization secret `_ flow for application ``APP``.\n - ``courseraoauth2client config check-auth --app APP``\n\n Checks whether the current instance can authorize against Coursera's API server for application ``APP``\n\nUsage\n-----------\n\n::\n\n import requests\n from courseraoauth2client import oauth2\n ...\n app = 'my_application_name'\n url = 'https://api.coursera.org/api/externalBasicProfiles.v1?q=me&fields=name'\n auth = oauth2.build_oauth2(app=app).build_authorizer()\n response = requests.get(url, auth=auth)\n print response.json()\n\nIf ``my_application_name`` was successfully configured, you will be able to\nsuccessfully make a request. Otherwise, an exception will be thrown telling you\nto set up your application for API access.\n\nBugs / Issues / Feature Requests\n--------------------------------\n\nPlease us the github issue tracker to document any bugs or other issues you\nencounter while using this tool.\n\n\nDeveloping / Contributing\n-------------------------\n\nWe recommend developing ``courseraoauth2client`` within a python\n`virtualenv `_.\nTo get your environment set up properly, do the following::\n\n virtualenv venv\n source venv/bin/activate\n python setup.py develop\n pip install -r test_requirements.txt\n\nTests\n^^^^^\n\nTo run tests, simply run: ``nosetests``, or ``tox``.\n\nCode Style\n^^^^^^^^^^\n\nCode should conform to pep8 style requirements. To check, simply run::\n\n pep8 courseraoauth2client tests", "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/coursera/courseraoauth2client", "keywords": "coursera sdk cli tool oauth2", "license": "Apache", "maintainer": null, "maintainer_email": null, "name": "courseraoauth2client", "package_url": "https://pypi.org/project/courseraoauth2client/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/courseraoauth2client/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/coursera/courseraoauth2client" }, "release_url": "https://pypi.org/project/courseraoauth2client/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "An OAuth2 client for the Coursera App Platform.", "version": "0.0.1" }, "last_serial": 2270569, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "faa185b6a790746eace45cdf021f9481", "sha256": "32fa1028702f37e94364cb6117b10e79227df062d5521d8d3812110d381ae7dd" }, "downloads": -1, "filename": "courseraoauth2client-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "faa185b6a790746eace45cdf021f9481", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 17009, "upload_time": "2016-08-09T05:24:26", "url": "https://files.pythonhosted.org/packages/5e/76/de1647ad2fcff53753c4080836e159ee83ec170dd860c9dc6de4349fe61f/courseraoauth2client-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5fec52ed1be54cb7f1f1d5c2afdaf86a", "sha256": "09f33f75c762e752c3e3b1a99c714538250975d5a175297d0a7c61fffd5f18cd" }, "downloads": -1, "filename": "courseraoauth2client-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5fec52ed1be54cb7f1f1d5c2afdaf86a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11016, "upload_time": "2016-08-09T05:24:20", "url": "https://files.pythonhosted.org/packages/bb/a1/c36f24c66888a49af1108a405626695a54e60c2aa2f521cf48db2c970e72/courseraoauth2client-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "faa185b6a790746eace45cdf021f9481", "sha256": "32fa1028702f37e94364cb6117b10e79227df062d5521d8d3812110d381ae7dd" }, "downloads": -1, "filename": "courseraoauth2client-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "faa185b6a790746eace45cdf021f9481", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 17009, "upload_time": "2016-08-09T05:24:26", "url": "https://files.pythonhosted.org/packages/5e/76/de1647ad2fcff53753c4080836e159ee83ec170dd860c9dc6de4349fe61f/courseraoauth2client-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5fec52ed1be54cb7f1f1d5c2afdaf86a", "sha256": "09f33f75c762e752c3e3b1a99c714538250975d5a175297d0a7c61fffd5f18cd" }, "downloads": -1, "filename": "courseraoauth2client-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5fec52ed1be54cb7f1f1d5c2afdaf86a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11016, "upload_time": "2016-08-09T05:24:20", "url": "https://files.pythonhosted.org/packages/bb/a1/c36f24c66888a49af1108a405626695a54e60c2aa2f521cf48db2c970e72/courseraoauth2client-0.0.1.tar.gz" } ] }