<reponame>vmstarchenko/any_base<filename>examples/example.py
import any_base

base = any_base.IntBase(b'0123456789')
print(base)
print(base(1000))

base = any_base.IntBase(b'abc', b'~', True)
print(base)
print(base(-11))
print(base.sign)
print(base.base)
print(base.alphabet)
print(100, base(100), base.repair(base(100)))

print(base.alphabet, base.repair, b'abcd', base.repair(b'abcd'))
