Skip to main content

Yarrow Format parsing lib

Project description

Yarrow: a data format for computer vision


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.

How to install

pip install yarrow

How to use

You can find multiple examples in the examples directory and soon in a proper documentation (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().dict(), fp, default=str)

License

Apache 2.0

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

pyyarrow-1.0.3.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

pyyarrow-1.0.3-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file pyyarrow-1.0.3.tar.gz.

File metadata

  • Download URL: pyyarrow-1.0.3.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.2

File hashes

Hashes for pyyarrow-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c50990fb5c423405849c1dd86be5d86cb0678c3d08237fa3951017b07f1da45f
MD5 42ed6db994ec0f9865ebc0b9e45bbc80
BLAKE2b-256 d6216959a5c1479d81453c45d11e2b42f542be928ec91a60ae843db14d166b6f

See more details on using hashes here.

File details

Details for the file pyyarrow-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyyarrow-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.2

File hashes

Hashes for pyyarrow-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 530d26dab79d191afc25129a3607e365178edefb86c431c82add7ec6889ed1c1
MD5 dd16bf484182ab59641c76ea5b55fe3b
BLAKE2b-256 c0dfd068e7657b5fcf64074ec589671a8f694ca0ab515ddc6fe1db3eae47431d

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