Helpers
This module is used to gather helpers reused through the package.
- class novu.helpers.SentryProxy(*args, **kwargs)
Simple singleton to proxy all methods of Sentry SDK
This class allows, in the application, to make sentry optional, in terms of installation, without effort.
- import_module()
Method to try to load the sentry_sdk module or set it to None
- class novu.helpers.Singleton
Metaclass to use if you need a singleton on your class
Example
>>> from novu.helpers import Singleton >>> class MySingleton(metaclass=Singleton) ... pass