A Python package that converts ILCD XML formats to their Python equivalents and export the same data back to XML.
Project description
pyeilcd
pyeilcd is a Python package that provides a simple interface to validate ILCD XML files against the ILCD schemas based on the pyilcd library.
Installation
You can install pyeilcd via pip from PyPI:
$ pip install pyeilcd
Usage
from pyeilcd import validate_file_contact_dataset, Defaults
# Override defaults if needed, else skip. Defaults are already set.
Defaults.config_defaults("config.ini") # Replace with your own config file
# Validate the ContactDataset class against the ContactDataset schema.
validate_file_contact_dataset("data/invalid/sample_contact_invalid.xml") # Replace with your own XML file
>> data/contact/sample_contact_invalid.xml:17:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_1: Element '{http://lca.jrc.it/ILCD/Common}class', attribute 'level': 'a' is not a valid value of the atomic type '{http://lca.jrc.it/ILCD/Common}LevelType'. data/contact/sample_contact_invalid.xml:17:0:ERROR:SCHEMASV:SCHEMAV_CVC_IDC: Element '{http://lca.jrc.it/ILCD/Common}class', attribute 'level': Warning: No precomputed value available, the value was either invalid or something strange happened.
License
Distributed under the terms of the GPL 3.0 license, pyeilcd is free and open source software.
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 pyeilcd-7.0.7.tar.gz.
File metadata
- Download URL: pyeilcd-7.0.7.tar.gz
- Upload date:
- Size: 98.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da3dd3cb0219d7c69e2747dc589fb25d3781c4a879c24dd76df2c796f74bf3ad
|
|
| MD5 |
e43fc42412e16450f8f20d1114c3b04f
|
|
| BLAKE2b-256 |
841e63ec3b4de507eb028eb9ff9a00e04e1dae4a9a829315d6e059d29a0d72b3
|
File details
Details for the file pyeilcd-7.0.7-py3-none-any.whl.
File metadata
- Download URL: pyeilcd-7.0.7-py3-none-any.whl
- Upload date:
- Size: 106.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b51569b26d89821ac89655b49cafee7feb86a203a7078af3477161c470477b13
|
|
| MD5 |
fec0be9c66a82c51293f295d5120083c
|
|
| BLAKE2b-256 |
4c5339b3ad868763f90b110be8ad63bb25be2b6f030482e9607b7a9b1d3e6d22
|