kunaljubce / gmail-cleaner Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Add OAuth2 API authentication for Gmail APIs so that code can work on anybody's system with proper authentication screens.
In the initial stage of development, anyone who has to clone the repo has to manually install the dependencies also. These dependencies need to be bundled together into a requirements.txt or similar kind of file.
The authentication logic is at the heart of Clingy as it sets up the user's gmail auth with Clingy. Any changes to the repo could break this and we need to create a test for authentication and add it to workflow, so that CI validations can happen on PR creation.
Bundle all dependencies together into a single executable so that new users don't have to manually go through the process of installing everything. Need to brainstorm and ideate on this.
Refer https://support.google.com/cloud/answer/7454865 to submit for verification
pipenv run pytest ๎ฒ โ ๎ฒ 3964 ๎ฒ 10:09:39
======================================================================= test session starts ========================================================================
platform darwin -- Python 3.8.18, pytest-7.4.4, pluggy-1.3.0
rootdir: /Users/xxx.xxxx/gmail-cleaner
configfile: pytest.ini
collected 0 items / 1 error
============================================================================== ERRORS ==============================================================================
_______________________________________________________________ ERROR collecting tests/test_auth.py ________________________________________________________________
ImportError while importing test module '/Users/xxxx.xxxx/gmail-cleaner/tests/test_auth.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../.pyenv/versions/3.8.18/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_auth.py:2: in
from src.main import Clingy
src/main.py:13: in
from src.export_archived_msgs_to_excel import export_archived_msgs
src/export_archived_msgs_to_excel.py:6: in
from archive_msg_metadata import db_conn
E ModuleNotFoundError: No module named 'archive_msg_metadata'
===================================================================== short test summary info ======================================================================
ERROR tests/test_auth.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================= 1 error in 0.46s =========================================================================
In the delete_messages
function in the main code file, the attribute maxResults is hardcoded to 100. Put this as a static variable at the top and pass the variable as a parameter within the function.
Add detailed documentation to README file for package use.
Currently, even with batchDelete function there are 2 major roadblocks:
We need to explore ways to enhance batchDelete performance or alternatives to this approach entirely.
~/gmail-cleaner ๎ฐ ๎ main ๎ฐ pipenv run pytest ๎ฒ โ ๎ฒ 3964 ๎ฒ 10:09:39
======================================================================= test session starts ========================================================================
platform darwin -- Python 3.8.18, pytest-7.4.4, pluggy-1.3.0
rootdir: /Users/xxx.xxx/gmail-cleaner
configfile: pytest.ini
collected 0 items / 1 error
============================================================================== ERRORS ==============================================================================
_______________________________________________________________ ERROR collecting tests/test_auth.py ________________________________________________________________
ImportError while importing test module '/Users/xxx.xxx/gmail-cleaner/tests/test_auth.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../.pyenv/versions/3.8.18/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_auth.py:2: in
from src.main import Clingy
src/main.py:13: in
from src.export_archived_msgs_to_excel import export_archived_msgs
src/export_archived_msgs_to_excel.py:6: in
from archive_msg_metadata import db_conn
E ModuleNotFoundError: No module named 'archive_msg_metadata'
===================================================================== short test summary info ======================================================================
ERROR tests/test_auth.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================= 1 error in 0.46s =======================================================================
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.