Announce: PySgrep -- Structured grep
Roman Suzi
rnd at onego.ru
Fri May 18 01:19:09 EDT 2001
On Thu, 17 May 2001, Dave Kuhlman wrote:
Wow! Coooool!
Not so long time ago I asked if there is a wrapper for sgrep.
Thanks a lot!
> I've made a Python wrapper for sgrep.
>
> Here is a brief description of sgrep from the sgrep home page:
>
> "sgrep (structured grep) is a tool for searching and indexing text,
> SGML,XML and HTML files and filtering text streams using structural
> criteria. The data model of sgrep is based on regions, which are
> nonempty substrings of text. Regions are typically occurrences of
> constant strings, SGML-tags, or meaningful text elements, which are
> recognizable through some delimiting strings or the builtin SGML, XML
> and HTML parser. Regions can be arbitrarily long, arbitrarily
> overlapping, and arbitrarily nested.
>
> "Sgrep is a convenient tool for making queries to almost any kind of
> text files with some well kown structure. These include programs, mail
> folders, news folders, HTML, SGML, etc... With relatively simple
> queries you can display mail messages by their subject or sender,
> extract titles or links or any regions from HTML files, function
> prototypes from C or make complex queries to SGML files based on the
> DTD of the file."
>
> You can find my Python wrapper at:
>
> http://www.rexx.com/~dkuhlman/pysgrep-1.0a.tar.gz
>
> See the file README.pysgrep in the PySgrep distribution for
> information on how to build it. I've only built it on Linux.
>
> I've written some documentation on PySgrep and how to use it.
> It's at:
>
> http://www.rexx.com/~dkuhlman/pysgrep.html
>
> You can read about sgrep itself at:
>
> http://www.cs.helsinki.fi/u/jjaakkol/sgrep.html
>
> Comments and suggestions will be appreciated.
>
> - Dave
>
>
Sincerely yours, Roman A.Suzi
--
- Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
More information about the Python-list
mailing list