C#
C#

help

Root Question Message

Dropps
Dropps9/20/2022
Python to CS entrypoint

how can i compile a python package into a dll or so and use it withhin c# ? or have both languages coexisting?
Angius
Angius9/20/2022
IronPython maybe
Angius
Angius9/20/2022
Or just calling Py scripts from C#
Korbah
Korbah9/20/2022
for a past project I invoked Python scripts through the executable using Process.Start
Dropps
Dropps9/20/2022
its more about having a python module (image converter and some more advanced stuff with image manipulation automated) but using it in a C# file so i can say
using App.SomePythonModule;
...
SomePythonModule pythonmodule = new();
pythonmodule.SomeMethodInThere();
...
thinker227
thinker2279/20/2022
Unless you find some magic Python to IL converter, that's not possible
Dropps
Dropps9/20/2022
ah allright then ima just rewrite 7 packages i use in py to C# and my python code to C# then it should work :WishMeLuck:
Dropps
Dropps9/20/2022
ah no nitro anymore
Dropps
Dropps9/20/2022
still thanks alot for your help
thinker227
thinker2279/20/2022
I mean you can try using IronPython, but you'll never be able to fully use Python modules as if there were C# classes.
Dropps
Dropps9/20/2022
yes thats what i kinda need to achive
thinker227
thinker2279/20/2022
You could also try checking out ImageSharp if you need advanced image manipulation
Dropps
Dropps9/20/2022
need to create a BitMap from an video file repeatenly for each frame and then well process it to remove any kind of epileptic screen contents
Dropps
Dropps9/20/2022
i want to create a filter against those basicly
Dropps
Dropps9/20/2022
or i just let someone else do it from my team xD
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy