This is Brython on flask.
Project description
flask-brython
因为这个库(flask-brython),所以在使用brython时,更方便了。
Because of this library (flask-brython), it is more convenient to use brython.
安装
Install
$ pip install flask-brython
使用
use
...
from flask_brython import *
...
brython = Brython(app)
...
加载
load
...
{{ brython.load() }}
...
创建brython在线python代码运行器
Create brython online python code runner
...
{{ brython. create(code="print('helloworld')") }}
<!-- code参数是你要运行的代码 -->
<!-- The 'code' parameter is the code you want to run -->
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-Brython-1.0.0.tar.gz
(1.9 MB
view hashes)
Built Distribution
Close
Hashes for Flask_Brython-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 063bfd93ddadb474753aee3ec462ff2d6cf36368f998c8a80dc15dbc3c92c33d |
|
MD5 | a6640ba20bf664a5e36656ddacf984b1 |
|
BLAKE2b-256 | ddd567245620b0ca43a37747bf73d7ef7fe34b294410ba75a1303b5dd1c2c69a |