- Allow filtering on Tenant Types & searching for parts of Tenant names - Implement health checks - Start Prometheus monitoring (needs to be finalized) - Refine audio_processor and srt_processor to reduce duplicate code and support for larger files - Introduce repopack to reason in LLMs about the code
35 lines
950 B
Python
35 lines
950 B
Python
from flask_sqlalchemy import SQLAlchemy
|
|
from flask_migrate import Migrate
|
|
from flask_bootstrap import Bootstrap
|
|
from flask_security import Security
|
|
from flask_mailman import Mail
|
|
from flask_login import LoginManager
|
|
from flask_cors import CORS
|
|
from flask_socketio import SocketIO
|
|
from flask_jwt_extended import JWTManager
|
|
from flask_session import Session
|
|
from flask_wtf import CSRFProtect
|
|
from flask_restx import Api
|
|
from prometheus_flask_exporter import PrometheusMetrics
|
|
|
|
from .utils.simple_encryption import SimpleEncryption
|
|
from .utils.minio_utils import MinioClient
|
|
|
|
|
|
# Create extensions
|
|
db = SQLAlchemy()
|
|
migrate = Migrate()
|
|
bootstrap = Bootstrap()
|
|
csrf = CSRFProtect()
|
|
security = Security()
|
|
mail = Mail()
|
|
login_manager = LoginManager()
|
|
cors = CORS()
|
|
socketio = SocketIO()
|
|
jwt = JWTManager()
|
|
session = Session()
|
|
api_rest = Api()
|
|
simple_encryption = SimpleEncryption()
|
|
minio_client = MinioClient()
|
|
metrics = PrometheusMetrics.for_app_factory()
|