Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vgrem/office365-rest-python-client
Microsoft 365 & Microsoft Graph Library for Python
https://github.com/vgrem/office365-rest-python-client
hacktoberfest microsoft-graph microsoft-teams microsoft365 office365 onedrive onenote outlook planner python sdk-python sharepoint teams
Last synced: 2 days ago
JSON representation
Microsoft 365 & Microsoft Graph Library for Python
- Host: GitHub
- URL: https://github.com/vgrem/office365-rest-python-client
- Owner: vgrem
- License: mit
- Created: 2016-02-08T15:24:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T17:42:49.000Z (4 months ago)
- Last Synced: 2024-05-21T18:56:50.489Z (4 months ago)
- Topics: hacktoberfest, microsoft-graph, microsoft-teams, microsoft365, office365, onedrive, onenote, outlook, planner, python, sdk-python, sharepoint, teams
- Language: Python
- Homepage:
- Size: 17.7 MB
- Stars: 1,195
- Watchers: 35
- Forks: 316
- Open Issues: 228
-
Metadata Files:
- Readme: README-dev.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Installing to virtualenv
In the pipenv/poetry era one would already forget these commands...```bash
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
$ pip install -r requirements-dev.txt
```# Running tests
Most of the tests are end-to-end - operations are invoked against actual tenant (not mocked).
So one has to configure his/her office/sharepoint credentials.
To do so, create a file ```.env``` like this (replace the bracketed values by your values):```
export office365_python_sdk_securevars='{username};{password};{client_id};{client_password}'
```This file is in .gitignore, so it will never be committed.
```bash
$ . .env # source it to export the variable
$ pytest ... # run the test(s) you need...
```#### Configure Tenant
Roles:
- Global reader
- Groups admin
- Search admin
- SharePoint admin
- Teams service admin
- Users admin