<filename>tj_api.py
# @Copyright(C), OldFive, 2020.
# @Date : 2021/3/11 10:13:26
# @Author : OldFive
# @Version : 0.1
# @Description :
# @History :
# @Other:
#  ▒█████   ██▓    ▓█████▄   █████▒██▓ ██▒   █▓▓█████
# ▒██▒  ██▒▓██▒    ▒██▀ ██▌▓██   ▒▓██▒▓██░   █▒▓█   ▀
# ▒██░  ██▒▒██░    ░██   █▌▒████ ░▒██▒ ▓██  █▒░▒███
# ▒██   ██░▒██░    ░▓█▄   ▌░▓█▒  ░░██░  ▒██ █░░▒▓█  ▄
# ░ ████▓▒░░██████▒░▒████▓ ░▒█░   ░██░   ▒▀█░  ░▒████▒
# ░ ▒░▒░▒░ ░ ▒░▓  ░ ▒▒▓  ▒  ▒ ░   ░▓     ░ ▐░  ░░ ▒░ ░
#   ░ ▒ ▒░ ░ ░ ▒  ░ ░ ▒  ▒  ░      ▒ ░   ░ ░░   ░ ░  ░
# ░ ░ ░ ▒    ░ ░    ░ ░  ░  ░ ░    ▒ ░     ░░     ░
#     ░ ░      ░  ░   ░            ░        ░     ░  ░
#                   ░                      ░
#
"""
fastapi主入口
"""

# Standard library imports

# Third party imports
import uvicorn
# Local application imports
from apps.config.sys_config import app_run_conf, isFormalSystem


def main_run():
    if isFormalSystem is True:
        app_run_conf['RELOAD'] = False
        app_run_conf['DEBUG'] = False
    uvicorn.run("apps.app:app",
                host=app_run_conf['HOST'],
                port=app_run_conf['PORT'],
                reload=app_run_conf['RELOAD'],
                workers=app_run_conf['WORKERS'],
                debug=app_run_conf['DEBUG'])


if __name__ == "__main__":
    main_run()

<filename>tj_api.py
# @Copyright(C), OldFive, 2020.
# @Date : 2021/3/11 10:13:26
# @Author : OldFive
# @Version : 0.1
# @Description :
# @History :
# @Other:
#  ▒█████   ██▓    ▓█████▄   █████▒██▓ ██▒   █▓▓█████
# ▒██▒  ██▒▓██▒    ▒██▀ ██▌▓██   ▒▓██▒▓██░   █▒▓█   ▀
# ▒██░  ██▒▒██░    ░██   █▌▒████ ░▒██▒ ▓██  █▒░▒███
# ▒██   ██░▒██░    ░▓█▄   ▌░▓█▒  ░░██░  ▒██ █░░▒▓█  ▄
# ░ ████▓▒░░██████▒░▒████▓ ░▒█░   ░██░   ▒▀█░  ░▒████▒
# ░ ▒░▒░▒░ ░ ▒░▓  ░ ▒▒▓  ▒  ▒ ░   ░▓     ░ ▐░  ░░ ▒░ ░
#   ░ ▒ ▒░ ░ ░ ▒  ░ ░ ▒  ▒  ░      ▒ ░   ░ ░░   ░ ░  ░
# ░ ░ ░ ▒    ░ ░    ░ ░  ░  ░ ░    ▒ ░     ░░     ░
#     ░ ░      ░  ░   ░            ░        ░     ░  ░
#                   ░                      ░
#
"""
fastapi主入口
"""

# Standard library imports

# Third party imports
import uvicorn
# Local application imports
from apps.config.sys_config import app_run_conf, isFormalSystem


def main_run():
    if isFormalSystem is True:
        app_run_conf['RELOAD'] = False
        app_run_conf['DEBUG'] = False
    uvicorn.run("apps.app:app",
                host=app_run_conf['HOST'],
                port=app_run_conf['PORT'],
                reload=app_run_conf['RELOAD'],
                workers=app_run_conf['WORKERS'],
                debug=app_run_conf['DEBUG'])


if __name__ == "__main__":
    main_run()

# @Copyright(C), OldFive, 2020. # @Date : 2021/3/11 10:13:26 # @Author : OldFive # @Version : 0.1 # @Description : # @History : # @Other: #  ▒█████   ██▓    ▓█████▄   █████▒██▓ ██▒   █▓▓█████ # ▒██▒  ██▒▓██▒    ▒██▀ ██▌▓██   ▒▓██▒▓██░   █▒▓█   ▀ # ▒██░  ██▒▒██░    ░██   █▌▒████ ░▒██▒ ▓██  █▒░▒███ # ▒██   ██░▒██░    ░▓█▄   ▌░▓█▒  ░░██░  ▒██ █░░▒▓█  ▄ # ░ ████▓▒░░██████▒░▒████▓ ░▒█░   ░██░   ▒▀█░  ░▒████▒ # ░ ▒░▒░▒░ ░ ▒░▓  ░ ▒▒▓  ▒  ▒ ░   ░▓     ░ ▐░  ░░ ▒░ ░ #   ░ ▒ ▒░ ░ ░ ▒  ░ ░ ▒  ▒  ░      ▒ ░   ░ ░░   ░ ░  ░ # ░ ░ ░ ▒    ░ ░    ░ ░  ░  ░ ░    ▒ ░     ░░     ░ #     ░ ░      ░  ░   ░            ░        ░     ░  ░ #                   ░                      ░ # fastapi主入口 # Standard library imports # Third party imports # Local application imports