argsfree
Argsfree is a Python decorator that simplifies the creation of functions that don't require arguments. It achieves this by automatically injecting a predefined value or performing a specific action when the decorated function is called without any arguments. This can be useful for functions that have a default behavior or depend on context that is implicitly known.
The primary use case for argsfree is to create functions that are meant to be called directly,
The decorator typically takes an optional argument that specifies the value to be returned or the action
Argsfree can improve code readability and reduce boilerplate by abstracting away the need for manual argument