Skip to content

Releases: VolkanSah/Python-Script-Runner-Debugger

v2.0

02 Jul 09:58
4c1e918
Compare
Choose a tag to compare

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.
  • Script Execution:
    • Extracted script execution logic into a new function execute_script, which returns the result and handles errors appropriately.
  • Error Logging:
    • Introduced log_error function to handle the logging of error details when a script fails to execute.
  • Resource Usage Logging:
    • Created log_resource_usage function to log CPU time and memory usage in a more structured manner.
  • 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.

Volkan Kücükbudak

The Idea (V1.0)

02 Jul 09:45
6ce70c3
Compare
Choose a tag to compare

Credits to GPT. More in README.md file.