Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Argo Metadata Validator

DOI

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

Installation

Install the package from PyPi with

pip install argo-metadata-validator

From the Terminal

Once installed, you can run the tool to validate files from the terminal (Bash, Powershell, etc.) as follows

argo-validate file_1.json,file_2.json

To output the results to a JSON file you can specify a path for this, e.g.

argo-validate input/file_1.json --output-file output/results.json

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

From Python

As well as the command-line script version the validator can be used as a Python package, e.g. from Python scripts or Jupyter notebooks.

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.

Metadata

Release files for argo-metadata-validator 0.0.9a1

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

Source distribution (sdist)

Source distribution for argo-metadata-validator 0.0.9a1
File Size Uploaded
argo_metadata_validator-0.0.9a1.tar.gz 28.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for argo-metadata-validator 0.0.9a1
File Interpreter ABI Platform
argo_metadata_validator-0.0.9a1-py3-none-any.whl Python 3 none any Details

Total release size: 72.6 kB

Release files / argo_metadata_validator-0.0.9a1.tar.gz

Download URL argo_metadata_validator-0.0.9a1.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
50aa7c2bfe1dc87cc439fceaa8e963944bb1b04cf06299e37db90a7c0c2a3c96
BLAKE2b-256 checksum
How to use checksums
87dc6966a8798445c0bd0185007fca3509360c12e48552f4427c5fc6d82cdf92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.11.15 Linux/6.17.0-1018-azure

Release files / argo_metadata_validator-0.0.9a1-py3-none-any.whl

Download URL argo_metadata_validator-0.0.9a1-py3-none-any.whl
Size 44.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
635709aa1c92179d4d0cabd545d6b555b1d6b7d66b92f24706e0347e0b945c59
BLAKE2b-256 checksum
How to use checksums
5b73fc43d3afc85adb16d67868418af2118163c389941eef871f7d8f9689086b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.11.15 Linux/6.17.0-1018-azure
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