Python - C# interoperability

sturlamolden sturlamolden at yahoo.no
Wed Jan 10 17:59:07 EST 2007


mc wrote:
> Is there an easy way to compile a Python class (or set of classes) into
> a .DLL that a C# program can call?  Or otherwise to use an existing
> library of Python classes from a C# program as seamlessly as possible?

One way is to use IronPython if you don't need modules written for
CPython.

Another option is to use a COM wrapper, e.g. using win32com in Python.

A third option is to embed a Python interpreter in your C# app.




More information about the Python-list mailing list