Skip to main content

This library provides python Flask utilities and static assets for rendering Wikimedia UI elements

Project description

This library provides python Flask utilities and static assets for rendering
OOJS-UI.

# Example

```python
from flask import Flask, render_template

from flask_oojsui import build_static_blueprint

app = Flask(__name__)


@app.route('/')
def root():
# This template uses assets from OOJS-UI
return render_template("index.html")

# Adds static assets for OOJS-UI to path
app.register_blueprint(build_static_blueprint("oojsui", __name__))

app.run(port=8080, debug=True)
```

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-oojsui-0.0.3.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

flask_oojsui-0.0.3-py2.py3-none-any.whl (3.0 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file flask-oojsui-0.0.3.tar.gz.

File metadata

File hashes

Hashes for flask-oojsui-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c63b5a92dd03d873487f92e98dd1b2ddfe5acfd29254429494cf7e5f97289e4f
MD5 17b18ef0695913a95b6aa2112a9be638
BLAKE2b-256 9d8dd849cd1a1073d2ca8112d133bbada577af8398a8994d54e84f045f8f0713

See more details on using hashes here.

File details

Details for the file flask_oojsui-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for flask_oojsui-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b41db452a7536b0ec494c8ca57fba6e1d0d5cca33e65d1f37c7ee3250c079f83
MD5 0e69c446b9f4d86f9a81245994b44985
BLAKE2b-256 f5c64d247aae8d7cbdc228d877d91741df88dfef64a1d7c03dddb2e5f60a7fc1

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