Python SDK for Microsoft Graph is available in preview

Microsoft has announced that the Microsoft Graph Python SDK is now available for public preview. For the record, Microsoft Graph is, in Microsoft’s terms, the gateway to data and intelligence in Microsoft 365. Microsoft Graph provides a unified programmability model that you can use to access the massive amount of data in Microsoft 365, Windows, and Enterprise Mobility + Security

The Python SDK for Microsoft Graph provides access to Microsoft Graph beta and v1 endpoints. The SDK does not associate each endpoint and method with a unique function, but instead presents a framework to construct any query using method chaining, providing a clean flow that works seamlessly with Python. According to Microsoft, this fluent model helps reduce errors by displaying only methods that correspond to operations on a resource, aided by the IDE’s auto-completion, allowing the developer to confidently enter code as it runs. The SDK also uses type annotations during the development process.

The SDK features an authentication provider that automatically refreshes access tokens, as well as a built-in retry handler that understands response status codes and automatically waits the recommended time. The SDK also provides an asynchronous experience, allowing the application to work on multiple requests at the same time and perform other operations while waiting for the response, thus improving the speed and efficiency of the application. HTTP2 is supported.

The Python SDK for Microsoft Graph is accessible from the Microsoft Graph SDK documentation home page, ici.

Leave a Replay