Unified annotation schema and JSONL IO for vision datasets.
Project description
vdschema
Unified annotation schema and JSONL IO for vision datasets.
vdschema can be used by annotation pipelines to write JSONL annotation files
and by training pipelines to read those files back into typed Python objects.
Install
uv sync
Basic Usage
from vdschema import AnnotationReader, AnnotationWriter, DetectionAnnotation
writer = AnnotationWriter("output/detection/annotation_meta.jsonl", DetectionAnnotation)
writer.append(
filename="images/sample.jpg",
width=640,
height=480,
instances=[
{"id": 0, "category_id": 1, "bbox": [10, 20, 100, 200]},
],
)
writer.save()
annotations = AnnotationReader(
"output/detection/annotation_meta.jsonl",
DetectionAnnotation,
).load()
Development
uv sync --group dev
uv run python test_annotation_format.py
uv run ruff check .
uv build
Publishing
This repository includes a GitHub Actions workflow for publishing to PyPI with trusted publishing. Configure the PyPI project and GitHub environment before creating a release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vdschema-0.1.0.tar.gz.
File metadata
- Download URL: vdschema-0.1.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b365ffbc51e2c24bf6f905a8f79db5d8e83792aa46a0867c7f2b958685357318
|
|
| MD5 |
68856280a178007c582de6e1cf296085
|
|
| BLAKE2b-256 |
82719e8270b655cc1cfdec6270f13fe9056a85ecd534bda8652e49f57cf3687a
|
File details
Details for the file vdschema-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vdschema-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e05aeed041b3c9603a51333ba996309b6dfcc754c5b5a5181bfd43d0ced4700a
|
|
| MD5 |
80a2deb658f37b398bc671da9dae1275
|
|
| BLAKE2b-256 |
17e5913bf55f268ef0c0830e98f92bb3b107315d97c9efdffe02b594ad6e7fbd
|