Releases: VolkanSah/Python-Script-Runner-Debugger
Releases · VolkanSah/Python-Script-Runner-Debugger
v2.0
Release Notes for Python Script Runner & Debugger v2.0
We are excited to announce the release of version 2.0 of the Python Script Runner & Debugger. This version introduces significant improvements in structure, functionality, and usability based on feedback and collaborative development efforts.
What's New in v2.0
Major Improvements
- Modularization: The script is now broken down into smaller, more manageable functions, enhancing readability and maintainability.
- Enhanced Logging: Start and end times for script execution are now logged, providing more detailed information about the execution timeline.
- Improved Error Handling: The script now includes additional exception handling, covering more error cases and ensuring robustness.
- Configurability: Users can now easily configure the script path and logging level, making the script more flexible and adaptable to different use cases.
Detailed Changes
- Logging Configuration:
- Added
configure_logging
function to set up logging based on the provided log level.
- Added
- Script Execution:
- Extracted script execution logic into a new function
execute_script
, which returns the result and handles errors appropriately.
- Extracted script execution logic into a new function
- Error Logging:
- Introduced
log_error
function to handle the logging of error details when a script fails to execute.
- Introduced
- Resource Usage Logging:
- Created
log_resource_usage
function to log CPU time and memory usage in a more structured manner.
- Created
- Main Function:
- Refactored
run_script
to utilize the new helper functions and log additional information such as start and end times of the script execution.
- Refactored
Volkan Kücükbudak
The Idea (V1.0)
Credits to GPT. More in README.md file.