Skip to main content

Yarrow: a data format for computer vision


PyPI version Documentation Status Test and Deploy Code style: black Imports: isort

What is it ?

yarrow is a python package to parse, manipulate and serialize data following the yarrow data schema. This format is oriented around computer vision data and is heavily inspired by the COCO dataset format and was initially developed and used in Michelin projects.

The full description can be found here with the rules on how to fill different fields.

How to install

pip install yarrowformat

Install it locally

make setup
source .venv/bin/activate

How to use

You can find multiple examples in the examples directory and the package API in the documentation (still WIP). Here are a few examples.

import json

from yarrow import YarrowDataset

# say you have a yarrow file at path
file_path = "path/to/file.yarrow.json"

yar_set = YarrowDataset.parse_file(file_path)
# You now have a YarrowDataset !

# Add annotations
annot = Annotation(...) # see documentation for parameters
yar_set.add_annotation(annot)

# now save it somewhere else
with open("path/to/other/file.yarrow.json", "w") as fp:
    json.dump(yar_set.pydantic().model_dump(exclude_none=True), fp, default=str)

Format explanation

License

Apache 2.0

Metadata

Release files for yarrowformat 2.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yarrowformat 2.1.2
File Size Uploaded Provenance Actions
yarrowformat-2.1.2.tar.gz 35.9 kB Without provenance Details for yarrowformat-2.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yarrowformat 2.1.2
File Interpreter ABI Platform Actions
yarrowformat-2.1.2-py3-none-any.whl Python 3 none any Details for yarrowformat-2.1.2-py3-none-any.whl

Total release size: 57.8 kB

Release files / yarrowformat-2.1.2.tar.gz

Download URL yarrowformat-2.1.2.tar.gz
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4e2e84ec5a2ea7683faea89539636a2321024ca37195e656f5b20c9045b0ce5d
BLAKE2b-256 checksum
How to use checksums
c2d7fc343575b4cef442d8c95c8c0f3ee0b6b0b32cd5e533c147b8f9e5853262
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / yarrowformat-2.1.2-py3-none-any.whl

Download URL yarrowformat-2.1.2-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48d3886fedbe289c65dbe64656057e4f93f9c57214a221d80d604ca7a083cf11
BLAKE2b-256 checksum
How to use checksums
8e5f72a3f978953f31ed831f02119acd4aae594ed6c04ae1438d69c9978c76ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for yarrowformat 2.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page