__init__.py 954 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
from .init_config import init_config
崔为之's avatar
崔为之 committed
16
from .init_cors import init_cors
Weizhi Cui's avatar
Weizhi Cui committed
17 18 19 20 21 22
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
23
from .init_elasticsearch import init_elasticsearch
崔为之's avatar
崔为之 committed
24
from .init_celery import init_celery
Weizhi Cui's avatar
Weizhi Cui committed
25 26 27 28 29 30 31 32 33 34


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
35
    init_elasticsearch(app)
崔为之's avatar
崔为之 committed
36
    init_cors(app)
崔为之's avatar
崔为之 committed
37
    init_celery(app)