๐ .NET์์ Python์ ๊ฐ์ฅ ๊ฐ๋ณ๊ฒ ์คํํ๋ ๋ฐฉ๋ฒ
Python ์ฝ๋๋ฅผ C# ์ ํ๋ฆฌ์ผ์ด์ ์์ ์คํํด์ผ ํ๋๋ฐ ๋ณต์กํ ์ค์ ๊ณผ ๋ณด์ผ๋ฌํ๋ ์ดํธ ์ฝ๋๊ฐ ๋ถ๋ด๋์ จ๋์?
DotNetPy๋ฅผ ๋ง๋ค์์ต๋๋ค: โ Zero Boilerplate - GIL ๊ด๋ฆฌ๋ Source Generator ๋ถํ์ โ AOT ์นํ์  - Native AOT ์๋๋ฆฌ์ค๋ฅผ ์ํด ์ค๊ณ โ ์ต์ํ์ ๋ฌ๋ ์ปค๋ธ - ๋ช ์ค๋ก Python ์คํ โ Apache 2.0 ๋ผ์ด์ ์ค
Python ํํ์ ํ๊ฐ๋ถํฐ ๋ณต์กํ ๋ฐ์ดํฐ ๊ตํ๊น์ง, pythonnet์ด๋ CSnakes๋ณด๋ค ํจ์ฌ ๊ฐ๋ฒผ์ด ๋์์ ๋๋ค.
์ฌ์ฉ ์์: Python.Initialize(pythonLibraryPath); var executor = Python.GetInstance(); var result = executor.Evaluate("sum([1,2,3,4,5])"); Console.WriteLine(result?.GetInt32()); // 15
๐ GitHub: https://github.com/rkttu/dotnetpy
#๋ท๋ท #ํ์ด์ฌ #์คํ์์ค #์ฐ๋ #์ฝ๋ฉ #AI #๊ฐ๋ฐ์


