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
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 installpoetry 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 lintingpoetry 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
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 argo_metadata_validator-0.0.8.tar.gz.
File metadata
- Download URL: argo_metadata_validator-0.0.8.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.11.14 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b64cacbc0a928eb10cb231197be46500349af59d960a62f35f1cee8d79eb1e6
|
|
| MD5 |
98e0379f36584bdb7e3b1af59a7f772f
|
|
| BLAKE2b-256 |
203f197377197817bc801c0f52d95644abc0b3abf619ba8777cf089f87b0ee88
|
File details
Details for the file argo_metadata_validator-0.0.8-py3-none-any.whl.
File metadata
- Download URL: argo_metadata_validator-0.0.8-py3-none-any.whl
- Upload date:
- Size: 44.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.11.14 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95a1a92f56628db09d87d3f6c517771b328ab761ff14e369195f5a034e0c200f
|
|
| MD5 |
902d34f0f4a8e2759b970e827b232f97
|
|
| BLAKE2b-256 |
91d467d62f6c98a156fb49aa42d1368b3856c27eac03bf3680fd5a9808dfdf32
|