A python program to convert C codes to python codes
Convert Python program to C/C++ code? - Stack Overflow
Are there any libraries that can easily convert Python to C/C#/or C++? Ones where a person doesn't have to "calibrate" it, just, pip install library and then they can have their Python code in C,C#,or C++?
Best Way to Convert Python code to C# without knowing C#?
Honestly I have never had good experiences using automated code translation (other than between dotnet languages). Presumably if it is a small and fairly simple program you should not need to learn very much C# to translate it. If not, you could also try posting it here or on Stack Overflow and chances are someone would be willing to help.
More on reddit.comWhat types of C code can be converted to Python?
Is the C to Python converter free?
What types of Csharp code can be converted to Python?
Videos
» pip install cpp2py
If the C variant needs x hours less, then I'd invest that time in letting the algorithms run longer/again
"invest" isn't the right word here.
Build a working implementation in Python. You'll finish this long before you'd finish a C version.
Measure performance with the Python profiler. Fix any problems you find. Change data structures and algorithms as necessary to really do this properly. You'll finish this long before you finish the first version in C.
If it's still too slow, manually translate the well-designed and carefully constructed Python into C.
Because of the way hindsight works, doing the second version from existing Python (with existing unit tests, and with existing profiling data) will still be faster than trying to do the C code from scratch.
This quote is important.
Thompson's Rule for First-Time Telescope Makers
It is faster to make a four-inch mirror and then a six-inch mirror than to make a six-inch mirror.Bill McKeenan
Wang Institute
Yes. Look at Cython. It does just that: Converts Python to C for speedups.