Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Tools to use C# + Python mostly from Python.

Project description


Build status Build Status Windows GitHub Issues MIT License Requirements Status Notebook Coverage



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)

The module relies on pythonnet.



pip install csharpy


Follow the instructions described in config.yml.


current - 2019-01-08 - 0.00Mb

  • 9: implements sphinx extension runcsharp (2018-08-19)
  • 8: catch standard output and error when running a C# script (2018-08-19)
  • 5: run unit tests for C# (2018-06-16)
  • 6: add Debug and Release folder in assemblies (2018-06-14)

0.1.53 - 2018-05-20 - 0.02Mb

  • 2: fix CI (2018-05-20)
  • 1: first commit (2018-05-17)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for csharpy, version 0.1.116
Filename, size File type Python version Upload date Hashes
Filename, size csharpy-0.1.116-cp37-cp37m-win_amd64.whl (109.4 kB) File type Wheel Python version 3.7 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page