# Path: kibitzr/conf.py
# def settings():
#     """
#     Returns singleton instance of settings
#     """
#     return ReloadableSettings.instance()


import logging
        import requests
from ..conf import settings



logger = logging.getLogger(__name__)


class WebHookNotify(object):

    CREDS_KEY = 'webhook'
    POST_KEY = 'message'

    def __init__(self, creds_key=None, conf=None, value=None, post_key=None):
        self.session = requests.Session()
        self.url = self.load_url(creds_key or self.CREDS_KEY, value)
        self.post_key = post_key or self.POST_KEY
        self.configure_session()

    def load_url(self, creds_key, value):
        if value:
            return value
        else:

# Path: kibitzr/conf.py
# def settings():
#     """
#     Returns singleton instance of settings
#     """
#     return ReloadableSettings.instance()


# Path: kibitzr/notifier/webhook.py
import logging
        import requests
from ..conf import settings




logger = logging.getLogger(__name__)


class WebHookNotify(object):

    CREDS_KEY = 'webhook'
    POST_KEY = 'message'

    def __init__(self, creds_key=None, conf=None, value=None, post_key=None):
        self.session = requests.Session()
        self.url = self.load_url(creds_key or self.CREDS_KEY, value)
        self.post_key = post_key or self.POST_KEY
        self.configure_session()

    def load_url(self, creds_key, value):
        if value:
            return value
        else:

            webhook_creds = settings().creds[creds_key]