This is the backend API for RADAR-Frontend, a system for interactive exploration of anomaly detection algorithms in different types of data.
The API exposes endpoints to run pipelines, manage data, and execute algorithms provided by the RADAR library.
- Modular pipeline execution
- Integration with the RADAR anomaly detection library
- Support for time series and tabular data
- RESTful API built with FastAPI
- Python: 3.10 (tested with 3.10.18)
- Pytorch: 2.7.1 (tested with with CUDA 11.8 support)
conda(optional but recommended)
git clone https://github.com/ari-dasci/RADAR-API.gitgit clone https://github.com/ari-dasci/RADAR.gitconda create --prefix ./envs/radar-env python=3.10.18
conda activate ./envs/radar-env
conda env update --prefix /path/to/env --file environment.yml --prune # Replace /path/to/env with the location of your Conda environment.
#Make sure Pytorch is installed now, if you have CUDA 11.8
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install pytorch-lightningNow install the API with
pip install "fastapi[standard]"
pip install "uvicorn[standard]"Export path to RADAR library
export PYTHONPATH=«route_to_RADAR»uvicorn main:app --reload --host 0.0.0.0 API will be available at: http://localhost:8000
Swagger documentation: http://localhost:8000/docs
The easiest way to get the complete RADAR system running is via Docker. A single image bundles the Angular frontend, the FastAPI backend, and the RADAR library.
docker pull beatrizbellogarcia/radar:latest
docker run -d -p 80:80 --name radar beatrizbellogarcia/radar:latestThen open http://localhost in your browser.
git clone https://github.com/ari-dasci/RADAR-API.git
cd RADAR-API
docker build -f docker/Dockerfile -t radar-unified .
docker run -d -p 80:80 --name radar radar-unifiedThis will automatically:
- Clone and compile the RADAR-Frontend Angular app.
- Clone the RADAR library (if not already present locally).
- Install all Python dependencies and bundle everything into a single lightweight image.
# Stop the container
docker stop radar
# Start it again
docker start radar
# View logs
docker logs -f radar
# Remove the container
docker rm -f radarPlease visit the frontend repository for:
-
Full documentation
-
Usage examples
-
UI for interacting with the API