Skip to main content

A simple abstraction layer for running Python code in JS.

Works with
It is unknown whether this package works with Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
JSR Score
100%
Published
2 months ago (1.0.2)

pyJS

A small python to JS abstraction layer. Intended for use on JSR.

Example

import { PythonEnvironment } from "@erisws/pyjs";

const python = new PythonEnvironment

const output = python.run("1+1") // 2
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @erisws/pyjs

Import symbol

import * as mod from "@erisws/pyjs";

Add Package

npx jsr add @erisws/pyjs

Import symbol

import * as mod from "@erisws/pyjs";

Add Package

yarn dlx jsr add @erisws/pyjs

Import symbol

import * as mod from "@erisws/pyjs";

Add Package

pnpm dlx jsr add @erisws/pyjs

Import symbol

import * as mod from "@erisws/pyjs";

Add Package

bunx jsr add @erisws/pyjs

Import symbol

import * as mod from "@erisws/pyjs";