Create safe short links from your Python web site or application. The current version is 1.1.
libsafemn.py-1.1.zip for shortening, expanding and tracking URLs in Python 2.4 and above.
import libsafemn short_url = libsafemn.shorten('http://www.google.com/') print "Short: " + short_url expand_url = libsafemn.expand(short_url) print "Long: " + expand_url info = libsafemn.info(short_url) print "Clicks: " + info.get('clicks', None)
Short: http://safe.mn/d Long: http://www.reviews-web-hosting.com/ Clicks: 185