What are Python decorators and why use functools.wraps?
A Python decorator is a callable that accepts a function or class and returns a wrapped version adding reusable behavior (auth checks, logging, caching, retries) without modifying original source code; @functools.wraps preserves metadata like __name__ and __doc__.