Crates.io | lcax_core |
lib.rs | lcax_core |
version | 2.6.1 |
source | src |
created_at | 2024-05-08 11:45:46.915668 |
updated_at | 2024-11-04 14:11:47.005162 |
description | LCAx is an open, machine and human-readable data format for exchanging LCA results. |
homepage | https://lcax.kongsgaard.eu |
repository | https://github.com/ocni-dtu/lcax |
max_upload_size | |
id | 1233708 |
size | 36,171 |
The goal for LCAx is to make an open, machine and human-readable data format for exchanging LCA results, EPD's and assemblies.
We propose a simple three level data format with information on project, assembly and EPD level, written in an open data format and paired with a validator for a more robust and standardized format. We intend to create connections to existing tools and API’s.
Our goal is making LCA calculations more accessible, transparent, and open.
Head over to Rust's installation page
cargo update
cargo test --package lcax --target x86_64-unknown-linux-gnu
cargo run --target x86_64-unknown-linux-gnu --bin export-schema > lcax.schema.json
pip install maturin venv
maturin develop --extras tests,codegen --target x86_64-unknown-linux-gnu
source .venv/bin/activate .
datamodel-codegen \
--input lcax.schema.json \
--output packages/python/src/lcax/pydantic.py
cd packages/python
pytest tests/
maturin develop --extras doc --target x86_64-unknown-linux-gnu
mkdocs serve
Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
cd modules/lcax
wasm-pack build --features jsbindings
mv pkg/lcax* ../../packages/javascript/src
npm run test