DataCite XML Validator CLI
This is a simple Python CLI tool to validate DataCite files in XML format against the ETH Zurich metadata standards. This tool has been tested with Python version 3.8 to 3.13, it works for 3.10 to 3.13. The standards were based on DataCite version 4.6, the validator officially supports DataCite version 4.6 and 4.7.
Results
- If your XML file does not comply with the agreed upon standards, it will not continue to throw warnings.
- If your file complies with the standards, it will then get checked against our recommendations. These are called warnings.
- You can also opt to just get the result.
Installation
Clone the repository and open the folder.
(Optional) Create a virtual environment:
python -m venv .venv
# On Unix/macOS:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate
Then simply install the project:
pip install .
Usage
Within your python environment run the CLI tool with:
(python) eth-validate-datacite <file-path>
Note that this package has the functions validate_datacite_from_file and validate_datacite_from_doi which can be used in scripts.
Flags
We are providing three flags:
--skip-warningswill not check for any warnings (recommendations will not be checked)--hide-warningswill only give you the amount of warnings found, it will hide the actual warnings--result-onlywill only show you the result, not any info on the actual errors or warnings.
License
MIT License
Author
Developed by Yasmin Waldeck at WSL
Metadata
Release files for eth-datacite-validator 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eth_datacite_validator-0.1.4.tar.gz | 24.0 kB | Without provenance | Details for eth_datacite_validator-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eth_datacite_validator-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for eth_datacite_validator-0.1.4-py3-none-any.whl |
Total release size: 55.8 kB
Release files / eth_datacite_validator-0.1.4.tar.gz
| Download URL | eth_datacite_validator-0.1.4.tar.gz |
|---|---|
| Size | 24.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd24299a526d7a22d05279b78baf6669c268276700946ad35ff3d5994ab293ff
|
|
BLAKE2b-256 checksum How to use checksums |
fa3ad39fd584f513b469895bfa2535124db1bd6fc1acb0d3e07fd683508c4321
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / eth_datacite_validator-0.1.4-py3-none-any.whl
| Download URL | eth_datacite_validator-0.1.4-py3-none-any.whl |
|---|---|
| Size | 31.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1d5365d88c5ddf4cdb8372a08829f263e0116b3b97c1f85245d7d710206b7e5
|
|
BLAKE2b-256 checksum How to use checksums |
43e79eb96debd6472f582b45fa5289c4acffd8d8a61996d2c8514e12827988ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for eth-datacite-validator 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.