hmenyus / node-calls-python

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

How to pass kwargs? #59

Closed ariririos closed 11 months ago

ariririos commented 11 months 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 11 months 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 11 months ago

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