Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can run a Python script from an Fsharp module

Tags:

python

f#

While writing a fsharp module I realized the need to make a call to a python script. - Cannot switch my fsharp module to python it'll break established infrastructure - Cannot move the python functionality to fsharp, as it wouldn't be possible to convert all the nuances/efficiency of the code.

Any recommendations on how to call a python script from a fsharp module, passing in a couple of parameters (string values) and getting back a string value response?

like image 237
user6500904 Avatar asked Oct 18 '22 22:10

user6500904


1 Answers

Try out the Nuget package Python for .NET. The Nuget link is here: https://www.nuget.org/packages/pythonnet/2.3.0-py35-dotnet and includes links to the project on github.

like image 171
Tom Atwood Avatar answered Oct 21 '22 05:10

Tom Atwood