Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/12345k/happyfox


https://github.com/12345k/happyfox

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Backend Assignment

##### Step 1:
Download the gmail credntials for the [link](https://developers.google.com/gmail/api/quickstart/python) and copy the credentials json to the project directory.

##### Step 2:

Create a virtual environment and run the following command
```
pip install -r requirements.txt
```

##### Step 3:

Run the following command
```
python main.py
```

This program will get gmail credentials and fetech last 500 emails and store the data in the sqlite format.

##### Step 4:

Edit the __rule.json__ file. To create the rules to filter the mails.

##### Step 5:

Run the following command
```
python action.py
```
This program will modify the mails in the gmail account corresponding to the rules.


__Database : SQLITE__
> **database.py** : This files handles all relational database queries

> **credentials.json and token.pickle** will store the gmail crenditails so we dont need to login each time. In case to login to another email just delete the token.pickle each time.