skillfed

msgraph-beta-sdk

The Microsoft Graph Beta Python SDK

msgraph-beta-sdk v1.62.0 181.8K downloads/30d#10,115 on PyPI43
License unclear Active released

What it is and what it does

msgraph-beta-sdk is a Python client library for the Microsoft Graph Beta API, Microsoft's unified endpoint for accessing data and intelligence across cloud services. It is generated from OpenAPI specifications and provides async-first bindings to query users, mail, calendar, files, and other resources. The library wraps authentication (via azure-identity), serialization (JSON, text, form, multipart), and HTTP transport (via msgraph_core) into a fluent, type-aware API surface that mirrors the REST endpoint structure.

The SDK is designed for modern async Python environments and requires Python 3.10 or later. It handles credential management through azure-identity, supports both delegated and application authentication flows, and includes built-in error handling via APIError exceptions. Installation is straightforward but can be slow due to the package size; long file paths may require OS-level configuration on Windows.

Use it for:

  • Build applications that read or modify user profiles, mail, and calendar data from cloud tenants.
  • Automate administrative tasks such as user provisioning or group management via the Graph API.
  • Integrate cloud data into Python analytics or reporting pipelines.
  • Develop multi-tenant applications that delegate permissions to end users for accessing their own cloud data.
  • Query organizational insights, compliance data, or security signals from cloud services.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides async-first Python bindings to the Microsoft Graph Beta API, allowing applications to interact with Microsoft cloud services through a generated client library.

Yes, if you need to integrate Microsoft Graph Beta API into a Python application. The package is actively maintained, has low install friction, supports current Python versions, and provides a well-structured async interface. The main caveats are that it is large (slow initial install), the license treatment is unclear in the fact sheet, and the beta API itself may introduce breaking changes—verify licensing terms and API stability requirements before committing to production use.

Install

msgraph-beta-sdk on PyPI

pip

pip install msgraph-beta-sdk

uv

uv add msgraph-beta-sdk

poetry

poetry add msgraph-beta-sdk

Installing msgraph-beta-sdk

Before you install

Low friction: pure Python wheel with no compiled dependencies. Actively maintained with a release 9 days ago. Supports current Python versions (3.10–3.14). Note that the package is large and initial installation may take several minutes.

License in practice

License treatment is unclear—the fact sheet does not specify SPDX or raw license metadata, though the description excerpt mentions MIT licensing. Verify the actual license terms before use.

Quickstart

pip install msgraph-beta-sdk

from azure.identity.aio import ClientSecretCredential
from msgraph_beta import GraphServiceClient

credential = ClientSecretCredential('tenant_id', 'client_id', 'client_secret')
client = GraphServiceClient(credential, scopes=['https://graph.microsoft.com/.default'])
user = await client.users.by_user_id('userID').get()

Requires Python 3.10 or later. Async-first design expects use within an async context (asyncio, anyio, or trio). Azure identity credentials must be configured with valid tenant, client, and secret values.

Verify before relying

  • Whether license_treatment 'unclear' reflects a genuine ambiguity or a metadata gap—the description mentions MIT but the fact sheet does not confirm it.
  • Performance characteristics and typical response latencies for common Graph API operations.
  • Compatibility guarantees between beta SDK versions and breaking changes in the underlying Microsoft Graph Beta API.
  • Scope of cloud services and data types accessible through the beta API endpoints.

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 6 — azure-identity, microsoft-kiota-serialization-json, microsoft-kiota-serialization-text, microsoft-kiota-serialization-form, microsoft-kiota-serialization-multipart, msgraph_core
Maintenance actively maintained — 9 days since the last release
Last repo commit
First released
Downloads 181,763/month — #10,115 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: msgraph_beta_sdk-1.62.0-py3-none-any.whl

Keywords: msgraph, openAPI, Microsoft, Graph, beta

Development Status :: 5 - Production/StableProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

microsoft graph api pythonazure graph sdk pythonmsgraph beta sdkasync microsoft graph clientcloud api python client
microsoft-graphasync-firstcloud-api

More WWW/HTTP packages