Reverse engineered prompt

GitHub

Build me a command line tool that takes Python source code and converts it into C# files. I want to be able to point it at a single .py file or give it a folder and have it walk through everything recursively and translate the whole codebase.

The generated C# should do a decent job preserving the structure of the original code, things like functions, classes, instance methods, loops, conditionals, print statements, simple exceptions, tuple style iteration, and list comprehension style code. It does not need perfect typing everywhere, using general object based output is fine if that keeps the converter practical, but the result should look readable and feel like real C# instead of a raw text rewrite.

Please include whatever support code is needed so the converted output has a chance to compile, and make the tool easy to run from the command line. If anything is unclear, look up current docs online and fill in the sensible gaps.

Have a live product UI? Try website reverse