Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Python utilities used for tracking the execution of callables in Python

Project description

Christopher H. Todd's Python Library For Wrapping Callable Execution

The ctodd-python-lib-execution project is responsible for warpping callables in Python to wrap in function logging, execution time, and other quality of life improvements. Useful for wrapping functions with start and stop timers.

Table of Contents


Python Packages

  • wrapt>=1.11.1


Library for Logging the Execution Details of any callable or the main() function of a script.


def main_executor(wrapped, instance, args, kwargs):
        Decorator for running the main() function. Decorator will
        log the start and completion of the script, time the
        execution and performance of the script, and handle
        and exceptions (log the exception to the log file and raise)
        wrapped (main function):
        instance: pass in self when wrapping class method.
            default is None when wrapping function.
        args (Tuple): List of arguments
        kwargs (Dict): Dictionary of named arguments

Example Scripts

Example executable Python scripts/modules for testing and interacting with the library. These show example use-cases for the libraries and can be used as templates for developing with the libraries or to use as one-off development efforts.



  • Relies on f-string notation, which is limited to Python3.6. A refactor to remove these could allow for development with Python3.0.x through 3.5.x


  • Unittest framework in place, but lacking tests

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ctodd-python-lib-execution, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size ctodd_python_lib_execution-1.0.0-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ctodd-python-lib-execution-1.0.0.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page