Reputation: 517
I need to use a function from a nodejs library (import { signLimitOrder } from '@sorare/crypto';
) from a Python script.
Is there a way to do such a thing?
I am trying to use the subprocess
python library in order to launch a node command, but I am not sure if that is the best approach
Upvotes: 0
Views: 73
Reputation: 191711
Sure, subprocess module will work.
Or you could run a REST / gRPC server from Node and communicate with that
Upvotes: 1