Skip to main content

Validator for ARGO sensor metadata JSON

Project description

Argo Metadata Validator

Validator for ARGO sensor metadata JSON.

Schema definitions are taken from https://github.com/euroargodev/sensor_metadata_json.

Package: https://pypi.org/project/argo-metadata-validator

Usage

Install the package with pip install argo-metadata-validator.

CLI

You can validate files from the command line as follows

argo-validate file_1.json,file_2.json

To see the available CLI options you can run argo-validate --help.

From Python

See demos/argo_validator.ipynb for an example of how to validate and parse input metadata from within Python scripts.

Development

Poetry is used to manage the building of this package and managing the package dependencies.

To run the script locally:

  • poetry install
  • poetry run argo-validate

For example, from the root of the repo

poetry run argo-validate tests/files/valid_sensor.json

To run lint/tests, first install dev dependencies poetry install -with dev

  • poetry run task lint - Check linting
  • poetry run task format - Autofix lint errors (where possible)
  • poetry run task test - Run unit tests

Releasing a new version

This done by creating a new release in Github. Make sure the created tag follows SemVer conventions.

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

argo_metadata_validator-0.0.3.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

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

argo_metadata_validator-0.0.3-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file argo_metadata_validator-0.0.3.tar.gz.

File metadata

  • Download URL: argo_metadata_validator-0.0.3.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for argo_metadata_validator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c4e1d709181782488cba09b38f001449a1eadfecb3a1f763c752eec0aa5b700e
MD5 adf387cc7c5f9d89b5be6cab9ce21eec
BLAKE2b-256 9f5776c85c096538bfdb2592e2718c281681d3184bc3b8a5f9f693d89ee5b9dc

See more details on using hashes here.

File details

Details for the file argo_metadata_validator-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for argo_metadata_validator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ba7185931b4106d94fa99e5e9048f7a72836ab6c2486b02894a53dab3244b167
MD5 c2730854b0f1b2cda5f70b660028e314
BLAKE2b-256 5e8d2d316418c2b82666d10bbcea1f48f3b6eff8341f9b5dece9f2f2f25b5082

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