Update start.py - Proxy Check Profress, Recommend Tool #582
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Multiple Updates to
start.py
ScriptProxy Evaluation Progress Reporting
What Was Added
Implementation Details
New Function
check_proxies_with_progress
Counter
object and aLock
to safely update and display progress from multiple threads.ThreadPoolExecutor
and updates the progress after each proxy is checked.Logging Progress
logger.info
method to output messages like "Checked x/y proxies".Integration with
handleProxyList
check_proxies_with_progress
to incorporate progress reporting.System Evaluation Tool
What Was Added
RECOMMEND
within theToolsConsole
class.Implementation Details
New Method
recommend
recommend
static method to theToolsConsole
class.psutil
library to retrieve system information:cpu_count
).virtual_memory
).Console Integration
runConsole
method to include theRECOMMEND
command.RECOMMEND
, the script outputs the system information and recommendations.Additional Adjustments and Fixes
Improved Thread Safety
Logging Enhancements
logger.info
for standard messages andlogger.debug
for more detailed output.Error Handling
Optimizations