import toml
from flask_babel import Babel
from flask_bootstrap import Bootstrap
from flask_continuum import Continuum
from flask_marshmallow import Marshmallow
from flask_restx import Api
from flask_security import (Security, SQLAlchemySessionUserDatastore,
                            login_required)
from flask_sqlalchemy import SQLAlchemy

from neteye.lib.connection_pool.connection_pool import ConnectionPool
from neteye.lib.ntc_template_utils.ntc_template_utils import NtcTemplateUtils

db = SQLAlchemy()
bootstrap = Bootstrap()
babel = Babel()
security = Security()
continuum = Continuum(db=db)
api = Api()
ma = Marshmallow()
connection_pool = ConnectionPool()
ntc_template_utils = NtcTemplateUtils()
settings = toml.load("settings.toml")
