C# + Python
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
_doc
_unittests
cscode
src
.gitattributes
.gitignore
.local.jenkins.lin.yml
.local.jenkins.win.yml
.travis.yml
HISTORY.rst
LICENSE.txt
README.rst
appveyor.yml
build_script.bat
requirements.txt
setup.py

README.rst

README

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

Links:

Introduction

Helpers to play with C# and Python. It can easily compile and wrap a C# function into Python:

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))

The module relies on pythonnet.

Installation

Windows

pip install csharpy

Linux

Follow the instructions described in config.yml.