VELD specification
Project description
This package contains the validator for the VELD metadata schema.
For the specification of the schema, see here: https://github.com/acdh-oeaw/VELD_spec
how to use the validator
import with:
from veld_spec import validate
Use it to validate veld yaml files, either by passing the content as python dictionary or by passing the name of a yaml file:
validate(dict_to_validate={"x-veld": {...}})
validate(yaml_to_validate="veld_file.yaml")
It will return a tuple which:
- if the veld yaml content is valid, the first element is
Trueand the secondNone
(True, None)
- if the veld yaml content is invalid, the first element is
Falseand the second contains the error message.
(False, 'root node x-veld missing')
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
veld_spec-24.12.19.tar.gz
(17.6 kB
view details)
File details
Details for the file veld_spec-24.12.19.tar.gz.
File metadata
- Download URL: veld_spec-24.12.19.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12e95770fdf2deb729fa8a0cbe8c19c73db9cb36edf5b3b0f5638b200a4c0b18
|
|
| MD5 |
37b6d77873ea210780276c03794ee308
|
|
| BLAKE2b-256 |
cae9756d80493d1fbe6a8e5030adcd4fc977519fa514819c03efcf14b5fc1c9f
|