def set_parameter(self, key, value):
if value is None or isinstance(value, (int, float, bool)):<EOL><INDENT>value = str(value)<EOL><DEDENT>if key.endswith('<STR_LIT>'):<EOL><INDENT>value = urlsafe_b64encode(value.encode('<STR_LIT:utf-8>'))<EOL>value = value.replace(b('<STR_LIT:=>'), b('<STR_LIT>'))<EOL><DEDENT>self._parameters[key] = value<EOL>
Set a url parameter.

Parameters
----------
key : str
    If key ends with '64', the value provided will be automatically
    base64 encoded.