INNER CODE UNIT · Python

PhpCodeRequest

Marven11/EtherGhost · ether_ghost/main.py:68

class PhpCodeRequest(BaseModel):
    code: str


temp_dir = Path(tempfile.gettempdir())
temp_files: t.Dict[UUID, t.Tuple[str, Path]] = {}


# TODO: 启动时同时启动所有需要启动的connector


@asynccontextmanager
async def lifespan(api: FastAPI):
    # logger.warning("Your token is %s", token)
    db.ensure_settings()
    logger.warning("从此文件夹加载配置: %s", const.DATA_FOLDER.as_posix())

    await session_connector.autostart_connectors()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…