🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-pyodide

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-pyodide

Vite plugin that copy Python scripts into Pyodide virtual FS.

0.0.15
latest
Source
npm
Version published
Weekly downloads
14
600%
Maintainers
0
Weekly downloads
 
Created
Source

vite-plugin-pyodide

Copy your python .py files into pyodide.FS

Usage

Install with npm install vite-plugin-pyodide

// vite.config.ts

export default defineConfig({
  plugins: [
    pyodidePlugin({ pythonFilesPath: "./python" }),
    ...
// vite-env.d.ts

/// <reference types="vite-plugin-pyodide" />
import { setupPyodideFiles } from "virtual:pyodide-files";


pyodide = await loadPyodide();
await setupPyodideFiles(pyodide);

Keywords

vite

FAQs

Package last updated on 26 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts