hmenyus / node-calls-python

Call Python from NodeJS directly in-process without spawning processes
MIT License
252 stars 26 forks source link

How to pass kwargs? #59

Closed ariririos closed 1 year ago

ariririos commented 1 year ago

Is there any way to pass kwargs to a function right now? I can't pass them using py.call since it only accepts positional arguments.

hmenyus commented 1 year ago

this is not doable right now. JS has no such concept, so I am not sure how to map JS arguments to kwargs.

hmenyus commented 1 year ago

https://github.com/hmenyus/node-calls-python/tree/master#passing-kwargs You have to install 1.8.0.