Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
onedrive-sharepoint-python-sdk
Advanced tools
A Python SDK for accessing files in OneDrive & SharePoint using the Microsoft Graph API
A Python SDK for accessing files in OneDrive & SharePoint using the Microsoft Graph API.
Functionality includes:
Requires Python 3.7+
pip install onedrive-sharepoint-python-sdk
See the examples folder for more.
from msdrive import OneDrive
drive = OneDrive("access_token_here")
drive.download_item(item_path="/Documents/my-data.csv", file_path="my-data.csv")
drive.upload_item(item_path="/Documents/new-or-existing-file.csv", file_path="new-or-existing-file.csv")
from msdrive import SharePoint
drive = SharePoint("access_token_here")
drive.download_item(drive_id="b!...", item_path="/General/shared-data.csv", file_path="shared-data.csv")
drive.upload_item(drive_id="b!...", item_path="/General/new-or-existing-file.csv", file_path="new-or-existing-file.csv")
The SDK does not handle authentication, it presumes you already have a Microsoft access token which you pass into the constructor (see auth example).
Use a library like MSAL or Azure Identity to handle this.
pip install -e .[tests]
pytest # run unit tests
Bump the version in pyproject.toml
and src/msdrive/__init__.py
and then run the Upload Python Package
pipeline.
FAQs
A Python SDK for accessing files in OneDrive & SharePoint using the Microsoft Graph API
We found that onedrive-sharepoint-python-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.