Coder Social home page Coder Social logo

gmail-cleaner's Introduction

Hi there ๐Ÿ‘‹

kunaljubce's GitHub | Stats

gmail-cleaner's People

Contributors

chatterjee-atanu avatar kunaljubce avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gmail-cleaner's Issues

Add OAuth2 authentication

Add OAuth2 API authentication for Gmail APIs so that code can work on anybody's system with proper authentication screens.

Bundle all dependencies together

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.

Create authentication test and add it to workflow

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

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.

ERROR collecting tests/test_auth.py

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 =========================================================================

Improve performance of batchDelete functionality or explore alternatives

Currently, even with batchDelete function there are 2 major roadblocks:

  • We can delete only maximum of 500 mails at a time.
  • Deleting 500 mails takes over 220 seconds, which is a huge amount of time for a simple get and delete request.

We need to explore ways to enhance batchDelete performance or alternatives to this approach entirely.

ERROR collecting tests/test_auth.py

~/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 =======================================================================

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.