Does PyBindGen generate python bindings for any C code?

Asked by pgega

Hi,

I am not a C expert, but I have to create bindings for C code.
My problem is , does PyBindGen generate bindings for any C code - I need to create the bindings for fsvs , but the project's website says it does not provide an API, is it a problem for PyBindGen ?

That is the project's website http://fsvs.tigris.org/

Cheers,
Pawel Gega

Question information

Language:
English Edit question
Status:
Answered
For:
PyBindGen Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gustavo Carneiro (gjc) said :
#1

Creating bindings for C with PyBindGen is possible but is more difficult than C++.

However if the project does not provide an API, that is a problem.. it's a problem for any language binding tool, in fact :-)

If you want to provide a Python API for fsvs the only option that I can see is to write a Python module that offers a Python API but then calls the fsvs binary, using the Python module 'subprocess'. But at this point your problem becomes unrelated to PyBindGen.

Can you help with this problem?

Provide an answer of your own, or ask pgega for more information if necessary.

To post a message you must log in.