Skip to main content

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

cvat_sdk_i_digit-0.0.8.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

cvat_sdk_i_digit-0.0.8-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for cvat_sdk_i_digit-0.0.8.tar.gz
Algorithm Hash digest
SHA256 826c2fb543760d575f5f21848aad24bf44501e957a2c49d6ef54ed315885ed32
MD5 804371090790bdf544cca90af409a9b6
BLAKE2b-256 a472a5aa9fc61642d1975456fb8576cce6eecb0e224ba603663ab79fd7eb8648

See more details on using hashes here.

File details

Details for the file cvat_sdk_i_digit-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for cvat_sdk_i_digit-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c564366b035c48be349157294e08148cc3eda5a265c36e9a4c6ce256c6f2b178
MD5 fc30436bfc0f5e96eebf2050b06c76aa
BLAKE2b-256 b26f78153b49c357fd651172b721c7c738a27dc81ab0e306b5190dc76b6d711b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page