A Python module for base62 encoding. Ported from PHP code that I wrote in mid-2000, which can be found on here.
pip install pybase62
>>> import base62
>>> base62.encode(34441886726)
'base62'
>>> base62.decode('base62')
34441886726
You may run some test cases to ensure all functionalities are operational.
py.test -v
If pytest
is not installed, you may want to run the following commands:
pip install -r tests/requirements.txt