Skip to main content

A Python package that converts ILCD XML formats to their Python equivalents and export the same data back to XML.

Project description

pyeilcd

PyPI Python Version

pyeilcd is a Python package that provides a simple interface to validate extended-ILCD (eILCD) 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyeilcd-7.0.10.tar.gz (98.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyeilcd-7.0.10-py3-none-any.whl (106.6 kB view details)

Uploaded Python 3

File details

Details for the file pyeilcd-7.0.10.tar.gz.

File metadata

  • Download URL: pyeilcd-7.0.10.tar.gz
  • Upload date:
  • Size: 98.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pyeilcd-7.0.10.tar.gz
Algorithm Hash digest
SHA256 15b3536c3a6d1dfaa5e19301c4ad72718d779f7f031284acab70330a59e6259e
MD5 5cd48a1aec79f25df4a867efb08c2e61
BLAKE2b-256 b826cb6f926a0083c52c1d644efde22b2b9bbbbfe4e24407b388a76112c833e9

See more details on using hashes here.

File details

Details for the file pyeilcd-7.0.10-py3-none-any.whl.

File metadata

  • Download URL: pyeilcd-7.0.10-py3-none-any.whl
  • Upload date:
  • Size: 106.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pyeilcd-7.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ab7b677d8a0d0f301c0c320e316f651dd899e42a915f8d896d10b0017fb9cd3c
MD5 c7e9cf724fa6bda024076224f81f42a9
BLAKE2b-256 d58131c9ac69f47ff577e1b7b4d72c52af84c40a0da10afdf9a7852be62b83d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page