Skip to main content

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


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)

Uploaded Source

Built Distribution

Flask_Brython-1.0.0-py3-none-any.whl (1.9 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page