Skip to content

coolspeed/base62

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python module for base62 encoding

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%