Install#

AssetLife is a Python package. It is uploaded on the Python Package Index (PyPi). Before you install AssetLife, make sure Python 3.11 (or newer) is installed.

Install AssetLife with pip :

$ python -m pip install assetlife

Optional but recommended : create and activate a virtual environment before.

For Linux users :

$ /usr/bin/python3.** -m venv <venv_location>/assetlife
$ source <venv_location>/assetlife/bin/activate

For Windows users :

$ py -3.** -m venv <venv_location>\assetlife
$ .\<venv_location>\assetlife\Scripts\activate

From source : to install AssetLife from source, go to the AssetLife repository. Clone the codebase and install AssetLife with pip.

$ git clone https://github.com/assetlife-project/assetlife.git
$ cd assetlife
$ python -m pip install .

For contributors, optional development dependencies (type checker, documentation builder, etc.) are available. Use this command instead :

$ python -m pip install -e ".[dev]"