suou.codecs
Coding/decoding utilities (e.g. Base64).
Functions
|
Decode a BIP-39 encoded string into bytes. |
|
Encode a bytestring using the BIP-39 wordlist. |
|
Decode a lowercase base32 encoded byte sequence. |
|
Encode bytes as a lowercase base32 string, with trailing '=' stripped. |
|
Wrapper around base64.urlsafe_b64decode() which deals with padding. |
|
Wrapper around base64.urlsafe_b64encode() which also strips trailing '='. |
|
Decode bytes from Crockford Base32. |
|
Encode bytes in Crockford Base32. |
|
Encode bytes in Crockford Base32, lowercased. |
|
json.dumps() but with stricter and smarter defaults, i.e. no whitespace in separators, and encoding dates as ISO strings. |
|
Quotes a string as CSS string literal. |
|
Wrapper around base64.urlsafe_b64decode() which deals with padding. |
|
Call base64.urlsafe_b64encode() with null bytes i.e. '0' padding to the start. |
|
Parse values from a Space Separated Values (SSV) string. |
|
Parse a string on a single line as multiple lines, each line separated by double colon (::). |
|
Force a string into its bytes representation. |
|
Convert a bytestring into a text string. |
|
Force a Base64 string into its urlsafe representation. |
|
Shorthand for want_bytes(want_urlsafe(s)). |
|
Classes
|
Enum values used by regex validators and storage converters. |