Skip to content

Instantly share code, notes, and snippets.

@lackas
lackas / fetch_bulk_features.py
Created February 3, 2026 09:23
PyViCare issue #431: Compare bulk vs individual feature fetching
#!/usr/bin/env python3
"""Compare bulk vs individual feature fetching for PyViCare issue #431.
Tests whether the `includeDevicesFeatures=true` parameter can replace
individual per-device API calls.
Reads credentials from .secrets file in the same directory:
VICARE_USERNAME=...
VICARE_PASSWORD=...
VICARE_TOKEN=... (client_id)