
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
MicrosoftGraphAPI
Advanced tools
The GraphAPI class is a Python wrapper for interacting with the Microsoft Graph API, providing simplified access to Microsoft services such as Office 365, OneDrive, and Outlook. It abstracts away the complexity of authentication and API calls, allowing developers to easily perform actions like retrieving user information, accessing email messages, uploading and downloading files, creating folders, and more.
pip install -r requirements.txt.GraphAPI class into your Python project.GraphAPI class with your Azure AD app credentials and user ID.from graphapi import GraphAPI
# Create an instance of the GraphAPI class
api = GraphAPI(appid, client_secret, tenant_id, userid)
# Retrieve user information
api.get_information()
# Access email messages
mail = api.get_mail()
# Upload a file to OneDrive
api.upload_to_onedrive('file.txt', '/path/to/folder', access_token)
# Download a file from OneDrive
api.download_file('file.txt', '/path/to/folder', 'destination.txt')
# Create a folder in OneDrive
api.create_folder('new_folder')
# Search for files
search_results = api.search_for_file('keyword')
# Delete a file or folder
api.delete_file('file.txt', '/path/to/folder')
# Generate a share link for a file
share_link = api.create_share_link('file.txt', '/path/to/folder')
# Download Filename from OneDrive
download_by_filename('foo.txt')
Contributions are welcome!
This project is licensed under the MIT License.
FAQs
A Python package to interact with the Microsoft Graph API
We found that MicrosoftGraphAPI 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.

Security News
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.