DagsHub Annotation Converter
This package is intended to be a multi-type importer/exporter/converter between different annotation formats.
This package is currently in development and has not that many features implemented. The API is not stable and is subject to change.
The package consists of the Intermediary Representation (IR) annotation format in Python Objects, and importers/exporters for different annotation formats.
Installation
pip install dagshub-annotation-converter
Importers (Images and Video):
- YOLO BBox, Segmentation and Poses:
load_yolo_from_fs - COCO BBox Object Detection and Stuff Segmentation:
load_coco_from_file - Label Studio (BBox, Polygons, Keypoints, Ellipses, Brush masks, Video BBox):
parse_ls_task(Only reading JSON tasks from the filesystem is implemented, importing from a project is left up to user):
from dagshub_annotation_converter.formats.label_studio.task import LabelStudioTask
task_obj = LabelStudioTask.from_json("path/to/label_studio_task.json")
annotations = task_obj.to_ir_annotations()
- CVAT for image (BBox, Segmentation, Poses, Masks) and video (BBox):
load_cvat_from_zip - MOT (Video BBox) -
load_mot_from_dir
Exporters (Images and Video):
- YOLO BBox, Segmentation and Poses:
export_to_fs - COCO BBox Object Detection and Stuff Segmentation:
export_to_coco_file - Label Studio:
task.model_dump_json()(Again, only to JSON files, uploading the task to the project is left to the user) - MOT (Video BBox) -
export_mot_to_dir - CVAT for video (BBox):
export_cvat_video_to_zip
Experimental Features:
The package contains some experimental features that can be toggled on by setting a corresponding environment variable:
DAGSHUB_ANNOTATION_EXPERIMENTAL_CVAT_POSE_GROUPING_BY_GROUP_ID_ENABLED- When importing CVAT annotations, you can put a single bbox and either a points or skeletons annotation in a group, and then they will be grouped together into a pose annotation. When exporting that to YOLO, the bbox and the points will be exported as a single annotation.
You can read more about the features that exist, their limitations and potential side effects in the features.py file
Metadata
Release files for dagshub-annotation-converter 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dagshub_annotation_converter-0.3.0.tar.gz | 81.9 kB | With provenance | Details for dagshub_annotation_converter-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dagshub_annotation_converter-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for dagshub_annotation_converter-0.3.0-py3-none-any.whl |
Total release size: 155.3 kB
Release files / dagshub_annotation_converter-0.3.0.tar.gz
| Download URL | dagshub_annotation_converter-0.3.0.tar.gz |
|---|---|
| Size | 81.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a926cdc2178945ffdb6b5c7f00356def0a64b7260e6e1f13a2aa502daeedea3
|
|
BLAKE2b-256 checksum How to use checksums |
0ea9f23ff013741b7f482af071aeb21303ab7dfa08208d3b422cdfcc7d8d9cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logRelease files / dagshub_annotation_converter-0.3.0-py3-none-any.whl
| Download URL | dagshub_annotation_converter-0.3.0-py3-none-any.whl |
|---|---|
| Size | 73.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf3fb5df2c5538fda54d9bd7d7c4f7e2d381423a34e8f8256d568f8e0d1b9770
|
|
BLAKE2b-256 checksum How to use checksums |
a73f65ada5a378996e68bf3259ac7b5ceefef7522a92cf79865049aba247e7f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logSecurity for dagshub-annotation-converter 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dagshub_annotation_converter-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.