This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2022-03-26 08:02:25 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
# -- coding:utf-8 --
|
|
|
|
|
# @Author: markushammered@gmail.com
|
|
|
|
|
# @Development Tool: PyCharm
|
|
|
|
|
# @Create Time: 2022/3/25
|
|
|
|
|
# @File Name: __init__.py
|
|
|
|
|
|
|
|
|
|
|
2022-03-26 09:07:54 +08:00
|
|
|
import os
|
|
|
|
|
import requests
|
2022-03-26 08:02:25 +08:00
|
|
|
from flask import Flask
|
|
|
|
|
from .main import main
|
|
|
|
|
from .db.db import SQLite
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
|
"""基类配置"""
|
|
|
|
|
JSON_SORT_KEYS = False
|
|
|
|
|
JSON_AS_ASCII = False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_app():
|
|
|
|
|
"""创建主app"""
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
app.register_blueprint(main)
|
|
|
|
|
app.config.from_object(Config)
|
|
|
|
|
|
|
|
|
|
return app
|
2022-03-26 09:07:54 +08:00
|
|
|
|