You will need the following installed on your system:
If you would like to update the api, please follow the instructions below.
-
Create a local virtual environment and activate it:
python -m venv .venv source .venv/bin/activate # on Windows use .venv\Scripts\activate
If you are using Anaconda, you can create a virtual environment with:
conda create -n s-index-api-dev-env python=3.13 conda activate s-index-api-dev-env
-
Install the dependencies for this package.
pip install -r requirements.txt
For developer mode:
python app.py --host $HOST --port $PORTor
python app.py --dev # for flask development serverFor production mode:
python3 app.py --host $HOST --port $PORTExample Docker run command:
docker run -p 5000:5000 your-app-imageThe application provides several health check endpoints:
/echo- Basic application health check/up- Health check endpoint
API documentation is available at /docs when the application is running. This provides an interactive Swagger UI for exploring and testing the API endpoints.