All Projects → ivarprudnikov → use-python-in-node

ivarprudnikov / use-python-in-node

Licence: MIT License
Example of Python script usage in Node.js with sync/async output rendering in HTML

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to use-python-in-node

PyQuotes
PyQuotes is a Django-based web application and REST API. That will allow you to launch an online quotes service.
Stars: ✭ 23 (-8%)
Mutual labels:  pyhton
receipt-manager-webapp
Receipt parser webapplication written in javascript and python.
Stars: ✭ 37 (+48%)
Mutual labels:  pyhton
Doxing
Espionaje y recopilación de Información
Stars: ✭ 59 (+136%)
Mutual labels:  pyhton
sunrise
NumPy, SciPy, MRI and Music | Presented at ISMRM 2021 Sunrise Educational Session
Stars: ✭ 20 (-20%)
Mutual labels:  pyhton
podcast-player
A Python command line podcast player
Stars: ✭ 20 (-20%)
Mutual labels:  pyhton
PythonLibCore
Tools to ease creating larger test libraries for Robot Framework using Python
Stars: ✭ 46 (+84%)
Mutual labels:  pyhton
Auto Chrome 2
A program that lets you automate mundane and repetitive tasks in a proxy chrome browser. presets include Rarible and Opensea minting automation. make your own presets for anything inside chrome.
Stars: ✭ 17 (-32%)
Mutual labels:  pyhton
mitm-python
A simple as possible man in the middle written in python using scapy
Stars: ✭ 6 (-76%)
Mutual labels:  pyhton

use-python-in-node

Prerequisites

  • Node.js v10 installed
  • Python v3 available in the PATH
  • Browser supporting WebSockets

About

Preview of sample app

This is a simple example of a Node.js server with following features:

  • Enabled WebSocket communication
  • HTTP endpoint which runs python script synchronously and returns its output
  • WebSocket can run python script asynchronously and send output back in chunks
  • Simple html page with 2 buttons to execute above actions and 2 panes to see preview output

Running locally

Following assumes you have python v3 installed and have it available in the PATH:

  • Checkout this repository git clone repository && cd repository_folder
  • Set Node.js version in terminal nvm use - defined in .nvmrc
  • Install dependencies npm i
  • Start server npm start or node server.js
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].