I am writing a Python wrapper for an API that supports the query parameters that have values (e.g. param1 below) and query parameters that do not have values value (e.g. param2 below) i.e.
https://example.com/service?param1=value1¶m2
The HTTP requests library famously supports parameters with values and parameters without values. However I need to be able to specify both types of parameters.