Installation
User Installation
You can install Melodie via pip:
pip install Melodie
Developer Installation
To contribute to Melodie, first clone the repository and set up an editable install using pip.
git clone git@github.com:ABM4ALL/Melodie.git
cd Melodie
# Create and activate a virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
# Install in editable mode. This also installs all required dependencies.
pip install -e .
To verify the installation and check your changes, run:
# Run pytest to verify the installation and check your changes.
pytest
To build documentation locally, use the following commands:
# Install doc build requirements
pip install -r requirements.txt
# Build docs
cd docs
make html
# Or, for live-reloading as you edit:
# sphinx-autobuild source ../_build/html -E -a
To keep local repository up to date, please follow these steps:
git pull origin <branch-name>
# Test the installation
pytest
Dependency Note
Melodie’s core functionality relies on several key packages:
Python 3.8+
numpy
pandas
matplotlib
scikit-opt
networkx
sqlalchemy (Database connection)
rpyc (Parallel computing)
flask (Web interface)
Python versions 3.8 through 3.14 are tested and supported. When no explicit parallel mode is provided, Melodie defaults to thread-based parallel execution on Python 3.13+ and process-based execution on older Python versions.
For detailed dependencies, please visit requirements.txt