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.
Metadata
Release files for argo-metadata-validator 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| argo_metadata_validator-0.0.9.tar.gz | 28.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| argo_metadata_validator-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 72.5 kB
Release files / argo_metadata_validator-0.0.9.tar.gz
| Download URL | argo_metadata_validator-0.0.9.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28090c8a900a0f447c03c081bae888441be31c680e1e1a2be1674d1d8eea0083
|
|
BLAKE2b-256 checksum How to use checksums |
066980a7184f117e16f177e622f4cf4368a3c9685aaa1b122227f9a222e8cab3
|
| 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.9-py3-none-any.whl
| Download URL | argo_metadata_validator-0.0.9-py3-none-any.whl |
|---|---|
| Size | 44.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
364233ef8ec87c0bac299f15941f54549e30f91a30eb4e18a41c09c59dae7354
|
|
BLAKE2b-256 checksum How to use checksums |
14bb4254c3266f381d84a65874a30fcb8361746807e4e5b2e130e94d8f7db55a
|
| 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
|