Introduction In this tutorial we will check how to compress a string using the Brotli compression algorithm. You can check the full specification of the algorithm here. We will be using this library, which includes a Python module. As explained in the Python section of the GitHub page of the library, you can install it using …
Python: Converting string to bytes object
In this post, we will check how to convert a Python string to a bytes object. Bytes objects are immutable sequences of single bytes in the range between o and 255 (inclusive). Introduction In this post, we will check how to convert a Python string to a bytes object. Bytes objects are immutable sequences …
Continue reading "Python: Converting string to bytes object"