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 User Guide

PyPI Python Version

English | 中文

Note: This package supports Python versions 3.8 to 3.12 only.

1. Introduction

pyeilcd is a Python package that provides a simple interface to validate extended-ILCD (eILCD) XML files against the ILCD schemas. It is built on top of the pyilcd library.


2. pyeilcd Usage

(1) Installation Instructions

You can install pyeilcd via pip from PyPI:

$ pip install pyeilcd

(2) Functionalities

pyeilcd offers the following key functionalities:

  • Performs schema validation on eILCD XML files.

  • Supports multiple ILCD standard-compliant dataset types (e.g., ContactDataset, ProcessDataset, etc.).

  • ​Leverages core validation capabilities from pyilcd.

(3) Usage Examples

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.

3. Automatic Building and Publishing (CI/CD)

This project supports automatic building and publishing. When you push a git tag named with the v format to the repository, it will trigger the workflow automatically. For example:

#list existing tags
git tag
#creat a new tag
git tag v7.0.12
#push this tag to origin
git push origin v7.0.12

4. 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.13.tar.gz (99.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.13-py3-none-any.whl (107.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyeilcd-7.0.13.tar.gz
  • Upload date:
  • Size: 99.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyeilcd-7.0.13.tar.gz
Algorithm Hash digest
SHA256 36bd0494ed030df6a5bad56c76ff7fbab41db0d8ddb6a1634dcd64081e39498d
MD5 30ee1b625b522f6cbcc65eb85e52553e
BLAKE2b-256 4d98cd778bb69fdbad445a93d305ce110c14367067a659c99290034430932592

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyeilcd-7.0.13-py3-none-any.whl
  • Upload date:
  • Size: 107.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyeilcd-7.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 d18f4b7745b429682d804eaf69bf285e1615c2b2551e9ac6809bb1a2261086d3
MD5 adc8217185b5a6e41cb378789a40314a
BLAKE2b-256 49a8930556f88b695f60f491b9333655221fba33d036e10ac3c974f719d55ab6

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