msgraphfs is a Python library that provides a filesystem-like interface to Microsoft Graph drives (SharePoint, OneDrive), built on top of `fsspec`. It enables seamless interaction with Microsoft 365 services, treating remote files and folders as if they were local. The current version, 0.4, introduces URL-based filesystem paths and enhanced multi-site access. The library appears to follow a release cadence driven by feature enhancements and bug fixes, with recent releases addressing usability and pagination.
pip install msgraphfsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize `MSGraphFileSystem` using Azure AD application credentials (client ID, tenant ID, client secret) provided via environment variables. It then performs basic filesystem operations like listing directories, creating a new directory, writing a file, and reading a file. An Azure AD application with appropriate permissions (e.g., `Sites.ReadWrite.All`) and correct site/drive names are crucial for successful execution.
Verify Azure AD app registration permissions and consent in the Azure Portal. Double-check `client_id`, `tenant_id`, and `client_secret`. Refer to Microsoft Graph authentication documentation for detailed setup.
Standardize on either `MSGRAPHFS_*` or `AZURE_*` prefixes for your environment variables to avoid ambiguity. Prioritize `MSGRAPHFS_*` if there's a conflict, as they are specific to the library.
Upgrade to `msgraphfs` version 0.3 or later to ensure all items are returned when listing large folders.
Review the documentation for version 0.4 regarding URL-based paths and multi-site access. Adapt your code to use the new protocol prefixes (e.g., `msgd://site/drive/path`) for enhanced flexibility and multi-site support.
No dependency data recorded yet.