
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
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
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.