Python bindings ?

Phillip Deneault deneault at WPI.EDU
Mon May 17 08:44:32 EDT 2010

I've had good luck with elementtree, but the XML format Argus uses
doesn't really require anything fancy.  The built-in minidom stuff might
work just fine for you.

As to what python brings to the party... basically nothing over what any
other library brings to the party.  It simplifies custom client creation
if there is a handy library available.  I for one would welcome a direct
python library to read in flows from radium/ra or binary files as it
would eliminate lots of extra piping and clockwork mechanisms I use in
my python glue programs, or converting to XML which requires a lot more
overhead than the binary format directly.

I've been playing with this idea myself, but not knowing C very well, it
was a long uphill climb.  In my research, I looked at a tool called
SWIG, which might facilitate building these various libraries based on
the official C code.  SWIG can also handle documentation generation.  Maybe that's something someone with more C
knowledge could use.


On 5/14/2010 12:51 PM, George Jones wrote:
> On Fri, 2010-05-14 at 09:21 -0700, John Gerth wrote:
>> ra can output XML and there are beaucoup python parsers for that.
> Doh.  Should of thought of that.
> Suggestions for parsers ? (being new-ish to python, and XML)
> Thanks,
> ---George Jones
>> On 5/14/2010 8:44 AM, George Jones wrote:
>>> On Fri, 2010-05-14 at 11:36 -0400, Carter Bullard wrote:
>>>> Hey George,
>>>> I don't do any python, but it couldn't be hard.
>>>> Are there guides for doing this type of thing?
>>> google python class
>>> PySiLK is the one thing I'm really missing from SiLK.   I think I can
>>> roll a parser pretty quickly for reading ra output and shoving it into
>>> classes.
>>> ---George
>>>> Carter
>>>> On May 14, 2010, at 10:32 AM, George Jones wrote:
>>>>> Has anyone created python bindings for argus?  e.g. something that would
>>>>> read ra ouput (or argus binary format)  and parse into python class
>>>>> structures ?
>>>>> Thanks,
>>>>> ---George Jones

More information about the argus mailing list