How can I call functions in Mono (.NET) libraries from Python?
-
I have a third-party C# .dll I would like to call from python (without running python inside Mono ala Python for .NET). The host OS is Ubuntu, and I have installed the mono-runtime. Are there more direct alternatives to an os-based call ala os.system()? Note that IronPython's "mono python.exe" will not work for me.
-
Answer:
You can use protocol buffers. There is a third party addon that supports C# (http://code.google.com/p/protobuf-net/).
Tudor Achim at Quora Visit the source
Other answers
Check out PythonNet - http://pythonnet.sourceforge.com/
Benjamin Burns
Mono is very easy to embed. You should be able to do that with ctypes. Look at the official wiki for an example of how embedding works: http://www.mono-project.com/Embedding_Mono
Armin Ronacher
Related Q & A:
- How can I allow user to create posts in website using ASP.NET?Best solution by Programmers
- How Can I use .net dll in C program?Best solution by Stack Overflow
- How can I fix parser Error in ASP.NET?Best solution by parse.com
- How can I call Android JavaScript functions in WebView?Best solution by Stack Overflow
- how can I write this shell script in python?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.