Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# to Python converter [closed]

Tags:

python

c#

I have a large C# library that I need to convert to Python. Python is a customer requirement, I can not use any other language.

Any automatic C# to Python converter?

Edit: I need a pure Python solution. .Net is not an option for me.

like image 529
IT Hit WebDAV Avatar asked Dec 09 '11 03:12

IT Hit WebDAV


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is C full form?

Originally Answered: What is the full form of C ? C - Compiler . C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC PDP-11 computer in 1972.

How old is the letter C?

The letter c was applied by French orthographists in the 12th century to represent the sound ts in English, and this sound developed into the simpler sibilant s.

What is C language basics?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.


2 Answers

Assuming IronPython will meet their requirement, SharpDevelop can do that for you. I have a feeling it will still be quite painful.

Here's a link:

http://community.sharpdevelop.net/blogs/mattward/archive/2009/05/11/ConvertingCSharpVBNetCodeToIronPython.aspx

like image 123
Eric Walter Avatar answered Sep 18 '22 10:09

Eric Walter


You should convince your costumer that Python language can interact with .Net using some libraries. It would be a waste of time to re write the whole library in Python and then test the Python code for any bugs.

There is a library called Python for .NET, by which you can call .net classes and functions inside your Python code, you can create a wrapper code for calling the .Net code.

If you write a wrapper class, it would be just like calling Python classes and functions to other Python programmers.

like image 23
Searock Avatar answered Sep 18 '22 10:09

Searock