python.js:从 node.js 调用 python 代码

时间:2021-06-12 04:35:52
【文件属性】:
文件名称:python.js:从 node.js 调用 python 代码
文件大小:14KB
文件格式:ZIP
更新时间:2021-06-12 04:35:52
C++ Python.js 从 node.js 调用 python 代码。 用法 var python = require ( 'python.js' ) ; var os = python . import ( 'os' ) ; var path = require ( 'path' ) ; assert ( os . path . basename ( os . getcwd ( ) ) == path . basename ( process . cwd ( ) ) ) ; 特征 def test (): try : ## do samething except Exception as e : raise e return 'done' PYMODULE . test . async = true ; PYMODULE . test ( function ( res
【文件预览】:
python.js-master
----.travis.yml(72B)
----index.js(55B)
----package.json(881B)
----test()
--------pytest.py(2KB)
--------jstest.js(3KB)
--------jstest.html(170B)
----LICENSE.bsd(1KB)
----src()
--------js_object_wrapper.h(119B)
--------py_object_wrapper.h(3KB)
--------binding.cc(2KB)
--------utils.cc(6KB)
--------py_object_wrapper.cc(24KB)
--------utils.h(1KB)
----.npmignore(25B)
----.gitignore(25B)
----README.md(2KB)
----binding.gyp(732B)

网友评论