Skip to main content

Flask-Nav is a Flask-Extension to ease the creation of navigational Elements in Applications. It provides means to Express the Navigational structure and different ways to render these, making it easy to custom tailor it for your application.

A motivating example:

from flask import Flask
from flask_nav import Nav
from flask_nav.elements import *

nav = Nav()

# registers the "top" menubar
nav.register_element('top', Navbar(
    View('Widgits, Inc.', 'index'),
    View('Our Mission', 'about'),
    Subgroup(
        'Products',
        View('Wg240-Series', 'products', product='wg240'),
        View('Wg250-Series', 'products', product='wg250'),
        Separator(),
        Label('Discontinued Products'),
        View('Wg10X', 'products', product='wg10x'),
    ),
    Link('Tech Support', href='http://techsupport.invalid/widgits_inc'),
))


app = Flask(__name__)
# [...] (view definitions)

nav.init_app(app)

You can find a small, runnable example application inside the example folder. To run it, install Flask-Appconfig and execute:

$ flask --app=example dev

The full documentation can be found on PyPI.

Metadata

Release files for flask-bootnav 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-bootnav 0.7.1
File Size Uploaded
flask-bootnav-0.7.1.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-bootnav 0.7.1
File Interpreter ABI Platform
flask_bootnav-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 kB

Release files / flask-bootnav-0.7.1.tar.gz

Download URL flask-bootnav-0.7.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8acd3ea7e95dbe557729768394c3367b00e779e6a40268f64140c031ab4547da
BLAKE2b-256 checksum
How to use checksums
189379fab065f5449d13a2e501e5cfb28b78c5839262c6d64dccfb13139998a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / flask_bootnav-0.7.1-py3-none-any.whl

Download URL flask_bootnav-0.7.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d932a30ef9a32507934de623dafb7404c4c531f140ac2fd0f11aba1c703838eb
BLAKE2b-256 checksum
How to use checksums
c7dacbe3a0cca8e8f387eab35070df7c1eacd4f58e61b5e5bd65847850720afc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page