Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/12345k/happyfox
https://github.com/12345k/happyfox
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/12345k/happyfox
- Owner: 12345k
- Created: 2019-11-22T04:26:22.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:55:35.000Z (about 2 years ago)
- Last Synced: 2023-03-04T13:45:16.799Z (almost 2 years ago)
- Language: Python
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
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.