11 filesupdated Jun 18, 2026
files6Download
./testJun 16, 2026LICENSEJun 16, 2026READMEJun 18, 2026setup.pyJun 16, 2026strutil.cJun 16, 2026VERSIONJun 16, 2026README
This code is released under the MIT (BSD) license -- the full text of the license is in the LICENSE file.
Some string manipulation routines for Python. I expect these mostly to be oriented at processing things like HTML and user inputted text.
This just includes an escape function for HTML-escaping text. From my measurements this is not significantly faster than cgi.escape for str object (which isn't too surprising, considering how highly optimized the replace method of str objects is) but it is 2x to 4x faster on unicode strings.
I've also included a linkify function (which only works on unicode at the moment).