diff options
| author | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-26 19:35:33 +0545 |
|---|---|---|
| committer | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-26 19:35:33 +0545 |
| commit | 7a147c0da9fb515cdb751014b737a33701063a74 (patch) | |
| tree | 1e0c5a87c23153d8e8bf374f41f1ecb20d48fcf9 /config/quickshell/modules/overview/OverviewWidget.qml | |
| parent | f86f0e7c7819bc7dd970353e81e51985b3267a34 (diff) | |
config(hypr): refactor Weather.py — pathlib, typing, safer parsing & modular flow
- Convert to dataclasses (Location, WeatherData) and add richer typing/casts
- Replace os.path with pathlib for cache paths and file I/O
- Add robust numeric coercion helpers (coerce_int/float/number) and unit-safe parsing
- Introduce ensure_dict/ensure_list and improved safe_get for resilient JSON traversal
- Split geolocation into env/cache/ip providers and modular reverse-geocoding helpers
- Modularize cache/fetch logic (try_cached, fetch_fresh, try_stale) and unify output builder
- Safer handling of API cache timestamp/TTL and stale-cache fallback
- Add simple tests for coercion functions
Diffstat (limited to 'config/quickshell/modules/overview/OverviewWidget.qml')
0 files changed, 0 insertions, 0 deletions
