__init__.py 844 Bytes
Newer Older
Weizhi Cui's avatar
Weizhi Cui committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
# @Version     : Python 3.11.4
# @Software    : Sublime Text 4
# @Author      : StudentCWZ
# @Email       : StudentCWZ@outlook.com
# @Date        : 2023/10/28 12:50
# @File        : __init__.py
# @Description :
"""


崔为之's avatar
崔为之 committed
14
from flask import Flask
Weizhi Cui's avatar
Weizhi Cui committed
15 16 17 18 19 20 21
from .init_config import init_config
from .init_logger import init_logger
from .init_sqlalchemy import init_database
from .init_bcrypt import init_bcrypt
from .init_migrate import init_migrate
from .init_apispec import init_apispec
from .init_marshmallow import init_marshmallow
崔为之's avatar
崔为之 committed
22
from .init_elasticsearch import init_elasticsearch
Weizhi Cui's avatar
Weizhi Cui committed
23 24 25 26 27 28 29 30 31 32


def init_plugs(app: Flask) -> None:
    init_config(app)
    init_logger(app)
    init_database(app)
    init_bcrypt(app)
    init_migrate(app)
    init_apispec(app)
    init_marshmallow(app)
崔为之's avatar
崔为之 committed
33
    init_elasticsearch(app)