Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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