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.7.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

cvat_sdk_i_digit-0.0.7-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file cvat_sdk_i_digit-0.0.7.tar.gz.

File metadata

  • Download URL: cvat_sdk_i_digit-0.0.7.tar.gz
  • Upload date:
  • Size: 3.9 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.7.tar.gz
Algorithm Hash digest
SHA256 019303a9c0828c5a7509fe19b55de745d105f62f748cbaa3d390aed0dbadf7d9
MD5 23ffb7b752bca45c5e36c5006d00c3ff
BLAKE2b-256 f367ad72be0ed132305c391e01b101eb281116fc624d9c45f5275b21fbfc65e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cvat_sdk_i_digit-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 348b04b6c32866906ba5b0d8b572f574e47e12aafa8ed3e682bd0a23689fb209
MD5 b03131ad4558921c62e4e59c9ee69666
BLAKE2b-256 2bb0d35c6d1675736ad48e860e9f6fbfdd375592fead664e5a27cc0e8fc947d2

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