An open API service indexing awesome lists of open source software.

https://github.com/SciSharp/SharpPythonCompiler

A compiler which can transform the convention of C# code to the convention of Python
https://github.com/SciSharp/SharpPythonCompiler

Last synced: about 1 year ago
JSON representation

A compiler which can transform the convention of C# code to the convention of Python

Awesome Lists containing this project

README

          

# SharpPythonCompiler
[![NuGet Version](https://img.shields.io/nuget/v/SharpPythonCompiler.svg?style=flat)](https://www.nuget.org/packages/SharpPythonCompiler/)

A compiler which can transform the convention of C# code to the convention of Python.

# Life is short. Do we really need Python?
# 人生苦短,何必Python。

# How to use?

## Install it as global tool

dotnet tool install --global SharpPythonCompiler

## Compile projects with the command line

sharp-python-compiler TestAssembly.csproj outputDir

You will get a new assembly file "TestAssembly.Py.dll" in the output directory.

## Check out what happened

###### Original Assembly

![Original Assembly](assets/OriginalAssembly.JPG)

###### Compiled Assembly

![Compiled Assembly](assets/CompiledAssembly.JPG)