Skip to main content

Flask extension to output prettified HTML pages

Project description

Flask-Pretty

PyPI Version PyPI License PyPI Versions Build Status Coverage Status Documentation Status

Flask-Pretty is a Flask extension to output prettified HTML pages to ease the development process of HTML templates. However, HTML prettifying should only be used for development purposes only. For production purposes, HTML minifying should be used instead (for instance by using Flask-HTMLmin).

The underlying HTML prettifying process is provided by BeautifulSoup.

Installation

Install the extension with with pipenv (recommended):

$ pipenv install flask-pretty

Or with pip:

$ pip install flask-pretty

Usage

Using Flask-Pretty is really simple:

import Flask
from flask_pretty import Prettify

app = Flask(__name__)
prettify = Prettify(app)

Documentation

The Sphinx-compiled documentation is available on ReadTheDocs.

License

The MIT License (MIT)

Copyright (c) 2018 Romain Clement

Release History

0.2.0 (2018-01-31)

  • Official support for Python 2.7

  • Improved README badges

  • Add HISTORY

0.1.0 (2018-01-31)

  • Initial release of Flask-Pretty.

  • Official support for Python 3.6 only.

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-Pretty-0.2.0.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file Flask-Pretty-0.2.0.tar.gz.

File metadata

File hashes

Hashes for Flask-Pretty-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1907ddd8085e9b0b63774eb151f223ee3c30b316fb0b23c801fcd371c7abd6f8
MD5 1ad07328a270f2950faf429615bdace4
BLAKE2b-256 f3671fd23734eaf1d88203b0e81702071a9ec60067bc71a4264511785307ae1c

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