Install
=======
ReLife is a Python package. It is uploaded on the `Python Package Index (PyPi) `_. Before you install ReLife, make
sure Python **3.11 (or newer)** is installed.
Install ReLife with `pip `_ :
.. code-block::
$ python -m pip install relife
**Optional but recommended :** create and activate a virtual environment before.
For Linux users :
.. code-block::
$ /usr/bin/python3.** -m venv /relife
$ source /relife/bin/activate
For Windows users :
.. code-block::
$ py -3.** -m venv \relife
$ .\\relife\Scripts\activate
**From source :** to install ReLife from source, go to the `ReLife repository `_. Clone the codebase and install ReLife with `pip `_.
.. code-block::
$ git clone https://github.com/rte-france/relife.git
$ cd relife
$ python -m pip install .
For contributors, optional development dependencies (type checker, documentation builder, etc.) are available. Use this command instead :
.. code-block::
$ python -m pip install -e ".[dev]"