$ [sudo] pip install query-string
>>> import query_string >>> query_string.parse('https://site.org/index.php?k=v&k2=v2&k3=v3#anchor') {'k': 'v','k2': 'v2', 'k3': 'v3'} >>> query_string.parse('k=v&k2=v2&k3=v3') {'k': 'v','k2': 'v2', 'k3': 'v3'}
$ [sudo] pip install query-string
>>> import query_string >>> query_string.parse('https://site.org/index.php?k=v&k2=v2&k3=v3#anchor') {'k': 'v','k2': 'v2', 'k3': 'v3'} >>> query_string.parse('k=v&k2=v2&k3=v3') {'k': 'v','k2': 'v2', 'k3': 'v3'}