Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ocni-dtu/lcax
LCAx is a open, verifiable, machine and human-readable LCA exchange format
https://github.com/ocni-dtu/lcax
Last synced: about 2 months ago
JSON representation
LCAx is a open, verifiable, machine and human-readable LCA exchange format
- Host: GitHub
- URL: https://github.com/ocni-dtu/lcax
- Owner: ocni-dtu
- License: apache-2.0
- Created: 2023-05-12T14:35:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-27T09:50:12.000Z (3 months ago)
- Last Synced: 2024-10-29T22:31:58.639Z (2 months ago)
- Language: Rust
- Homepage: http://lcax.kongsgaard.eu/
- Size: 90.2 MB
- Stars: 46
- Watchers: 5
- Forks: 3
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- open-sustainable-technology - LCAx - The goal for LCAx is to make an open, machine and human-readable data format for exchanging LCA results, EPD's and assemblies. (Industrial Ecology / Life Cycle Assessment)
README
# LCAx
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.
![LCAx](./docs/assets/benchmark.png)
# Rust
## Install Rust
Head over to Rust's installation [page](https://www.rust-lang.org/tools/install)## Install Rust Dependencies
```bash
cargo update
```## Run Rust Tests
```bash
cargo test --package lcax --target x86_64-unknown-linux-gnu
```## Export JSON Schema
```bash
cargo run --target x86_64-unknown-linux-gnu --bin export-schema > lcax.schema.json
```# Python
## Install Python Dependencies
```bash
pip install maturin venv
```## Run Python Tests
```bash
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/
```## Build Documentation
```bash
maturin develop --extras doc --target x86_64-unknown-linux-gnu
mkdocs serve
```# JavaScript/TypeScript
Install wasm-pack
```bash
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
```## Build JS Package
```bash
cd modules/lcax
wasm-pack build --features jsbindings
mv pkg/lcax* ../../packages/javascript/src
```## Run JS Tests
```bash
npm run test
```