Skip to content

Decorator that can issue a pre and post hook function. #28

@thecodenomad

Description

@thecodenomad

It would be nice to have a decorator that can check for "before_hook" and "after_hook" to provide a simple hook mechanism for specific functions.

The idea would be to look at kwargs to pull out values for before_hook and after_hook as tuples. These would then get executed prior to the main function execution and after the main function execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions