Skip to main content

Easily create navigation for Flask applications.

Project description

Flask-NAV-Current is a maintained for of Flask-NAV which is apparently abandoned project. Flask-NAV-Current is supporting newest python versions without legacy/outdated/not supported python versions.

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 Label, Link, Navbar, Separator, Subgroup, View

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.

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-nav-current-0.0.7.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

flask_nav_current-0.0.7-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file flask-nav-current-0.0.7.tar.gz.

File metadata

  • Download URL: flask-nav-current-0.0.7.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for flask-nav-current-0.0.7.tar.gz
Algorithm Hash digest
SHA256 4260011bb38d962f6119ad6c4c013849ff58bdfbc7ce15b9175629b9650e1dfa
MD5 d5e5376d10615246671d529369c86bc2
BLAKE2b-256 ba908b6b91c9f469ecce13f2e3f56ca35d56c1add7f951c28eed2604e55d4b7a

See more details on using hashes here.

File details

Details for the file flask_nav_current-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_nav_current-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b9ff9727db0d179d204ae82478e238aada7f70697028ebf1f42cc2bf3c226776
MD5 95c76d5eb96409bd4a1d4e08451e89bf
BLAKE2b-256 69803cb27a95d21377c4af6a5be6b8f1e7880d10ef43a63edfa9dbcfeb1d6638

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