Skip to content

rjoydip-zz/node-py-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-py-rpc

Node.js and python communication using Remote Procedure Call (RPC)

Locally install

$ git clone https://github.com/Rjoydip/node-py-rpc.git
$ cd node-py-rpc
$ npm install
$ pip install pyzmq
$ npm start

How it works

  • Run node server.
  • Node server will run on localhost:3000.
  • TCP connection will be stablished and this connection will communicate with python on tcp://127.0.0.1:8688.
  • Hit the /send route and it will run python command using spawn.

Note

Make sure pyzmq installed.

ISSUE

Right now python code communicate once route will be called. From 2nd time onwards it will not execute.

About

Node.js and python communication using Remote Procedure Call (RPC)

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published