Kodos: A Python Regular Expressions Tool
[Posted April 16, 2003 by cook]
Kodos,
apparently named after one of the slobbering alien character on the
cartoon "The Simpsons", is a handy GUI tool for working with
regular expressions in Python.
In the About Kodos
page, author Phil Schwartz says:
"I have always found the development cycle of python regular expressions to be tedious and time consuming and I searched for a tool to aid in this area. When I could not locate a desirable tool I began to create my own. As I added features, I thought it would be useful to other developers as well and created the Kodos Project page on Sourceforge."
The
Kodos screenshots page shows the utility in action.
Kodos' display is divided into three windows. The top window is used
for entering the regular expression, the middle window is for entering
test strings, and the bottom window shows the resulting matched
strings in several formats. The bottom screen also features
a handy Sample Code mode that generates several examples of
working Python code.
There are a number of radio buttons for selecting regexp flags
such as Ignore Case. A handy regexp reference window
can be popped up to show the available regexp syntax characters.
It is apparently possible to get Kodos to run under RedHat 7.3 and
Debian Woody, but your author ran into several cases of
dependency hell on both systems.
Luckily, I had a spare machine, and wanted to play with a variant
of RedHat 8.0 known as KRUD Linux.
Kodos 1.0.2 installed without a hitch on that environment.
Version 1.1 of Kodos
was announced this week.
Some of the new features include the addition of pausing and unpausing
the processing of regexps, an editing timeout, an import file option,
new preferences, code cleanup, and bug fixes.
Kodos is definitly a utility that will be a welcome addition to
a Python programmer's tool kit. It give an immediate productivity boost
to those who use Python regular expressions.
The software is availabe for download
here. Additional information can be found in the online
Kodos Documentation.
(
Log in to post comments)