How redbyte1337/graphspy works
Project type and purpose
• This is a full-stack Python web application (GraphSpy) built on Flask. It provides a browser-based GUI to explore and manipulate Microsoft 365 resources via the Microsoft Graph API, handling OAuth2 device-code flows, token storage, and a variety of Graph operations (OneDrive, SharePoint, Outlook, Teams, etc.).
File structure
• Top-level:
• GraphSpy/ – the Python package
– GraphSpy.py – main Flask application entry point
– static/ – CSS and JS assets (style.css, functions.js, theme.js)
– templates/ – Jinja2 HTML templates for each feature page
– __init__.py, version.txt
• setup.py, requirements.txt – packaging & dependencies
• README.md, LICENSE, MANIFEST.in
• There is no separate “frontend” folder; the Flask app serves both backend and frontend.
• No microservices: monolithic server that handles routing, business logic, data persistence, and external API calls.
README for additional insights
• Confirms Flask server runs on localhost:5000 by default.
• Uses multiple database back-ends (likely SQLite via SQLAlchemy or similar).
• Provides features organized by modules: tokens, device codes, MFA, files/SharePoint, Outlook, Teams, search, custom requests, Entra ID.
• JavaScript is used for client-side interactivity (e.g., token side-bar, dynamic tables).