agrep equivalent?

Matthew Dixon Cowles matt at mondoinfo.com
Sun Nov 11 22:52:10 EST 2001


On Sun, 11 Nov 2001 15:14:47 -0700, bvdpoel at uniserve.com
<bvdpoel at uniserve.com> wrote:

>Is there an agrep or something similar module for python? Right now
>I'm calling this though the shell, but it be cleaner to do this
>natively...

Agrep has been wrapped as a Python module. It's at:

http://www.bio.cam.ac.uk/~mw263/pyagrep.html

I've used it though not lately and it seems to work fine.

You may also want to have a look at difflib which is new in Python
2.1's standard library. It takes a slightly different approach but
depending on what you're doing it may also be useful.

Regards,
Matt



More information about the Python-list mailing list