Name | pyeilcd JSON |
Version |
7.0.12
JSON |
| download |
home_page | None |
Summary | A Python package that converts ILCD XML formats to their Python equivalents and export the same data back to XML. |
upload_time | 2024-12-16 06:40:01 |
maintainer | Nan LI |
docs_url | None |
author | Nan LI |
requires_python | >=3.8 |
license | None |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pyeilcd
[][pypi status]
[][pypi status]
[pypi status]: https://pypi.org/project/pyeilcd/
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](https://github.com/brightway-lca/pyilcd) library.
## Installation
You can install _pyeilcd_ via [pip] from [PyPI]:
```console
$ pip install pyeilcd
```
## Usage
```python
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.
```
## Publish
```bash
#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
```
## License
Distributed under the terms of the GPL 3.0 license,
_pyeilcd_ is free and open source software.
[pip]: https://pip.pypa.io/en/stable/
[PyPI]: https://pypi.org/project/pyeilcd/
Raw data
{
"_id": null,
"home_page": null,
"name": "pyeilcd",
"maintainer": "Nan LI",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Nan LI",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/a9/39/f2b5aeffb518a34eca048f7d3e1607b0acd833665a996af77526df991e6c/pyeilcd-7.0.12.tar.gz",
"platform": null,
"description": "# pyeilcd\n\n[][pypi status]\n[][pypi status]\n\n[pypi status]: https://pypi.org/project/pyeilcd/\n\npyeilcd is a Python package that provides a simple interface to validate extended-ILCD (eILCD) XML files against the ILCD schemas based on the [pyilcd](https://github.com/brightway-lca/pyilcd) library.\n\n## Installation\n\nYou can install _pyeilcd_ via [pip] from [PyPI]:\n\n```console\n$ pip install pyeilcd\n```\n\n## Usage\n\n```python\nfrom pyeilcd import validate_file_contact_dataset, Defaults\n\n# Override defaults if needed, else skip. Defaults are already set.\nDefaults.config_defaults(\"config.ini\") # Replace with your own config file\n\n# Validate the ContactDataset class against the ContactDataset schema.\nvalidate_file_contact_dataset(\"data/invalid/sample_contact_invalid.xml\") # Replace with your own XML file\n>> 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.\n```\n\n## Publish\n```bash\n#list existing tags\ngit tag\n#creat a new tag\ngit tag v7.0.12\n#push this tag to origin\ngit push origin v7.0.12\n\n```\n\n## License\n\nDistributed under the terms of the GPL 3.0 license,\n_pyeilcd_ is free and open source software.\n\n\n[pip]: https://pip.pypa.io/en/stable/\n[PyPI]: https://pypi.org/project/pyeilcd/\n",
"bugtrack_url": null,
"license": null,
"summary": "A Python package that converts ILCD XML formats to their Python equivalents and export the same data back to XML.",
"version": "7.0.12",
"project_urls": {
"homepage": "https://github.com/linancn/pyilcd",
"source": "https://github.com/linancn/pyilcd"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "be48a9e7d16a4742cd657764b1906265d1b9d882be3fc197c5aa432d1c454007",
"md5": "a8635d44ab63fbcb007c26504aff6023",
"sha256": "e3642b4aebc6ba6d2a4c5017701961f63901243892f1706ef9b60954d84fe298"
},
"downloads": -1,
"filename": "pyeilcd-7.0.12-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a8635d44ab63fbcb007c26504aff6023",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 106758,
"upload_time": "2024-12-16T06:39:59",
"upload_time_iso_8601": "2024-12-16T06:39:59.980009Z",
"url": "https://files.pythonhosted.org/packages/be/48/a9e7d16a4742cd657764b1906265d1b9d882be3fc197c5aa432d1c454007/pyeilcd-7.0.12-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a939f2b5aeffb518a34eca048f7d3e1607b0acd833665a996af77526df991e6c",
"md5": "c2d01ad7311147033eee9dda3fa3c558",
"sha256": "1efe76a5253029326afcfdcf4bed83f9404daaa76e040e59e302497fd54202c8"
},
"downloads": -1,
"filename": "pyeilcd-7.0.12.tar.gz",
"has_sig": false,
"md5_digest": "c2d01ad7311147033eee9dda3fa3c558",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 98998,
"upload_time": "2024-12-16T06:40:01",
"upload_time_iso_8601": "2024-12-16T06:40:01.322673Z",
"url": "https://files.pythonhosted.org/packages/a9/39/f2b5aeffb518a34eca048f7d3e1607b0acd833665a996af77526df991e6c/pyeilcd-7.0.12.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-16 06:40:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "linancn",
"github_project": "pyilcd",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyeilcd"
}