Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyodide

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyodide - npm Package Compare versions

Comparing version 0.18.0-alpha.0 to 0.18.0-alpha.1

5

package.json
{
"name": "pyodide",
"version": "0.18.0-alpha.0",
"version": "0.18.0-alpha.1",
"description": "The Pyodide JavaScript package",

@@ -11,2 +11,5 @@ "keywords": ["python", "webassembly"],

},
"bugs": {
"url": "https://github.com/pyodide/pyodide/issues"
},
"license": "Apache-2.0",

@@ -13,0 +16,0 @@ "devDependencies": {

15

README.md
# Pyodide Javascript package
## Install
<a href="https://www.npmjs.com/package/pyodide"><img src="https://img.shields.io/npm/v/pyodide" alt="npm"></a>
```bash
$ npm install -g pyodide
```
## Usage

@@ -17,9 +13,12 @@

```js
pyodide_pkg = require("pyodide");
let pyodide = await pyodide_pkg.loadPyodide({ indexURL: "<path to the extracted folder>" });
let pyodide_pkg = await import('pyodide/pyodide.js');
let res = await pyodide.runPythonAsync("1+1");
let pyodide = await pyodide_pkg.loadPyodide({ indexURL: "<pyodide artifacts folder>" });
await pyodide.runPythonAsync('1+1')
```
**Note**: To start node REPL with support for top level await, use `node --experimental-repl-await`.
See the [documentation](https://pyodide.org/en/stable/) fore more details.

@@ -26,0 +25,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc