Skip to content

MeowSky49887/PythonJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-js

Node module that allows you to run Python code from JS.

This module only supports Windows (Tested on Windows 10)

Installation

Install python-js by running:

$ npm install --save https://github.com/MeowSky49887/PythonJS.git

Specified Python Version in package.json:

{
  "python": {
    "version": "3.11"
  },
  "dependencies": {
    "python-js": "github:MeowSky49887/PythonJS"
  }
}

Documentation

Example

const PythonJS = require("python-js");

const py = new PythonJS({port: 5555});
const main = await py.init("./main.py");

const output = await main.pi();
console.log(output);

await py.stop();
import math

def pi():
    return math.pi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors