waterland is an Python app for calculating the number of 1s islands on a 2D array of 1s and 0s.
If you have docker and docker compose installed you can run this app just by One can run the app with using docker by running the following command:
./run.sh <path_to_file>If you don't have docker installed you can run the app by following the steps below.
- python3
- git
- pip
- virtualenv
-
Setup and activate virtualenv.
virtualenv -p python3 venv source venv/bin/activate -
Install the package.
pip install -e src
python -m waterland <path_to_file>-
Install package in development mode.
pip install -e src[dev]
-
Run tests.
pytest