module documentation

Convert numbers from base 10 integers to base X strings and back again.

Sample usage:

>>> base20 = BaseConverter('0123456789abcdefghij')
>>> base20.encode(1234)
'31e'
>>> base20.decode('31e')
1234
>>> base20.encode(-1234)
'-31e'
>>> base20.decode('-31e')
-1234
>>> base11 = BaseConverter('0123456789-', sign='$')
>>> base11.encode(-1234)
'$-22'
>>> base11.decode('$-22')
-1234
Constant BASE16​_ALPHABET Undocumented
Constant BASE2​_ALPHABET Undocumented
Constant BASE36​_ALPHABET Undocumented
Constant BASE56​_ALPHABET Undocumented
Constant BASE62​_ALPHABET Undocumented
Constant BASE64​_ALPHABET Undocumented
Variable base16 Undocumented
Variable base2 Undocumented
Variable base36 Undocumented
Variable base56 Undocumented
Variable base62 Undocumented
Variable base64 Undocumented
Class ​Base​Converter Undocumented
BASE16_ALPHABET: str =

Undocumented

Value
'0123456789ABCDEF'
BASE2_ALPHABET: str =

Undocumented

Value
'01'
BASE36_ALPHABET: str =

Undocumented

Value
'0123456789abcdefghijklmnopqrstuvwxyz'
BASE56_ALPHABET: str =

Undocumented

Value
'23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz'
BASE62_ALPHABET: str =

Undocumented

Value
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
BASE64_ALPHABET =

Undocumented

Value
BASE62_ALPHABET+'-_'
base16 =

Undocumented

base2 =

Undocumented

base36 =

Undocumented

base56 =

Undocumented

base62 =

Undocumented

base64 =

Undocumented