basewhat 1.1

Last updated:

0 purchases

basewhat 1.1 Image
basewhat 1.1 Images
Add to Cart

Description:

basewhat 1.1

basewhat
A Python utility for encoding/decoding arbitrary-base numbers.
Project home page: https://helixteamhub.cloud/paulbissex/projects/basewhat/
Author: Paul Bissex [email protected]
Usage
>>> b16 = BaseWhat(base=16)
>>> b16.from_int(65535)
'FFFF'
>>> b16.to_int('DECAFBAD')
3737844653
>>> b32 = BaseWhat(digits="23456789ABCDEFGHJKLMNPQRSTUVWXYZ")
>>> b32.from_int(32767)
'ZZZ'
>>> b32.from_int(9223372036854775808)
'A222222222222'
>>> b32.to_int('1900MIXALOT')
Traceback (most recent call last):
...
ValueError: Not a valid base 32 number

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.