gramex.pynode
¶
Python Node.js bridge
Node(port=9966, cwd=None, node_path=None, timeout=10)
¶
Example
node = Node(port=9966, node_path=’/tmp/’) total = await node.js(‘return {“total”: x + y}’, x=’a’, y=10)[‘total’]
Source code in gramex\pynode.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|