SctALE
SctALE

Reputation: 517

How to use a function from a nodejs module inside a Python script

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

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191711

Sure, subprocess module will work.

Or you could run a REST / gRPC server from Node and communicate with that

Upvotes: 1

Related Questions