-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05e8151
commit 1f20b60
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# PySandbox: Run Python in your Web Application | ||
|
||
For installation and usage instructions see [user docs](https://bugzpodder.github.io/pysandbox) | ||
|
||
## Introduction | ||
|
||
PySandbox is a library that helps developers create client-side Python-powered web applications. It is inspired by [PyScript](https://github.com/pyscript/pyscript) and built on top of [Pyodide](https://github.com/pyodide/pyodide) and [Polyscript](https://github.com/pyscript/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. |