def METHOD_NAME(data, workspace):
    '''获取项目信息
    Args:
        data为dict，
        'id': 项目id
    '''
    pid = data["id"]
    attr = {}
    assert pid in workspace.projects, "项目ID'{}'不存在".format(pid)
    if pid in workspace.projects:
        project_id = workspace.projects[pid].id
        project_name = workspace.projects[pid].name
        project_desc = workspace.projects[pid].desc
        project_type = workspace.projects[pid].type
        project_did = workspace.projects[pid].did
        project_path = workspace.projects[pid].path
        project_create_time = workspace.projects[pid].create_time
        project_tasks = {}
        from .operate import get_task_status
        for tid in workspace.tasks:
            if workspace.tasks[tid].pid == pid:
                path = workspace.tasks[tid].path
                status, message = get_task_status(path)
                project_tasks[tid] = {'status': status.value}
        attr = {
            "id": project_id,
            "name": project_name,
            "desc": project_desc,
            "type": project_type,
            "did": project_did,
            "path": project_path,
            "create_time": project_create_time,
            "tasks": project_tasks
        }
    return {'status': 1, 'attr': attr}