GHGA Validator
Project description
Ghga Validator
GHGA Validator
Description
ghga-validator is a Python library and command line utility to validate metadata w.r.t. its compliance to the GHGA Metadata Model. It takes metadata encoded in JSON of YAML format and produces a validation report in JSON format.
Installation
We recommend installing the latest version of ghga-validator using pip:
pip install -U ghga-validator
Usage
Usage: ghga-validator [OPTIONS]
GHGA Validator
ghga-validator is a command line utility to validate metadata w.r.t. its
compliance to the GHGA Metadata Model. It takes metadata encoded in JSON of
YAML format and produces a validation report in JSON format.
Options:
-s, --schema PATH Path to metadata schema (modelled using
LinkML) [required]
-i, --input FILE Path to submission file in JSON format to be
validated [required]
-r, --report FILE Path to resulting validation report
[required]
--target-class TEXT The root class name
--install-completion [bash|zsh|fish|powershell|pwsh]
Install completion for the specified shell.
--show-completion [bash|zsh|fish|powershell|pwsh]
Show completion for the specified shell, to
copy it or customize the installation.
--help Show this message and exit.
Development
For setting up the development environment, we rely on the devcontainer feature of vscode in combination with Docker Compose.
To use it, you have to have Docker Compose as well as vscode with its "Remote - Containers"
extension (ms-vscode-remote.remote-containers
) installed.
Then open this repository in vscode and run the command
Remote-Containers: Reopen in Container
from the vscode "Command Palette".
This will give you a full-fledged, pre-configured development environment including:
- infrastructural dependencies of the service (databases, etc.)
- all relevant vscode extensions pre-installed
- pre-configured linting and auto-formating
- a pre-configured debugger
- automatic license-header insertion
Moreover, inside the devcontainer, a convenience commands dev_install
is available.
It installs the service with all development dependencies, installs pre-commit.
The installation is performed automatically when you build the devcontainer. However,
if you update dependencies in the ./setup.cfg
or the
./requirements-dev.txt
, please run it again.
License
This repository is free to use and modify according to the Apache 2.0 License.
Readme Generation
This readme is autogenerate, please see readme_generation.md
for details.
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
Built Distribution
File details
Details for the file ghga_validator-1.0.0.tar.gz
.
File metadata
- Download URL: ghga_validator-1.0.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d3e96bd96b275d4c3c8e56639869e60b2b77f8e104928861afc1cc44534a02f |
|
MD5 | 91fd275f28d64dcaae7c38d8065f5cd4 |
|
BLAKE2b-256 | ea966f136a3530bd0603d7a815141a03f81d48f37b95bbd6b6965519bb0d5a41 |
File details
Details for the file ghga_validator-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ghga_validator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2a8afee523ec1b18a928a24f84bb15c09542d22dd90fd70af05bb07a254cf8c |
|
MD5 | 1eb47e19af090894308fa0849d082672 |
|
BLAKE2b-256 | 7300fd93ce7ad003b830f2068c2adfd4aa3d3e542e0c8863005332f6159af389 |