8000 GitHub - e-nikolov/pysandbox
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

e-nikolov/pysandbox

 
 

Repository files navigation

PySandbox: Run Python in your Web Application

For installation and usage instructions see user docs

Introduction

PySandbox is a library that helps developers create client-side Python-powered web applications. It is inspired by PyScript and built on top of Pyodide and Polyscript.

The main features of PySandbox are:

  • Exports simple JS classes that can be used in any JS framework or html page.
  • Web Worker ready. If your site is cross origin isolated, Web Workers can be used to execute python code.
  • Restricted mode. Enabling this mode will disallow python scripts access to js.document.
  • Custom modules support. You can define your own modules that are accessible in the codeblock.
  • Input/Output support. You can easily pass data in and out of the python code blocks and display images and/or adding 3rd party JS integration.
  • Helper methods for formatting code, find imports and installing modules in Pyodide.

Contributing

Project bootstraped with tsup and esbuild. Node.js 16.x/18.x is recommended for development.

yarn dev to make changes and make development build

yarn serve to serve /examples for testing your changes

yarn format & yarn format:py to run code formatting

/docs contains documentation. Run yarn format in docs to format changes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 64.5%
  • Python 34.7%
  • Other 0.8%
0