lib.Uri.query_dict: Add property #166

Merged
Jan Lindemann merged 1 commit from jan/feature/20261103-lib-uri-query-dict-add-property into master 2026-11-03 18:30:38 +01:00 AGit

2026-11-03

lib.Uri.query_dict: Add property
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m58s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m49s
CI / Packaging test (pull_request) Successful in 0s
Uri exposes the query as a raw string only, so a consumer that wants the
query's key/value pairs has to parse the string itself with urllib.parse.

Add a cached property query_dict that returns None when the Uri has no
query and a dictionary of the query's key/value pairs when it does.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-11-03 17:40:21 +01:00