Miscellaneus Utils¶
- keg_elements.encoding.force_bytes(s, encoding='utf-8', errors='strict')¶
Force objects to byte representation
- keg_elements.http.base36_to_int(s)¶
Convert a base 36 string to an int. Raise ValueError if the input won’t fit into an int.
- keg_elements.http.int_to_base36(i)¶
Convert an integer to a base36 string.