❔ Transferring data to python script
I'm building a C# app that can run python scripts. I'm doing the database queries on the C# side, seems to be more efficient.
I'm currently just throwing the data into a text file to be read by the python script. It works, but wondering if I'd be able to shave a few milliseconds by using some other mechanism for transferring data. Any ideas?
5 Replies
Process
classThat would gave a way to pass a data set to a script?
I'll poke around that class
That would be a way to call a Python script and pass some arguments, yes
Ah, already doing that
https://www.codeproject.com/Questions/5340484/How-to-send-back-data-through-Python-to-Csharp-thr
That seems pretty promising
Named pipes
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.