# O365/python-o365

A simple python library to interact with Microsoft Graph and Office 365 API

Repository: https://github.com/O365/python-o365
Canonical: https://ross.abutalabs.com/products/python-o365
Language: Python
License: Apache-2.0
License Family: permissive
Topics: python, microsoft-graph-api, onedrive, mailbox, office-365-rest-api, microsoft-api, sharepoint, calendar, outlook, planner, excel, email, graph, oauth-authentication, microsoft, addressbook, calendars, oauth, microsoft-teams
Last push: 2026-03-10T13:15:31+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 71, release rhythm 8, longevity 100
- inputs: {"age_days": 4214, "days_push": 176, "days_rel": 568, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1923, forks 442 (observed 2026-08-28T04:05:55.359033+00:00)

## What it is
A Python library providing a Pythonic wrapper around the Microsoft Graph and Office 365 REST APIs. It supports email, calendar, contacts, OneDrive, SharePoint, Teams, and Planner with full OAuth handling and OData query building.

## Use cases
- send emails programmatically via outlook
- read and manage office 365 calendar events
- upload and download files from onedrive
- access sharepoint documents from python
- automate microsoft teams and mailbox tasks
- query microsoft graph api with oauth

## When to choose
- you need to interact with Microsoft 365 services from Python
- you want automatic OAuth token refresh and timezone handling
- you need pagination and OData filtering against Graph API

## When to avoid
- you use Google Workspace or other non-Microsoft cloud suites
- you need raw low-level control over Graph API calls beyond the abstraction
- your project is not in Python

## Facets
- artifact type: library
- maturity: active
- function: http-client, email, auth, sdk
- domain: apis, developer-tools, email
- platform: python, cross-platform
- tags: microsoft-graph, office-365, onedrive, sharepoint, outlook, oauth, api-wrapper, automation

## Member repositories
- O365/python-o365 (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:55.359033+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:09:37.308615+00:00, confidence not recorded.
  - readme: https://github.com/O365/python-o365 (fetched 2026-08-28T04:05:55.359033+00:00, sha be3f85602039)
- Data as of 2026-08-30T08:39:29.467469+00:00.
