Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: kavyasahu on October 26, 2018, 09:19:02 AM



Title: Executing python command line tools from NodeJS
Post by: kavyasahu on October 26, 2018, 09:19:02 AM
What would be the best way to execute command line tools from nodejs to python? I'm working on a app that can generate blockchain certification (https://mindmajix.com/blockchain-training).

https://github.com/blockchain-certificates/cert-tools

This is a python based command line tool, where you can generate blockchain certificates. I have followed the steps and everything is working fine in the virtual env. But now I want to know how to implement this in to a app, where I can run the command line tools external from NodeJS. Is this possible? I have found some libraries where you can run python script from nodejs. Example I have used python shell. Whenever I run the setup script, I get missing file errors.

Can someone guide me what the best way will be to solve this problem. Thanks in advance.