csharpy

Build status Build Status Windows https://circleci.com/gh/sdpython/csharpy/tree/master.svg?style=svg https://badge.fury.io/py/csharpy.svg GitHub Issues MIT License Requirements Status https://codecov.io/github/sdpython/csharpy/coverage.svg?branch=master Notebook Coverage

Links: github, documentation README, blog

What is it?

Helpers to play with C#, Python. The module also relies on pythonnet and csharpy.

>>>

from csharpy.runtime import create_cs_function
code = "public static double SquareX(double x) {return x*x ; }"
SquareX = create_cs_function("SquareX", code)
print(SquareX(4))

Out

    16.0

Installation

Windows

pip install csharpy

Linux

Follow the instructions described in config.yml.

Build

The package contains C# and C++ extensions which can be built with the following instruction:

python setup.py build_ext --inplace