Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 861 Bytes

README.rst

File metadata and controls

48 lines (29 loc) · 861 Bytes

Build Status

A Python module for base62 encoding. Ported from PHP code that I wrote in mid-2000, which can be found on here.

Installation

PyPI

pip install pybase62

Usage

>>> import base62

>>> base62.encode(34441886726)
'base62'

>>> base62.decode('base62')
34441886726

Tests

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