from models.AIModels import Scan_Tasks async def xxx(): s = await Scan_Tasks.get(id=1) print(s) if __name__ == "__main__": asyncio.run(xxx())