This python project enables the user to access their Gmail inbox from CLI. Users can grant access to their inbox with read and modify access. Once this is done, the project will be able to import the recent 100 mails to local database. You can perform actions on the inbox by specifying the same in handlers/rules.py
How to set-up ?
- git clone https://github.com/sibinms/gmail-cli.git
- cd gmail-cli
- python3 -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
- Add the Oauth2 credentials.json file at the root of the project by creating a new Google application
- python3 main.py
- For running tests - pytest tests/.
python3 run.py --help