{"id":16525760,"url":"https://github.com/em-r/flask-mux","last_synced_at":"2026-05-10T18:49:47.801Z","repository":{"id":57430561,"uuid":"361052497","full_name":"em-r/flask-mux","owner":"em-r","description":"Minimal routing extension for Flask","archived":false,"fork":false,"pushed_at":"2021-06-06T17:15:54.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T14:53:01.763Z","etag":null,"topics":["flask"],"latest_commit_sha":null,"homepage":"https://flask-mux.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/em-r.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-24T02:26:12.000Z","updated_at":"2021-06-06T17:15:57.000Z","dependencies_parsed_at":"2022-08-27T22:11:57.607Z","dependency_job_id":null,"html_url":"https://github.com/em-r/flask-mux","commit_stats":null,"previous_names":["elmehdi19/flask-mux"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/em-r%2Fflask-mux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/em-r%2Fflask-mux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/em-r%2Fflask-mux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/em-r%2Fflask-mux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/em-r","download_url":"https://codeload.github.com/em-r/flask-mux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241601898,"owners_count":19989014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask"],"created_at":"2024-10-11T17:06:35.915Z","updated_at":"2026-05-10T18:49:42.770Z","avatar_url":"https://github.com/em-r.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flask-Mux\n================\n\n|Build Status| |Downloads| |Latest Version| |Supported Python versions|\n|License|\n\n**Flask-Mux** is a lightweight Flask_ extension that provides a routing \nsystem similar to that of Express.js_. It basically wraps Flask's \nurl route registrations API to add more flexibility.\n\n.. _Flask: https://palletsprojects.com/p/flask/\n.. _Express.js: https://www.expressjs.com\n\n\nInstalling\n----------\nInstall using `pip`_:\n\n.. code-block:: text\n\n  $ pip install Flask-Mux\n\n.. _pip: https://pip.pypa.io/en/stable/quickstart/\n\n\nA Simple Example\n----------------\n\n.. code-block:: python\n\n    from flask import Flask\n    from flask_mux import Mux, Router\n\n    app = Flask(__name__)\n    mux = Mux(app)\n\n    def home():\n        return 'home'\n\n    def about():\n        return 'about'\n\n    index_router = Router(__name__)\n    index_router.get('/', home)\n    index_router.get('/about', about)\n\n    mux.use('/', index_router)\n\n\nUser's Guide\n------------\nYou'll find the user guide and all documentation here_\n\n.. _here: https://flask-mux.readthedocs.io/en/latest/\n\nLinks\n-----\n\n-   Documentation: https://flask-mux.readthedocs.io/en/latest/\n-   PyPI Releases: https://pypi.org/project/Flask-Mux/\n-   Source Code: https://github.com/ElMehdi19/flask-mux/\n-   Issue Tracker: https://github.com/ElMehdi19/flask-mux/issues/\n\n\n.. |Build Status| image:: https://github.com/ElMehdi19/flask-mux/actions/workflows/tests.yml/badge.svg\n   :target: https://github.com/ElMehdi19/flask-mux/actions\n.. |Latest Version| image:: https://img.shields.io/pypi/v/Flask-Mux.svg\n   :target: https://pypi.python.org/pypi/Flask-Mux/\n.. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/Flask-Mux.svg\n   :target: https://img.shields.io/pypi/pyversions/Flask-Mux.svg\n.. |License| image:: http://img.shields.io/:license-mit-blue.svg\n   :target: https://pypi.python.org/pypi/Flask-Mux\n.. |Downloads| image:: https://static.pepy.tech/personalized-badge/flask-mux?period=total\u0026units=international_system\u0026left_color=black\u0026right_color=blue\u0026left_text=Downloads \n   :target: https://pepy.tech/project/flask-mux\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fem-r%2Fflask-mux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fem-r%2Fflask-mux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fem-r%2Fflask-mux/lists"}