文件名称:nimpy:Nim-Python桥
文件大小:36KB
文件格式:ZIP
更新时间:2024-05-19 19:32:29
Nim
imp 与Python进行本地语言集成从未如此简单! 在Nim中实现Python模块 # mymodule.nim - file name should match the module name you're going to import from python import nimpy proc greet (name: string ) : string {. exportpy .} = return "Hello, " & name & "!" # Compile on Windows: nim c --threads:on --app:lib --tlsEmulation:off --out:mymodule.pyd mymodule # Compile on everything else: nim c --threads:on --app:lib --out:mym
【文件预览】:
nimpy-master
----nimpy()
--------raw_buffers.nim(1KB)
--------py_lib.nim(18KB)
--------py_utils.nim(5KB)
--------py_types.nim(10KB)
----nimpy.nimble(3KB)
----.github()
--------workflows()
----tests()
--------tcustommodulename.py(217B)
--------tpyfromnim.nim(7KB)
--------tnimfrompy.py(5KB)
--------custommodulename.nim(226B)
--------builtinpyfromnim.py(437B)
--------traise.py(838B)
--------nimfrompy.nim(4KB)
--------tbuiltinpyfromnim.nim(382B)
--------pyfromnim.py(1KB)
--------modules()
----LICENSE(1KB)
----nimpy.nim(46KB)
----.gitignore(87B)
----README.md(4KB)