Skip to content

Instantly share code, notes, and snippets.

View PFython's full-sized avatar
💭
Currently working with AI/ML/NLP projects

Peter F PFython

💭
Currently working with AI/ML/NLP projects
View GitHub Profile
@jaantollander
jaantollander / decorator.py
Last active December 30, 2023 21:50
Template for Python decorator function and class
import functools
def decorator(function):
"""A general decorator function"""
@functools.wraps(function)
def wrapper(*args, **kwargs):
# Write decorator function logic here
# Before function call