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(host="localhost",
                              port=8080,
                              org_slug="organization_name",
                              username="admin",
                              password="admin"))

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cvat_sdk_i_digit-0.0.9-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvat_sdk_i_digit-0.0.9.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for cvat_sdk_i_digit-0.0.9.tar.gz
Algorithm Hash digest
SHA256 7cd0517d983780fe39af4d32269a8d3a159b9ea87ece42dc15702fca1784dcf9
MD5 f64c133f769b8493a6fc50d441e0ebb1
BLAKE2b-256 2219f86ab11fb560a818c769c8094c1b96e7b296568179c5e7c6682d953ade60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cvat_sdk_i_digit-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ae7d5da09ce70a9df3f21b1f3bfe2a5023cf41125aebd8706cc47dbc1e0903bb
MD5 054c7e9bcc215cfb69edfab7c9b4e4f6
BLAKE2b-256 54dc7fdde0bb9c9627383f28ed7c0a315fe30990341fff4d6a81ff5e616afe66

See more details on using hashes here.

Supported by

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