Skip to content

0.3.0

Choose a tag to compare

@MateoGreil MateoGreil released this 05 Jul 07:18

Feature release: two new aggregation endpoints and automated PyPI publishing. ⚠️ Drops Python 3.9 (EOL) — Python ≥ 3.10 is now required.

Added

  • get_site_time_series() — whole-site rollup (GET /aggregations/site-time-series), supporting the same relative (time_ago_*) and absolute (start/end) time windows as the other aggregation methods. Defaults: measure_kind="FLOW", aggregation_level="HOUR", aggregation_type="SUM". (#27)
  • get_top_consumption() — per-device consumption breakdown (GET /aggregations/top-consumption): the top consuming devices with their percentage share, plus an "other" bucket. Reuses the shared aggregation query helper (relative & absolute windows), fully type-annotated. (#28)

Changed

  • 💥 Dropped Python 3.9 support (EOL since October 2025): requires-python raised to >=3.10, CI matrix and trove classifiers updated. If you are still on Python 3.9, pin comwatt-client==0.2.4. (#30)

CI

  • Automated PyPI publishing via GitHub Actions trusted publishing (no API tokens): publishing a GitHub release now builds the sdist + wheel and uploads them to PyPI. (#29)

Full Changelog: 0.2.4...0.3.0