This PR introduces two major improvements to LiteJsonDb#7
This PR introduces two major improvements to LiteJsonDb#7Yusufibin wants to merge 1 commit intocodingtuto:mainfrom
Conversation
|
@Yusufibin Wow 🔥 what a contribution! We’ll all check this out 👀 |
|
@codingtuto We're waiting |
|
@codingtuto et @anonymmouscoder, j’attends :-) J’aimerais aussi intégrer un tableau de bord optionnel : il n’ajoutera pas de poids supplémentaire et l’utilisateur pourra simplement l’afficher avec une seule ligne de commande. |
|
Ça prends du temps le review ?? On bouge les choses @codingtuto |
|
:) @codingtuto |
|
It's truly a joy to see someone fully focused and contributing to our project and it's really time for you to move on to becoming a key player for this repo. We're somewhat obligated to be transparent with you about our current situation. |
|
@anonymmouscoder Thanks for the update and honesty! I fully understand the situation. The 7-day review window is a solid plan. I'm standing by whenever you're ready to proceed. Thanks again! |
|
Salut @Yusufibin, Merci pour la PR ! Le concept est bon (search amélioré + logging), mais j'ai trouvé quelques bugs en relisant le code : Problème dans Petite chose : les fichiers Sinon l'idée du refactoring logging est top ! Si tu peux corriger ces points, ça sera bon à merger. Let me know si tu as besoin de précisions 👍 |
search_datamethod.printstatements with a proper logging system using Python'sloggingmodule, allowing users to control log levels and output.Changes Made
Search Improvements (
modules/search.pyandLiteJsonDb.py)substring(default:False) andcase_sensitive(default:True) tosearch_data.Logging System (
LiteJsonDb.pyand all handler/modules files)LiteJsonDblogger with console output for user messages.printstatements inhandler/db_operations.py,handler/encrypt.py,handler/method.py,modules/search.py,modules/csv.py, andLiteJsonDb.pywith appropriate logger calls (logger.error,logger.info).enable_log=TrueinJsonDBinitialization.Backward Compatibility
Testing
To test the changes:
import LiteJsonDbdb = LiteJsonDb.JsonDB(enable_log=True)db.set_data('users/1', {'name': 'Alice', 'age': 30})db.search_data('Alice')db.search_data('Ali', substring=True)db.search_data('ALICE', case_sensitive=False)