ParseBox is a Web application that allows users to log in with their Google account and parse the most recent emails from their Gmail inbox using the Gmail API. Built using GCP Console, FastAPI, Google OAuth2.
- Google OAuth2 login
- Access Gmail inbox
- Parse and display sender, subject, and date of recent emails
- Logout functionality to clear session
app/
βββ auth.py # Handles Google OAuth login & session
βββ gmail_reader.py # Gmail API logic
βββ main.py # FastAPI routes
βββ templates/
βββ home.html # HTML template for email table
credentials.json # GCP OAuth credentials
requirements.txt # Python dependencies
- Login β Gmail API permission β View recent emails in tabular format
- Cloud Platform: GCP Console
- Backend: FastAPI
- Frontend: HTML (Jinja2)
- OAuth: Google OAuth 2.0
- API: Gmail API
git clone https://github.com/Yash-Bandal/ParseBox-Email-Parser.git
cd apppython -m venv myvenvWindows: myvenv\Scripts\activate
Mac/Linux: source myvenv/bin/activate pip install -r requirements.txt- Visit: https://console.cloud.google.com/
- Create a new project
- Go to APIs & Services > Library β Enable Gmail API
- Go to OAuth consent screen β Fill required fields β Set app as external
- Go to Credentials β Create OAuth client ID
- App type: Web application
- Add
http://127.0.0.1:8000/callbackas Authorized redirect URI
- Download
credentials.jsonand place in root directory
uvicorn app.main:app --reloadVisit: http://127.0.0.1:8000
- Author: @Yash-Bandal