aboutsummaryrefslogtreecommitdiffstats
path: root/release.sh
diff options
context:
space:
mode:
authorprabinpanta0 <pantaprabin30@gmail.com>2025-10-26 19:35:33 +0545
committerprabinpanta0 <pantaprabin30@gmail.com>2025-10-26 19:35:33 +0545
commit7a147c0da9fb515cdb751014b737a33701063a74 (patch)
tree1e0c5a87c23153d8e8bf374f41f1ecb20d48fcf9 /release.sh
parentf86f0e7c7819bc7dd970353e81e51985b3267a34 (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 'release.sh')
0 files changed, 0 insertions, 0 deletions
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage