pcp
[Top] [All Lists]

python pmapi interface

To: pcp@xxxxxxxxxxx
Subject: python pmapi interface
From: Stan Cox <scox@xxxxxxxxxx>
Date: Wed, 04 Apr 2012 12:29:22 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
I am in the process of adding a python pmapi interface. In the sourceware.org/git/pcpfans.git repository I added src/src/python/py-pmapi.c. Currently I have equivalents for pmNewContext, pmLookupName, pmLookupDesc, pmFetch, pmExtractValue and am adding other functionality in a similar manner.

Attached is a small python sample that is doing nothing in particular but gives the flavor of how the interface works.

Suggestions?

Attachment: tst.py
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>