Installation
1. Clone the main project repository
git clone https://github.com/hec-dacm-p2p-2025/final-project.git
2. Create and activate a virtual environment
Windows
python -m venv .venv
.\.venv\Scripts\activate
macOS/Linux
python3 -m venv .venv
source .venv/bin/activate
3. Install the package in editable mode
pip install -e ../p2p-analytics/phase2_package
This install all required runtime dependencies and all developer tools: pytest, ruff, mypy, mkdocs, etc.. from the local package repository.
4. Verify installation
Open a Python shell and run:
import p2p_analytics
p2p_analytics.__file__
If no error appears and you see something like: ".../p2p-analytics/phase2_package/src/p2p_analytics/init.py" , the package is successfully installed.