Exemple #1
0
def upload_file(
    file_name: str = '',
    project_id: int = -1,
    file_contents: list = None,
):
    """上传文件"""
    return ProjectManager.upload_file(file_name, project_id, file_contents)
Exemple #2
0
def create_project(project_name, project_tags=None):
    """创建项目"""
    return ProjectManager.create_project(project_name, project_tags)
Exemple #3
0
def export_project(project_id):
    """导出项目"""
    return ProjectManager.export_project(project_id)
Exemple #4
0
def delete_project(project_id):
    """删除项目"""
    return ProjectManager.delete_project(project_id)
Exemple #5
0
def get_projects():
    """获取项目列表"""
    return ProjectManager.get_projects()
Exemple #6
0
def modify_project_name(project_id, new_name):
    """修改项目名字"""
    return ProjectManager.modify_project_name(project_id, new_name)
Exemple #7
0
def get_label_progress(project_id: int):
    return ProjectManager.get_label_progress(project_id)
Exemple #8
0
def upload_file(project_id: int = -1, file_contents: list = None):
    """上传文件"""
    return ProjectManager.upload_file(project_id, file_contents)