Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

fast string utilities for python

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README
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).
Something went wrong with that request. Please try again.