This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Foked from ( * Javascript ) : | |
inflammable/base58.js : ( https://gist.github.com/inflammable/2929362 ) | |
Description: | |
- Base58 encoder and decoder, but re-written with Python. This is very covenient to generating 'shorting URL' from integer value ( like, article or post ID based database). | |
- you can encode to base58 string from Integer value. | |
- you can decode to Integer from base 58 String value. | |
Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
class GuentzliWrapper: | |
""" This Class is wrapper for the guentzli, google develped. | |
You can encode multiple (jpeg || png) file via guentzli on CLI. | |
( Tested: Python 3.6, 2.7.13, pypy 5.7.0) |