Simple Example

PyVibe can be used with Flask. This is a simple example of how to use PyVibe with Flask.

First, create a new file called app.py and add the following code:

from flask import Flask import pyvibe as pv app = Flask(__name__) @app.route('/') def index(): page = pv.Page('Home') page.add_header('Hello World') return page.to_html() if __name__ == '__main__': app.run(debug=True)

Then, run the following command in your terminal:

% python app.py

Extended Example

PyPi Analytics

Live App

Source Code on GitHub

Pycob Logo PyVibe

Easily create styled web pages with Python