Office 365 REST Python Client¶
A Python client for the Microsoft 365 and SharePoint REST APIs — typed models, fluent queries, and hundreds of ready-to-run examples for Teams, To-Do, Bookings, Entra ID, OneDrive, and SharePoint.
What you get¶
- Two clients, one library —
ClientContextfor the SharePoint REST API,GraphClientfor Microsoft Graph. - Fluent queries —
.select(),.filter(),.expand(),.top(), server-driven paging, andget_all()for entire collections. - Deferred execution — chain calls and send them all in one round-trip with
execute_query(). - Ready-to-run examples — every gallery script is a copy-paste starting point, organized by product.
Reading path¶
| Page | What it's for |
|---|---|
| Installation | pip install and requirements |
| Getting Started | pick your client, authenticate, first query |
| Authentication | every auth flow, side by side |
| Products | the example gallery per Microsoft 365 service |
| API Reference | query patterns and power-user features |
New to Microsoft 365 APIs? Start with the Microsoft Graph docs or the SharePoint REST API reference.