Projects
add_users_to_project
TagmeClientAdvanced.add_users_to_project(project_id: str, pool_id: str, organization_id: str | None = None, ) → None
Add pool of users to project.
Parameters |
* * * |
archive_project
TagmeClientAdvanced.archive_project(project_name: str, organization_id: str | None = None, ) → None
(deprecated) Archive all projects with given name. Use ‘archive_project_by_name’ instead.
Parameters |
* * |
archive_project_by_name
TagmeClientAdvanced.archive_project_by_name(project_name: str, organization_id: str | None = None, raise_when_not_found: bool = True, ) → None
Archive all projects with given name.
Parameters |
* * * |
archive_projects
TagmeClientAdvanced.archive_projects(uids: List[str], organization_id: str | None = None, ) → dict | None
Archive projects.
Parameters |
* * |
Returns |
empty dict. |
clone_project
TagmeClientAdvanced.clone_project(project_id: str, organization_id: str | None = None, dst_organization_id: str | None = None, name_suffix: str | None = None, ) → Tuple[List[Tuple[TaskData, TaskData]], Project]
Clone project with all its tasks and users.
Parameters |
* * * |
Returns |
list of pairs of old tasks and new tasks, new project. |
clone_project_with_data
TagmeClientAdvanced.clone_project_with_data(project_id: str, organization_id: str | None = None, dst_organization_id: str | None = None, clone_all_files: bool = False, ) → str
Clone project with all its tasks, pools and datasets.
Parameters |
* * * * |
Returns |
id of cloned project. |
create_cross_project_validation_pipeline
TagmeClientAdvanced.create_cross_project_validation_pipeline(config: PipelineInitialConfig, organization_id: str | None = None, ) → None
Create validation pipeline between two different projects.
Parameters |
* * |
create_project
TagmeClientAdvanced.create_project(name: str, description: str | None = None, organization_id: str | None = None, inner_comment: str | None = None, template_id: str | None = None, is_brief_autoupdate: bool | None = None, is_forms_autoupdate: bool | None = None, is_config_autoupdate: bool | None = None, is_specification_autoupdate: bool | None = None, ) → Project
Create new project.
Parameters |
* * * * * * * * * |
Returns |
created project. |
create_project_bookmark
TagmeClientAdvanced.create_project_bookmark(project_id: str, organization_id: str | None = None, ) → None
Add project to bookmarks.
Parameters |
* * |
create_project_by_config
TagmeClientAdvanced.create_project_by_config(config: ProjectConfig, organization_id: str | None = None, ) → str
Create new project.
Parameters |
* * |
Returns |
created project id. |
create_single_project_validation_pipeline
TagmeClientAdvanced.create_single_project_validation_pipeline(config: PipelineInitialConfig, organization_id: str | None = None, ) → None
Create validation pipeline within a single project. The source and destination project IDs in the config must be the same.
Parameters |
* * |
create_validation_pipeline
TagmeClientAdvanced.create_validation_pipeline(config: PipelineInitialConfig, organization_id: str | None = None, ) → None
Create validation pipeline. This method acts as a dispatcher, calling either create_cross_project_validation_pipeline or create_single_project_validation_pipeline based on the provided config.
Parameters |
* * |
delete_project_bookmark
TagmeClientAdvanced.delete_project_bookmark(project_id: str, organization_id: str | None = None, ) → None
Remove project from bookmarks.
Parameters |
* * |
delete_users_from_project
TagmeClientAdvanced.delete_users_from_project(project_id: str, pool_id: str, organization_id: str | None = None, ) → None
Delete pool of users from project.
Parameters |
* * * |
download_brief_version_file
TagmeClientAdvanced.download_brief_version_file(method_id: str, version: str | int = 'latest', date_time: datetime | None = None, ) → str
Download certait brief version by its number or date.
Parameters |
* * * |
Returns |
file of certain brief version |
download_interface_version
TagmeClientAdvanced.download_interface_version(method_id: str, version: str | int = 'latest', date_time: datetime | None = None, ) → InterfaceVersionInfo
Download certait interface version by its number or date.
Parameters |
* * * |
Returns |
data of certain interface version |
get_brief_read_status
TagmeClientAdvanced.get_brief_read_status(method_id: str, organization_id: str | None = None, ) → BriefReadStatusData
Get methodic brief read status by id.
Parameters |
* * |
Returns |
information about methodic brief read status. |
get_brief_version_info
TagmeClientAdvanced.get_brief_version_info(method_id: str, version: str | int = 'latest', date_time: datetime | None = None, with_person_info: bool = False, ) → Tuple[BriefVersionInfo, dict]
Get certait brief version by its number or date.
Parameters |
* * * * |
Returns |
information about brief version with response headers |
get_interface_version_info
TagmeClientAdvanced.get_interface_version_info(method_id: str, version: str | int = 'latest', date_time: datetime | None = None, with_person_info: bool | None = None, ) → InterfaceVersionInfo
Get certait interface version by its number or date.
Parameters |
* * * * |
Returns |
information about interface version |
get_method
TagmeClientAdvanced.get_method(method_id: str, task_id: str | None = None, organization_id: str | None = None, download_brief: bool = False, ) → MethodData
- Get methodic by id. It contains brief, interface, specification and config.
-
If methodic is a url, brief will be downloaded and is_brief_as_url will be set to False.
Parameters |
* * * * |
Returns |
information about methodic. |
get_project
TagmeClientAdvanced.get_project(project_id: str, with_tasks_count: bool = False, organization_id: str | None = None, ) → Project
Get project by id.
Parameters |
* * * |
Returns |
project data. |
get_project_contacts
TagmeClientAdvanced.get_project_contacts(project_id: str, organization_id: str | None = None, ) → Contacts
Get project or organization contacts.
Parameters |
* * |
get_project_ids_by_status
TagmeClientAdvanced.get_project_ids_by_status(is_archived: bool, organization_id: str | None = None, ) → Set[str]
Get all archived or unarchived project ids.
Parameters |
* * |
Returns |
ids of projects with matched status. |
get_project_names_by_status
TagmeClientAdvanced.get_project_names_by_status(is_archived: bool, organization_id: str | None = None, ) → Set[str]
Get all archived or unarchived projects.
Parameters |
* * |
Returns |
names of projects with matched status. |
get_project_results
TagmeClientAdvanced.get_project_results(project_name: str, task_name: str, is_archived: bool | None = None, organization_id: str | None = None, ) → List[TaskResult]
Get results for task matched by name.
Parameters |
* * * |
Returns |
list of task results. |
get_project_task
TagmeClientAdvanced.get_project_task(project_id: str, ignore_tasks: Tuple[str, …] = ('Обучение', 'Экзамен'), organization_id: str | None = None, ) → TaskData
(deprecated) Get first task for project. Use ‘get_project_tasks’ instead.
Parameters |
* * * |
Returns |
found task. |
get_project_tasks
TagmeClientAdvanced.get_project_tasks(project_id: str, ignore_tasks: Tuple[str, …] = ('Обучение', 'Экзамен'), organization_id: str | None = None, ) → List[TaskData]
Get tasks for project.
Parameters |
* * * |
Returns |
found tasks. |
get_projects
TagmeClientAdvanced.get_projects(with_tasks_count: bool = False, archived: bool | None = False, with_pipeline: bool | None = False, organization_id: str | None = None, query: str | None = None, page: int | None = None, size: int | None = None, is_bookmarked: bool | None = None, is_pipelined: bool | None = None, update_date_from: str | None = None, ) → List[Project]
Get organization projects.
Parameters |
* * * * * * * * * |
Returns |
list of projects matched. |
get_projects_advanced
TagmeClientAdvanced.get_projects_advanced(project_ids: Collection[str] | None = None, organization_id: str | None = None, with_method: bool = False, with_pipeline: bool | None = False, archived: bool | None = None, is_pipelined: bool | None = None, tqdm_on: bool | str = False, max_concurrency: int = 10, ) → List[Project]
Get organization projects.
Parameters |
* * * * * * * * |
Returns |
list of projects. |
get_projects_advanced_with_errors
TagmeClientAdvanced.get_projects_advanced_with_errors(project_ids: Collection[str] | None = None, organization_id: str | None = None, with_method: bool = False, with_pipeline: bool | None = False, archived: bool | None = None, is_pipelined: bool | None = None, tqdm_on: bool | str = False, errors: Dict[str, List[str]] | DefaultDict[str, List[str]] | None = None, max_concurrency: int = 10, ) → Tuple[List[Project], Dict[str, List[str]] | DefaultDict[str, List[str]]]
Get organization projects.
Parameters |
* * * * * * * * * |
Returns |
list of projects and occured errors with mapping. |
get_projects_by_name
TagmeClientAdvanced.get_projects_by_name(project_name: str, archived: bool = False, organization_id: str | None = None, with_tasks_count: bool = False, ) → List[Project]
Get projects by text query.
Parameters |
* * * * |
Returns |
list of projects matched. |
get_taskflow_projects
TagmeClientAdvanced.get_taskflow_projects(page: int | None = None, size: int | None = None, query: str | None = None, only_favourite: bool | None = None, project_id: str | None = None, ) → ProjectTaskPaginated
Retrieves project-tasks available to the marker from the taskflow service.
Parameters |
* * * * * |
Returns |
list of project-tasks matched. |
list_method_brief_versions
TagmeClientAdvanced.list_method_brief_versions(method_id: str, ) → List[BriefVersionInfo]
Get all brief versions.
| Parameters | method_id – uid of method, brief belongs to |
|---|---|
Returns |
information about method’s brief versions |
list_method_interface_versions
TagmeClientAdvanced.list_method_interface_versions(method_id: str, ) → List[InterfaceVersionInfo]
Get all interface versions.
| Parameters | method_id – uid of method, interface belongs to |
|---|---|
Returns |
information about method’s interface versions |
load_project_method
TagmeClientAdvanced.load_project_method(project: Project, download_brief: bool = False, ) → None
Load project methodic (it contains brief and interface).
Parameters |
* * |
restore_projects
TagmeClientAdvanced.restore_projects(uids: List[str], organization_id: str | None = None, ) → dict | None
Restore projects from archive.
Parameters |
* * |
Returns |
empty dict. |
set_brief_read_status
TagmeClientAdvanced.set_brief_read_status(method_id: str, read_token: str, organization_id: str | None = None, ) → None
Set methodic brief read status by id.
Parameters |
* * * |
Returns |
Nothing. |
update_method
TagmeClientAdvanced.update_method(method: MethodData | MethodDataRequest | dict, organization_id: str | None = None, ) → MethodData
Update project methodic.
Parameters |
* * |
Returns |
information about updated methodic. |
update_method_brief
TagmeClientAdvanced.update_method_brief(method_id: str, file_path: str, file_name: str, ) → None
Update brief file of method.
Parameters |
* * * |
Returns |
None |
update_project
TagmeClientAdvanced.update_project(project_id: str, name: str | None = None, organization_id: str | None = None, description: str | None = None, inner_comment: str | None = None, pipeline: SyncSettings | dict | None = None, is_pipeline_enabled: bool | None = None, is_brief_autoupdate: bool | None = None, is_forms_autoupdate: bool | None = None, is_config_autoupdate: bool | None = None, is_specification_autoupdate: bool | None = None, pipeline_errors: str | None = None, ) → Project
Update project info.
Parameters |
* * * * * * * * * * * |
Returns |
updated project. |