【文件属性】:
文件名称:python-nodejs:[未维护]
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-17 13:44:07
Python
python-nodejs
和Python 绑定和。
from nodejs . bindings import node_run
stderr , stdout = node_run ( '/path/to/some/file.js' , '--some-argument' )
安装
pip install nodejs
绑定
nodejs.bindings.node_run()
使用提供的参数调用 Node 并返回结果 stderr 和 stdout。
from nodejs . bindings import node_run
stderr , stdout = node_run ( '/path/to/some/file.js' , '--some-argument' )
nodejs.bindings.ensure_installed()
如果未安装节点,则引发异
【文件预览】:
python-nodejs-master
----setup.py(500B)
----.gitignore(675B)
----requirements.txt(35B)
----.travis.yml(138B)
----LICENSE(1KB)
----CHANGELOG.md(127B)
----README.md(1KB)
----tests()
--------__init__.py(0B)
--------test.js(34B)
--------tests.py(2KB)
----nodejs()
--------conf.py(240B)
--------interrogate.py(3KB)
--------__init__.py(17B)
--------bindings.py(471B)
--------exceptions.py(202B)