Skip to content

ansys/grantami-bomanalytics

Repository files navigation

PyAnsys Python PyPI GH-CI Codecov MIT Black pre-commit.ci status

PyGranta BoM Analytics

The MI Restricted Substances and MI Sustainability solutions for Granta MI include REST APIs for:

  • Evaluating compliance of products, assemblies, specifications, and materials against legislations.
  • Evaluating the environmental performance of products, assemblies, materials and processes.

This package abstracts automatically-generated code into an easy-to-use client library.

Dependencies

To use the grantami-bomanalytics package, you must have access to a Granta MI server that includes MI Restricted Substances and Sustainability Reports 2024 R2 or later.

MI Restricted Substances and MI Sustainability are licensed separately. Endpoints available to end users depend on the available licenses.

The ansys.grantami.bomanalytics package currently supports Python version 3.10 through 3.13.

Installation

To install the latest PyGranta BoM Analytics release from PyPI, run this command:

pip install ansys-grantami-bomanalytics

To install a release compatible with a specific version of Granta MI Restricted Substances and Sustainability Reports, install the PyGranta metapackage with a requirement specifier:

pip install pygranta==2023.2.0

To see which individual PyGranta package versions are installed with each version of the PyGranta metapackage, consult the Package versions section of the PyGranta documentation.

Alternatively, to install the latest development version from the PyGranta BoM Analytics repository, run this command:

pip install git+https://github.com/ansys/grantami-bomanalytics.git

To install a local development version with Git and Poetry, run these commands:

git clone https://github.com/ansys/grantami-bomanalytics
cd grantami-bomanalytics
poetry install

The preceding commands install the package in development mode so that you can modify it locally. Your changes are reflected in your Python setup after restarting the Python kernel.