This project provides a Python SDK and a micro API to interact with a LibreNMS deployment.
- Python 3.12
- Docker / Docker Compose
- Clone the repository.
- Create a
.env
file withLIBRENMS_API_URL
andLIBRENMS_API_TOKEN
. - Build the Docker image:
docker-compose build
. - Run the development stack:
docker-compose up
. - Access the API at
http://localhost:8000/docs
. - Endpoints support pagination via
limit
andoffset
query params. - Search descriptions using
/query?q=your+text
. - Run tests with
docker-compose run --rm app pytest --cov
.
- Build the image:
docker-compose --profile prod build
. - Start:
docker-compose --profile prod up -d
.