How microsoftgraph/msgraph-sdk-python works
This repository is the Microsoft Graph SDK for Python: an application supplies Azure credentials and scopes, constructs a GraphServiceClient, then uses generated request builders to make Graph API calls. The central runtime layers are the service client and request adapter; the generated API surface covers Graph resources, including documented user requests and the administration routes visible in the tree. The README also documents broader Graph use, batching, and sync/async Azure credentials. Generated implementation details beyond the sampled files are represented at directory level; links without direct evidence are omitted.
Main entry points: graph_service_client.py Graph service client · graph_request_adapter.py Request adapter · user_item_request_builder.py User requests · admin Administration APIs
Components 11
Client entry
- Graph service client
msgraph/graph_service_client.py - Batch requests
msgraph/graph_service_client.py
Auth and transport
- Request adapter
msgraph/graph_request_adapter.py - SDK version
msgraph/_version.py
Graph API surface
- Generated request builders
msgraph/generated - User requests
msgraph/generated/users/item/user_item_request_builder.py - Administration APIs
msgraph/generated/admin
Other components
- Python application
- Azure Identity
- HTTP middleware
- Microsoft Graph
Connections 12
- Python application → Graph service client: creates
README.md - Python application → Azure Identity: supplies credentials
README.md - Graph service client → Request adapter: constructs
msgraph/graph_service_client.py - Graph service client → Azure Identity: configures authentication
msgraph/graph_service_client.py - Request adapter → HTTP middleware: configures
msgraph/graph_request_adapter.py - Request adapter → SDK version: uses version
msgraph/graph_request_adapter.py - Graph service client → User requests: exposes
msgraph/graph_service_client.py - Graph service client → Generated request builders: inherits API
msgraph/graph_service_client.py - Graph service client → Batch requests: provides
msgraph/graph_service_client.py - Python application → User requests: requests user
README.md - User requests → Microsoft Graph: sends API request
- Administration APIs → Microsoft Graph: supports admin calls