[bind10-dev] bind10 message API python binding

han benjamin ben.han.cn at gmail.com
Fri Mar 5 08:16:42 UTC 2010


I have finished the first version of python binding for message API using
boost.python. Because I am n't familiar with the current build system, I
attach the
related files with this email. After code review, we can modified the
related Makefile and build the so file automatically.

Currently, to build the so file, please put the "message_python.cc" and
"Makefile" under "trunk/src/lib/dns/cpp/", and install boost.python and
python3. Then click make, the so file named bind10_message.so will be
generated(maybe the name needs modification :))

"message_test.py" is the test file.

The interface of python binding, is basically same with cpp version except
the style, the different is like  "Name" => "name", "toText" => "to_text" .


feng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100305/9d45197f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: message_test.py
Type: application/octet-stream
Size: 2642 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100305/9d45197f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 549 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100305/9d45197f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: message_python.cc
Type: application/octet-stream
Size: 29331 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100305/9d45197f/attachment-0002.obj>


More information about the bind10-dev mailing list