
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.