<p dir="ltr">You're almost certainly aware of this, but just to double check since you don't mention it in the email: cython is also a great tool for handling similar situations. Not quite the same since in addition to generating all the boilerplate for you it then lets you use almost-python to actually write the C implementations as well, and I understand that with your tool you write the actual implementations in C. But probably also worth considering in cases where you'd consider this tool, so wanted to make sure it was on your radar.</p>
<div class="gmail_quote">On Feb 11, 2016 8:21 AM, "Hugh Fisher" <<a href="mailto:hugo.fisher@gmail.com">hugo.fisher@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've written a Python program named fullOfEels to speed up the first<br>
stages of writing Python extension modules in C.<br>
<br>
It is not a replacement for SWIG, SIP, or ctypes. It's for the case<br>
where you want to work in the opposite direction, specifying a Python<br>
API and then writing an implementation in C. (A small niche maybe, but<br>
I hope it isn't just me who sometimes works this way.)<br>
<br>
The input is a Python module specifying what it should do but not how,<br>
with all the functions, classes, and methods being just pass. The<br>
output is a pair of .h and .c files with all the boilerplate C code<br>
required: module initialization, class type structs, C method<br>
functions and method tables.<br>
<br>
Downloadable from<br>
<a href="https://bitbucket.org/hugh_fisher/fullofeels" rel="noreferrer" target="_blank">https://bitbucket.org/hugh_fisher/fullofeels</a><br>
<br>
All feedback and suggestions welcome.<br>
<br>
--<br>
<br>
        cheers,<br>
        Hugh Fisher<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/njs%40pobox.com" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/njs%40pobox.com</a><br>
</blockquote></div>