No project description provided
Project description
cvat_sdk_i_digit
Пакет для взаимодействия с Cvat-sdk
Пример использования
from cvat_sdk_i_digit.cvat_api import Cvat, Settings
from cvat_sdk_i_digit.config import project_spec
cvat = Cvat(settings=Settings(username="admin",
password="admin",
host="localhost:8080"))
print(cvat.get_all_project())
# Ответ:
# [<Project: id=14>, <Project: id=3>]
project = cvat.create_project(project_spec)
print(project)
# Ответ:
# {'assignee': None,
# 'bug_tracker': '',
# 'created_date': datetime.datetime(2024, 5, 21, 5, 59, 25, 255094, tzinfo=tzutc()),
# 'dimension': '2d',
# 'guide_id': None,
# 'id': 14,
# 'labels': {'url': 'http://localhost:8080/api/labels?project_id=14'},
# 'name': 'example projects',
# 'organization': None,
# 'owner': {'first_name': '',
# 'id': 3,
# 'last_name': '',
# 'url': 'http://localhost:8080/api/users/3',
# 'username': 'dima'},
# 'source_storage': None,
# 'status': 'annotation',
# 'target_storage': None,
# 'task_subsets': [],
# 'tasks': {'count': 8, 'url': 'http://localhost:8080/api/tasks?project_id=14'},
# 'updated_date': datetime.datetime(2024, 5, 21, 10, 1, 16, 589005, tzinfo=tzutc()),
# 'url': 'http://localhost:8080/api/projects/14'}
print(cvat.get_task(14))
cvat.dowload_dataset(task.id, Path("/temp/dataset.zip"))
Функционал
- get_all_project
- get_all_tasks
- get_all_task_from_project
- get_project
- get_task
- create_project
- create_tasks
- dowload_dataset
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cvat_sdk_i_digit-0.0.8.tar.gz
.
File metadata
- Download URL: cvat_sdk_i_digit-0.0.8.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.3 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 826c2fb543760d575f5f21848aad24bf44501e957a2c49d6ef54ed315885ed32 |
|
MD5 | 804371090790bdf544cca90af409a9b6 |
|
BLAKE2b-256 | a472a5aa9fc61642d1975456fb8576cce6eecb0e224ba603663ab79fd7eb8648 |
File details
Details for the file cvat_sdk_i_digit-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: cvat_sdk_i_digit-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.3 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c564366b035c48be349157294e08148cc3eda5a265c36e9a4c6ce256c6f2b178 |
|
MD5 | fc30436bfc0f5e96eebf2050b06c76aa |
|
BLAKE2b-256 | b26f78153b49c357fd651172b721c7c738a27dc81ab0e306b5190dc76b6d711b |