pixelrebel

A helper library of common snippets.


Keywords
helper, helpers
License
Other
Install
pip install pixelrebel==0.0.9

Documentation

pyPixelRebel

The pixelrebel Python Module

helper Class

Provides common functions and snippets

cmpv(version1, version2)
Compare version strings
Returns '0' if version1 == verstion2
Returns '-1' if version1 < version2
Returns '1' if version1 > version2
commas(x)
Return number as string with commas
bytefmt(num, suffix='B')
Format bytes into human readable strings
sendmail(send_from, send_to, subject, text, files=None, server="127.0.0.1")
Sends email using sendmail
timestamp(fmt='%c')
Return timestamp string for logs