Development

Want to help? See CONTRIBUTING.md (setup, how to send a change, plugins), the Code of Conduct and the security policy for private vulnerability reports.

python3 -m venv .venv
pip install -r requirements-dev.txt
python -m pytest
  • About 600 tests (including a static check of the browser modules), no real network or nmap needed
  • nmap output tested against XML fixtures in tests/fixtures

Run locally:

NETLENS_DATA_DIR=./data python -m app.main   # open http://localhost:8080 and create your account (or set NETLENS_TOKEN=dev to skip the wizard)

nmap must be installed for real scans.

In this section