flask-nav-current


Nameflask-nav-current JSON
Version 0.0.7 PyPI version JSON
download
home_pagehttp://github.com/mbr/flask-nav
SummaryEasily create navigation for Flask applications.
upload_time2023-09-22 06:52:45
maintainer
docs_urlNone
authorMarc Brinkmann
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Flask-Nav
=========
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 <http://flask.pocoo.org>`_-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:

.. code-block:: python

    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
<https://github.com/mbr/flask-appconfig>`_ and execute::

    $ flask --app=example dev

The `full documentation <http://pythonhosted.org/flask-nav/>`_ can be found on PyPI.

            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/mbr/flask-nav",
    "name": "flask-nav-current",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Marc Brinkmann",
    "author_email": "git@marcbrinkmann.de",
    "download_url": "https://files.pythonhosted.org/packages/ba/90/8b6b91c9f469ecce13f2e3f56ca35d56c1add7f951c28eed2604e55d4b7a/flask-nav-current-0.0.7.tar.gz",
    "platform": null,
    "description": "Flask-Nav\n=========\nFlask-NAV-Current is a maintained for of Flask-NAV which is apparently abandoned project.\nFlask-NAV-Current is supporting newest python versions without legacy/outdated/not supported python versions.\n\n\nFlask-Nav is a `Flask <http://flask.pocoo.org>`_-Extension to ease the creation\nof navigational Elements in Applications. It provides means to Express the\nNavigational structure and different ways to render these, making it easy to\ncustom tailor it for your application.\n\nA motivating example:\n\n.. code-block:: python\n\n    from flask import Flask\n\n    from flask_nav import Nav\n    from flask_nav.elements import Label, Link, Navbar, Separator, Subgroup, View\n\n    nav = Nav()\n\n    # registers the \"top\" menubar\n    nav.register_element(\n        \"top\",\n        Navbar(\n            View(\"Widgits, Inc.\", \"index\"),\n            View(\"Our Mission\", \"about\"),\n            Subgroup(\n                \"Products\",\n                View(\"Wg240-Series\", \"products\", product=\"wg240\"),\n                View(\"Wg250-Series\", \"products\", product=\"wg250\"),\n                Separator(),\n                Label(\"Discontinued Products\"),\n                View(\"Wg10X\", \"products\", product=\"wg10x\"),\n            ),\n            Link(\"Tech Support\", href=\"http://techsupport.invalid/widgits_inc\"),\n        ),\n    )\n\n\n    app = Flask(__name__)\n    # [...] (view definitions)\n\n    nav.init_app(app)\n\nYou can find a small, runnable example application inside the ``example``\nfolder. To run it, install `Flask-Appconfig\n<https://github.com/mbr/flask-appconfig>`_ and execute::\n\n    $ flask --app=example dev\n\nThe `full documentation <http://pythonhosted.org/flask-nav/>`_ can be found on PyPI.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Easily create navigation for Flask applications.",
    "version": "0.0.7",
    "project_urls": {
        "Homepage": "http://github.com/mbr/flask-nav"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "69803cb27a95d21377c4af6a5be6b8f1e7880d10ef43a63edfa9dbcfeb1d6638",
                "md5": "95c76d5eb96409bd4a1d4e08451e89bf",
                "sha256": "b9ff9727db0d179d204ae82478e238aada7f70697028ebf1f42cc2bf3c226776"
            },
            "downloads": -1,
            "filename": "flask_nav_current-0.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "95c76d5eb96409bd4a1d4e08451e89bf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7175,
            "upload_time": "2023-09-22T06:52:43",
            "upload_time_iso_8601": "2023-09-22T06:52:43.929833Z",
            "url": "https://files.pythonhosted.org/packages/69/80/3cb27a95d21377c4af6a5be6b8f1e7880d10ef43a63edfa9dbcfeb1d6638/flask_nav_current-0.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ba908b6b91c9f469ecce13f2e3f56ca35d56c1add7f951c28eed2604e55d4b7a",
                "md5": "d5e5376d10615246671d529369c86bc2",
                "sha256": "4260011bb38d962f6119ad6c4c013849ff58bdfbc7ce15b9175629b9650e1dfa"
            },
            "downloads": -1,
            "filename": "flask-nav-current-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "d5e5376d10615246671d529369c86bc2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8283,
            "upload_time": "2023-09-22T06:52:45",
            "upload_time_iso_8601": "2023-09-22T06:52:45.292034Z",
            "url": "https://files.pythonhosted.org/packages/ba/90/8b6b91c9f469ecce13f2e3f56ca35d56c1add7f951c28eed2604e55d4b7a/flask-nav-current-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-22 06:52:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mbr",
    "github_project": "flask-nav",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "flask-nav-current"
}
        
Elapsed time: 2.29864s