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
.envfile withLIBRENMS_API_URLandLIBRENMS_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
limitandoffsetquery 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.