Commit 8a4f9af
committed
Add comprehensive msgraphfs enhancements
This commit introduces major enhancements to make msgraphfs more intuitive
to use.
- Support URL-based filesystem paths (msgd://site/drive/path)
- Enable single filesystem instance to access multiple SharePoint sites
- Add automatic site and drive discovery from URLs
- Support msgd://, sharepoint://, and onedrive:// protocols
- Add AZURE_* environment variable fallback support
- Implement robust OAuth2 token management with automatic refresh
- Support both client credentials and delegated authentication flows
- Implement lazy HTTP client initialization to prevent fork issues
- Add process ID tracking to detect forks and reinitialize clients
- Make filesystem safe for multi-process environments like Airflow
- Resolve threading and subprocess compatibility problems
- Add comprehensive file permissions API (get_permissions method)
- Extended metadata with SharePoint-specific fields (weburl, fields)
- Include permission analysis with user, group, and link breakdown
- Support expand parameters for additional metadata retrieval
- Replace content.py with proper pytest fixtures in conftest.py
- Add comprehensive live credential testing capabilities
- Implement environment variable configuration for test credentials
- Add OAuth2 integration tests and URL parsing validation
- Extensive documentation updates with usage examples
- Multiple protocol registration for fsspec integration
- Improved error messages and debugging information
- Add support for Python 3.10+
The changes maintain full backward compatibility while adding:
- Session-scoped pytest fixtures for better test performance
- Lazy initialization patterns for resource management
- Comprehensive URL parsing for flexible path specifications
- Multi-tenancy support with filesystem instance caching1 parent 467dec8 commit 8a4f9af
File tree
14 files changed
+3700
-292
lines changed- .github/workflows
- src/msgraphfs
- tests
14 files changed
+3700
-292
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
0 commit comments