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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file Flask-Brython-1.0.0.tar.gz.

File metadata

  • Download URL: Flask-Brython-1.0.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.4

File hashes

Hashes for Flask-Brython-1.0.0.tar.gz
Algorithm Hash digest
SHA256 13f075637b24f6f2bfa901b0c33717decfb25f022448454885162741e9f9f12d
MD5 4802e2c3d64dbdb552441e09236084b7
BLAKE2b-256 1ec777365a9da6e65ee24d978d46b05f40e01de74e3ef7b57f1f831dc6a6a223

See more details on using hashes here.

File details

Details for the file Flask_Brython-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_Brython-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 063bfd93ddadb474753aee3ec462ff2d6cf36368f998c8a80dc15dbc3c92c33d
MD5 a6640ba20bf664a5e36656ddacf984b1
BLAKE2b-256 ddd567245620b0ca43a37747bf73d7ef7fe34b294410ba75a1303b5dd1c2c69a

See more details on using hashes here.

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