from querystring_parser import parser as qsparser from pprint import pprint query_dict = qsparser..parse("one=1&two=2&four=4") pprint(query_dict) # query_dict = {'four': '4', 'one': '1', 'two': '2'}