polymerist.genutils.textual.encoding

Encoding, hashing, and conversion of string to and from various formats

Attributes

hash_as_alphanum

INT_REGEX

Functions

hash_as_alphanumeric(→ str)

Map string to hash text which contains only alphanumeric + dash characters

representable_as_int(→ bool)

Check if a string corresponds to (i.e. can be represented as) a well-defined Python int

Module Contents

polymerist.genutils.textual.encoding.hash_as_alphanumeric(string: str, hash_algorithm: str = 'md5', str_encoding: str = 'utf-8', strip_b64_padding: bool = True) str[source]

Map string to hash text which contains only alphanumeric + dash characters

polymerist.genutils.textual.encoding.hash_as_alphanum
polymerist.genutils.textual.encoding.INT_REGEX
polymerist.genutils.textual.encoding.representable_as_int(string: str) bool[source]

Check if a string corresponds to (i.e. can be represented as) a well-defined Python int