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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvat_sdk_i_digit-0.0.6.tar.gz
  • Upload date:
  • Size: 3.8 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.6.tar.gz
Algorithm Hash digest
SHA256 a31bd38747370b9fbc481246a3941c4760d92f5c9ff62e0bba9795d1b7736691
MD5 4cbb81c21b19280d8c91b25c07791e99
BLAKE2b-256 0158f0e5f6d86c820744d0b40436f7ef52911926052f25c65b49f1725778b001

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cvat_sdk_i_digit-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 71dd302154f1eb2ce0c896223ee58daccf0ab7a946d7561765e4d73711037781
MD5 a7c41744dd098e5440dbdbf493723de0
BLAKE2b-256 2aa96d083c5ee4e7aac1221fa925352acc114e99a96ae4fda93bb33ca7724130

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