Skip to main content

LCAx is an open, machine and human-readable data format for exchanging LCA results.

Project description

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

Rust

Install Rust

Head over to Rust's installation page

Install Rust Dependencies

cargo update

Run Rust Tests

cargo test --package lcax --target x86_64-unknown-linux-gnu

Export JSON Schema

cargo run --target x86_64-unknown-linux-gnu --bin export-schema > lcax.schema.json

Python

Install Python Dependencies

pip install maturin venv

Run Python Tests

maturin develop --extras tests,codegen --target x86_64-unknown-linux-gnu
source .venv/bin/activate .

datamodel-codegen \
--input lcax.schema.json \
--input-file-type jsonschema \
--output packages/python/src/lcax/pydantic.py
          
cd packages/python
pytest tests/

Build Documentation

maturin develop --extras doc --target x86_64-unknown-linux-gnu
mkdocs serve

JavaScript/TypeScript

Build JS Package

wasm-pack build --features jsbindings
mv pkg/lcax* packages/javascript/src

Run JS Tests

npm run test

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

lcax-1.7.0.tar.gz (774.3 kB view hashes)

Uploaded Source

Built Distribution

lcax-1.7.0-cp310-abi3-manylinux_2_34_x86_64.whl (476.5 kB view hashes)

Uploaded CPython 3.10+ manylinux: glibc 2.34+ x86-64

Supported by

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