Convert

Utility class for string formatting, Base64 encoding/decoding, Hex, Binary, and type conversions.

Methods

@staticmethod def reverse(string: str) -> str

Reverses input string sequence.

@staticmethod def to_real_name(string: str) -> str

Capitalizes first character while lowercasing trailing characters.

@staticmethod def to_base64 / from_base64(string: str) -> str

Encodes or decodes text to/from UTF-8 Base64.

@staticmethod def to_hex / from_hex / to_binary / from_binary(string: str) -> str

Converts strings to and from Hexadecimal and Binary representations.