Flask-Menu


NameFlask-Menu JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/inveniosoftware/flask-menu
Summary"Flask-Menu is a Flask extension that adds support for generating menus."
upload_time2023-08-21 12:40:11
maintainer
docs_urlhttps://pythonhosted.org/Flask-Menu/
authorInvenio collaboration
requires_python>=3.7
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            ============
 Flask-Menu
============

.. image:: https://github.com/inveniosoftware/flask-menu/workflows/CI/badge.svg
    :target: https://github.com/inveniosoftware/flask-menu/actions
.. image:: https://coveralls.io/repos/inveniosoftware/flask-menu/badge.png?branch=master
    :target: https://coveralls.io/r/inveniosoftware/flask-menu
.. image:: https://pypip.in/v/Flask-Menu/badge.png
    :target: https://pypi.python.org/pypi/Flask-Menu/
.. image:: https://pypip.in/d/Flask-Menu/badge.png
    :target: https://pypi.python.org/pypi/Flask-Menu/

About
=====
Flask-Menu is a Flask extension that adds support for generating
menus.

Installation
============
Flask-Menu is on PyPI so all you need is: ::

    pip install Flask-Menu

Documentation
=============
Documentation is readable at https://flask-menu.readthedocs.io/ or can be
build using Sphinx: ::

    git submodule init
    git submodule update
    pip install Sphinx
    python setup.py build_sphinx

Testing
=======
Running the test suite is as simple as: ::

    python setup.py test

or, to also show code coverage: ::

    ./run-tests.sh

Changes
=======

Version 1.0.0 (released 2023-08-21)
-----------------------------------

- Large module refactor for allowing contextless usage.
- Removed Flask-Classy support.
- Preparation for compatibility with Flask v2.3.x deprecations.

Version 0.7.2 (released 2020-05-07)
-----------------------------------

- Deprecated Python versions lower than 3.6.0. Now supporting 3.6.0 and 3.7.0.

Version 0.7.1 (released 2019-02-11)
-----------------------------------

- Fixes problem with returning an active menu item.

Version 0.7.0 (released 2017-12-12)
-----------------------------------

-  Uses whole segment of the URL instead of a prefix to determine active menu
   item. Currently the menu item is marked as active when there is a prefix
   match on the URL. This creates situations where multiple different menu
   items appear to be active just because they share a prefix. (#62)

Version 0.6.0 (released 2017-08-03)
-----------------------------------

- Fixes Python 3 deprecation warnings.
- Adds the `external_url` parameter to MenuEntryMixin's `register`
  function, allowing menu items with external urls not tied to
  an endpoint.

Version 0.5.1 (released 2016-01-04)
-----------------------------------

- Improves tests for checking when an item is active.

Version 0.5.0 (released 2015-10-30)
-----------------------------------

- Drops support for Python 2.6.
- Adds new property to MenuEntryMixin which allows the user to retrieve the
  current active item from the MenuEntryMixin's tree. (#43)
- Modifies project structure to be in line with other newer Invenio project
  packages. This includes renaming files to match with files in other projects,
  revising structures of certain files and adding more tools for testing. (#42)
- Fixes incompatibility with pytest>=2.8.0 which removed the method
  consider_setuptools_entrypoints(). (#41)
- Updates to the new standard greeting phrase

Version 0.4.0 (released 2015-07-23)
-----------------------------------

- Flask-Classy support and automatic detection of parameters for
  `url_for`.  (#33)
- Improves how the default active state of items is determined.  (#32)
- Adds `.dockerignore` excluding among others Python cache
  files.  This solves a problem when using both `tox` and `docker` to run
  the test suite on the same host.  (#29)

Version 0.3.0 (released 2015-03-17)
-----------------------------------

- New method `has_active_child(recursive=True)` in `MenuEntryMixin`.  (#25)
- Fixed documentation of blueprint example. (#21)
- Configuration for Docker and demo app. (#22 #29)
- Fixed template example and added code block types.  (#14)

Version 0.2.0 (released 2014-11-04)
-----------------------------------

- The Flask-Menu extension is now released under more permissive
  Revised BSD License. (#12)
- New support for additional keyword arguments stored as `MenuItem`
  attributes. (#19)
- Richer quick-start usage example. (#16)
- Support for Python 3.4. (#6)
- Documentation improvements. (#3)

Version 0.1.0 (released 2014-06-27)
-----------------------------------

- Initial public release.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/inveniosoftware/flask-menu",
    "name": "Flask-Menu",
    "maintainer": "",
    "docs_url": "https://pythonhosted.org/Flask-Menu/",
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Invenio collaboration",
    "author_email": "info@inveniosoftware.org",
    "download_url": "https://files.pythonhosted.org/packages/71/ea/761b621b486a8c20e44afa56b4bcbd4b76840231f35614acdc6c7300a44c/flask-menu-1.0.0.tar.gz",
    "platform": "any",
    "description": "============\n Flask-Menu\n============\n\n.. image:: https://github.com/inveniosoftware/flask-menu/workflows/CI/badge.svg\n    :target: https://github.com/inveniosoftware/flask-menu/actions\n.. image:: https://coveralls.io/repos/inveniosoftware/flask-menu/badge.png?branch=master\n    :target: https://coveralls.io/r/inveniosoftware/flask-menu\n.. image:: https://pypip.in/v/Flask-Menu/badge.png\n    :target: https://pypi.python.org/pypi/Flask-Menu/\n.. image:: https://pypip.in/d/Flask-Menu/badge.png\n    :target: https://pypi.python.org/pypi/Flask-Menu/\n\nAbout\n=====\nFlask-Menu is a Flask extension that adds support for generating\nmenus.\n\nInstallation\n============\nFlask-Menu is on PyPI so all you need is: ::\n\n    pip install Flask-Menu\n\nDocumentation\n=============\nDocumentation is readable at https://flask-menu.readthedocs.io/ or can be\nbuild using Sphinx: ::\n\n    git submodule init\n    git submodule update\n    pip install Sphinx\n    python setup.py build_sphinx\n\nTesting\n=======\nRunning the test suite is as simple as: ::\n\n    python setup.py test\n\nor, to also show code coverage: ::\n\n    ./run-tests.sh\n\nChanges\n=======\n\nVersion 1.0.0 (released 2023-08-21)\n-----------------------------------\n\n- Large module refactor for allowing contextless usage.\n- Removed Flask-Classy support.\n- Preparation for compatibility with Flask v2.3.x deprecations.\n\nVersion 0.7.2 (released 2020-05-07)\n-----------------------------------\n\n- Deprecated Python versions lower than 3.6.0. Now supporting 3.6.0 and 3.7.0.\n\nVersion 0.7.1 (released 2019-02-11)\n-----------------------------------\n\n- Fixes problem with returning an active menu item.\n\nVersion 0.7.0 (released 2017-12-12)\n-----------------------------------\n\n-  Uses whole segment of the URL instead of a prefix to determine active menu\n   item. Currently the menu item is marked as active when there is a prefix\n   match on the URL. This creates situations where multiple different menu\n   items appear to be active just because they share a prefix. (#62)\n\nVersion 0.6.0 (released 2017-08-03)\n-----------------------------------\n\n- Fixes Python 3 deprecation warnings.\n- Adds the `external_url` parameter to MenuEntryMixin's `register`\n  function, allowing menu items with external urls not tied to\n  an endpoint.\n\nVersion 0.5.1 (released 2016-01-04)\n-----------------------------------\n\n- Improves tests for checking when an item is active.\n\nVersion 0.5.0 (released 2015-10-30)\n-----------------------------------\n\n- Drops support for Python 2.6.\n- Adds new property to MenuEntryMixin which allows the user to retrieve the\n  current active item from the MenuEntryMixin's tree. (#43)\n- Modifies project structure to be in line with other newer Invenio project\n  packages. This includes renaming files to match with files in other projects,\n  revising structures of certain files and adding more tools for testing. (#42)\n- Fixes incompatibility with pytest>=2.8.0 which removed the method\n  consider_setuptools_entrypoints(). (#41)\n- Updates to the new standard greeting phrase\n\nVersion 0.4.0 (released 2015-07-23)\n-----------------------------------\n\n- Flask-Classy support and automatic detection of parameters for\n  `url_for`.  (#33)\n- Improves how the default active state of items is determined.  (#32)\n- Adds `.dockerignore` excluding among others Python cache\n  files.  This solves a problem when using both `tox` and `docker` to run\n  the test suite on the same host.  (#29)\n\nVersion 0.3.0 (released 2015-03-17)\n-----------------------------------\n\n- New method `has_active_child(recursive=True)` in `MenuEntryMixin`.  (#25)\n- Fixed documentation of blueprint example. (#21)\n- Configuration for Docker and demo app. (#22 #29)\n- Fixed template example and added code block types.  (#14)\n\nVersion 0.2.0 (released 2014-11-04)\n-----------------------------------\n\n- The Flask-Menu extension is now released under more permissive\n  Revised BSD License. (#12)\n- New support for additional keyword arguments stored as `MenuItem`\n  attributes. (#19)\n- Richer quick-start usage example. (#16)\n- Support for Python 3.4. (#6)\n- Documentation improvements. (#3)\n\nVersion 0.1.0 (released 2014-06-27)\n-----------------------------------\n\n- Initial public release.\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "\"Flask-Menu is a Flask extension that adds support for generating menus.\"",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/inveniosoftware/flask-menu"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "39d148ecdc9c34d672eff77378aa416e4422885ad5e1b50acd8c8b3212009a26",
                "md5": "2df3b01ead4e7a7c0a988c582e194cb3",
                "sha256": "02219457297fd36172a126ac01a3aac62c3e257e7c85cfa34a718b737a6471d9"
            },
            "downloads": -1,
            "filename": "flask_menu-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2df3b01ead4e7a7c0a988c582e194cb3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 10782,
            "upload_time": "2023-08-21T12:40:10",
            "upload_time_iso_8601": "2023-08-21T12:40:10.560387Z",
            "url": "https://files.pythonhosted.org/packages/39/d1/48ecdc9c34d672eff77378aa416e4422885ad5e1b50acd8c8b3212009a26/flask_menu-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "71ea761b621b486a8c20e44afa56b4bcbd4b76840231f35614acdc6c7300a44c",
                "md5": "83856effaf292ace5d8871692762e28a",
                "sha256": "0925ce498f6474e5fdca29ae97e67419d23b1bf3af002d0d239b5ffecd59649c"
            },
            "downloads": -1,
            "filename": "flask-menu-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "83856effaf292ace5d8871692762e28a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 23265,
            "upload_time": "2023-08-21T12:40:11",
            "upload_time_iso_8601": "2023-08-21T12:40:11.730925Z",
            "url": "https://files.pythonhosted.org/packages/71/ea/761b621b486a8c20e44afa56b4bcbd4b76840231f35614acdc6c7300a44c/flask-menu-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-21 12:40:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "inveniosoftware",
    "github_project": "flask-menu",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "flask-menu"
}
        
Elapsed time: 0.87629s