{ "info": { "author": "Vadim Gremyachev", "author_email": "vvgrem@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries" ], "description": "# About\nOffice 365 & Microsoft Graph Library for Python\n\nThe list of supported APIs:\n\n- [SharePoint REST API](https://msdn.microsoft.com/en-us/library/office/jj860569.aspx) (_supported_ versions: [SharePoint 2013](https://msdn.microsoft.com/library/office/jj860569(v=office.15).aspx), SharePoint 2016, SharePoint Online and OneDrive for Business)\n- [Outlook REST API](https://msdn.microsoft.com/en-us/office/office365/api/use-outlook-rest-api#DefineOutlookRESTAPI) \n - [Outlook Contacts REST API](https://msdn.microsoft.com/en-us/office/office365/api/contacts-rest-operations)\n - [Outlook Calendar REST API](https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations)\n - [Outlook Mail REST API](https://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations)\n- [OneDrive API](https://docs.microsoft.com/en-us/graph/api/resources/onedrive?view=graph-rest-1.0) \n\n\n## Status\n\n[![Build Status](https://travis-ci.org/vgrem/Office365-REST-Python-Client.svg?branch=master)](https://travis-ci.org/vgrem/Office365-REST-Python-Client)\n[![PyPI](https://img.shields.io/pypi/v/Office365-REST-Python-Client.svg)](https://pypi.python.org/pypi/Office365-REST-Python-Client)\n\n# Installation\n\nUse pip:\n\n```\npip install Office365-REST-Python-Client\n```\n\n\n# Usage\n \n## Working with SharePoint resources \n\nThere are **two approaches** available to perform REST queries:\n\n1) via `ClientRequest class` where you need to construct REST queries by specifying endpoint url, headers if required and payload (aka low level approach)\n\nThe first example demonstrates how to read Web resource:\n\n```\nimport json\n\nfrom office365.runtime.auth.authentication_context import AuthenticationContext\nfrom office365.runtime.client_request import ClientRequest\nfrom office365.runtime.utilities.request_options import RequestOptions\n\nctx_auth = AuthenticationContext(url)\nif ctx_auth.acquire_token_for_user(username, password):\n request = ClientRequest(ctx_auth)\n options = RequestOptions(\"{0}/_api/web/\".format(url))\n options.set_header('Accept', 'application/json')\n options.set_header('Content-Type', 'application/json')\n data = request.execute_request_direct(options)\n s = json.loads(data.content)\n web_title = s['Title']\n print \"Web title: \" + web_title\nelse:\n print ctx_auth.get_last_error()\n```\n\n2) via `ClientContext class` where you target client object resources such as Web, ListItem and etc.\n \n\n```\nfrom office365.runtime.auth.authentication_context import AuthenticationContext\nfrom office365.sharepoint.client_context import ClientContext\n\nctx_auth = AuthenticationContext(url)\nif ctx_auth.acquire_token_for_user(username, password):\n ctx = ClientContext(url, ctx_auth)\n web = ctx.web\n ctx.load(web)\n ctx.execute_query()\n print \"Web title: {0}\".format(web.properties['Title'])\n\nelse:\n print ctx_auth.get_last_error()\n```\n\n\n# Python Version\nPython `2.7 & 3.4\u20133.6` are supported.\n\n\n# Third Party Libraries and Dependencies\nThe following libraries will be installed when you install the client library:\n* [requests](https://github.com/kennethreitz/requests)\n* [adal](https://github.com/AzureAD/azure-activedirectory-library-for-python)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vgrem/Office365-REST-Python-Client", "keywords": "git", "license": "MIT", "maintainer": "Konrad G\u0105dek", "maintainer_email": "kgadek@gmail.com", "name": "Office365-REST-Python-Client", "package_url": "https://pypi.org/project/Office365-REST-Python-Client/", "platform": "", "project_url": "https://pypi.org/project/Office365-REST-Python-Client/", "project_urls": { "Homepage": "https://github.com/vgrem/Office365-REST-Python-Client" }, "release_url": "https://pypi.org/project/Office365-REST-Python-Client/2.1.4/", "requires_dist": null, "requires_python": "", "summary": "Office 365 Library for Python", "version": "2.1.4" }, "last_serial": 5911433, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "2717bc83b3ff20d639539ffb5a9511f2", "sha256": "d4a9ee613a4fe29160162236265c62561468b88e454149c5222ff4c3ccba3037" }, "downloads": -1, "filename": "Office365-REST-Python-Client-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2717bc83b3ff20d639539ffb5a9511f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22501, "upload_time": "2017-02-14T15:56:53", "url": "https://files.pythonhosted.org/packages/44/3d/4ed6d68fe383055166e2a14d62d82895f8ff5c470a99499785709d6714d9/Office365-REST-Python-Client-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "eae62a3f254e50d96337626a39f65a86", "sha256": "f860189f4e7261fee978610064f2f109899c107dc93eb0eedf9fd6b7779e5645" }, "downloads": -1, "filename": "Office365-REST-Python-Client-1.0.1.tar.gz", "has_sig": false, "md5_digest": "eae62a3f254e50d96337626a39f65a86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23155, "upload_time": "2017-02-17T15:44:54", "url": "https://files.pythonhosted.org/packages/af/4c/9b925825828a7d856c8475ad319d18410c3f504a9a0444dd0533dd23e6d9/Office365-REST-Python-Client-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "1f06a45d7860c349c4d0abdaf5237177", "sha256": "4fd0db3321fab2b3e8584880485ba38e039ed940a52664825d965cbed2f49789" }, "downloads": -1, "filename": "Office365-REST-Python-Client-1.1.0.tar.gz", "has_sig": false, "md5_digest": "1f06a45d7860c349c4d0abdaf5237177", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23855, "upload_time": "2017-02-28T16:38:56", "url": "https://files.pythonhosted.org/packages/bc/31/16bba484a58c745e01e5d51b2bd48a3b90291991ee99162f954bb653c295/Office365-REST-Python-Client-1.1.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "cad300b9a13eafa6b5125430d8f98836", "sha256": "583685919eb86ef57dcf42005a038ab894b6200eae223bd2d4c2b7b6e6019e83" }, "downloads": -1, "filename": "Office365-REST-Python-Client-2.0.0.tar.gz", "has_sig": false, "md5_digest": "cad300b9a13eafa6b5125430d8f98836", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23928, "upload_time": "2017-07-17T12:26:13", "url": "https://files.pythonhosted.org/packages/6f/78/d73f25e299d0a6cfd2300eb98a8ada4bdf983be68c62614f2185b966f142/Office365-REST-Python-Client-2.0.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "a99fb9b1d883d0ff50f1473e0f20fb87", "sha256": "208244efed61a44a36add15e5dba7a7b65a96807e062de45d2c5f523e0dcd6bd" }, "downloads": -1, "filename": "Office365_REST_Python_Client-2.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a99fb9b1d883d0ff50f1473e0f20fb87", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 67965, "upload_time": "2019-03-21T02:19:48", "url": "https://files.pythonhosted.org/packages/ab/47/cb67bc20097c11fccd268e0df0050fad294aa942baad346d61189d0e0b9f/Office365_REST_Python_Client-2.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a7a52a167b26049416d2fbc52c4d45bb", "sha256": "3c294f4e96297dc5d08ae0a58edaf038562109e7276e1e62c19cc37842ef9a71" }, "downloads": -1, "filename": "Office365-REST-Python-Client-2.1.1.tar.gz", "has_sig": false, "md5_digest": "a7a52a167b26049416d2fbc52c4d45bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29737, "upload_time": "2019-03-21T02:19:50", "url": "https://files.pythonhosted.org/packages/23/2f/81bbbe8f6510c3c754568ec84167058cbb3dc45dea8e0895ae21ddaa465d/Office365-REST-Python-Client-2.1.1.tar.gz" } ], "2.1.2": [ { "comment_text": "", "digests": { "md5": "d91e303452ab3f387555e532d1b5c7b6", "sha256": "470eb5d22ad51e6f0881c3af5e611c98eee48e854059ada4880a60c02d86e776" }, "downloads": -1, "filename": "Office365-REST-Python-Client-2.1.2.tar.gz", "has_sig": false, "md5_digest": "d91e303452ab3f387555e532d1b5c7b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32904, "upload_time": "2019-06-09T22:02:16", "url": "https://files.pythonhosted.org/packages/f8/87/d64dd0fdac5fddf37b20df50bbc903ad0685a1275014de8ae93f1d784ae7/Office365-REST-Python-Client-2.1.2.tar.gz" } ], "2.1.3": [ { "comment_text": "", "digests": { "md5": "8afda8bfdb9a4b76c1c906825f68c4a8", "sha256": "136c1c2bb0ea71bb189489bfb380375fa2edb7dd829c6c8fef0d7c4a6d45847c" }, "downloads": -1, "filename": "Office365-REST-Python-Client-2.1.3.tar.gz", "has_sig": false, "md5_digest": "8afda8bfdb9a4b76c1c906825f68c4a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34488, "upload_time": "2019-07-08T21:18:03", "url": "https://files.pythonhosted.org/packages/04/fa/47595c067b6d95ffa52b0c81207267219d5033e58f77d03ccb7a546fa81a/Office365-REST-Python-Client-2.1.3.tar.gz" } ], "2.1.4": [ { "comment_text": "", "digests": { "md5": "0aabf94427622eb74c64bceb9ab2adeb", "sha256": "68e7357738250bbbe29f2f57d9f2186e45c0cfe131326c3ed3605039b8e03769" }, "downloads": -1, "filename": "Office365-REST-Python-Client-2.1.4.tar.gz", "has_sig": false, "md5_digest": "0aabf94427622eb74c64bceb9ab2adeb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37199, "upload_time": "2019-10-01T09:57:54", "url": "https://files.pythonhosted.org/packages/b5/fe/ec9ccd194ab42f9c15a0ce5586f5dce8387c85522913ab01cf4b09c238ca/Office365-REST-Python-Client-2.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0aabf94427622eb74c64bceb9ab2adeb", "sha256": "68e7357738250bbbe29f2f57d9f2186e45c0cfe131326c3ed3605039b8e03769" }, "downloads": -1, "filename": "Office365-REST-Python-Client-2.1.4.tar.gz", "has_sig": false, "md5_digest": "0aabf94427622eb74c64bceb9ab2adeb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37199, "upload_time": "2019-10-01T09:57:54", "url": "https://files.pythonhosted.org/packages/b5/fe/ec9ccd194ab42f9c15a0ce5586f5dce8387c85522913ab01cf4b09c238ca/Office365-REST-Python-Client-2.1.4.tar.gz" } ] }