-
Notifications
You must be signed in to change notification settings - Fork 1
fast string utilities for python
License
eklitzke/strutil
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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).
About
fast string utilities for python
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published