{"id":13421678,"url":"https://github.com/rhyselsmore/flask-reggie","last_synced_at":"2025-03-21T16:32:15.540Z","repository":{"id":6033700,"uuid":"7257928","full_name":"rhyselsmore/flask-reggie","owner":"rhyselsmore","description":"Regex Converter for Flask URL Routes","archived":false,"fork":false,"pushed_at":"2013-07-08T02:03:07.000Z","size":152,"stargazers_count":49,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T08:03:41.314Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhyselsmore.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","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":"2012-12-20T13:16:23.000Z","updated_at":"2024-10-16T11:41:15.000Z","dependencies_parsed_at":"2022-08-27T22:30:28.087Z","dependency_job_id":null,"html_url":"https://github.com/rhyselsmore/flask-reggie","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhyselsmore%2Fflask-reggie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhyselsmore%2Fflask-reggie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhyselsmore%2Fflask-reggie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhyselsmore%2Fflask-reggie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhyselsmore","download_url":"https://codeload.github.com/rhyselsmore/flask-reggie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244147341,"owners_count":20405942,"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":[],"created_at":"2024-07-30T23:00:28.110Z","updated_at":"2025-03-21T16:32:15.182Z","avatar_url":"https://github.com/rhyselsmore.png","language":"Python","funding_links":[],"categories":["介绍","Utils","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"Flask-Reggie\n============\n\n\n.. image:: https://travis-ci.org/rhyselsmore/flask-reggie.png?branch=master\n        :target: https://travis-ci.org/rhyselsmore/flask-reggie\n\n.. image:: https://pypip.in/d/Flask-Reggie/badge.png\n        :target: https://crate.io/packages/Flask-Reggie/\n\nEnable Regex Routes within Flask\n\nInstallation\n------------\n\n.. code-block:: bash\n\n    pip install flask-reggie\n\nConfiguration\n-------------\n\nTo enable regex routes within your application\n\n.. code-block:: python\n\n    from flask import Flask\n    from flask_reggie import Reggie\n\n    app = Flask(__name__)\n    Reggie(app)\n\nor\n\n.. code-block:: python\n\n    from flask import Flask\n    from flask_reggie import Reggie\n\n    reggie = Reggie()\n\n    def create_app():\n        app = Flask(__name__)\n        reggie.init_app(app)\n        return app\n\nUsage\n-----\n\nIf we were looking to have a UUID supplied as a view argument, we would follow this pattern\n\n.. code-block:: python\n\n    @app.route('/\u003cregex(\"[0-9a-f]{32}\"):uuid\u003e')\n    def example(uuid):\n        return uuid\n\nAs you can see, we are able to supply a regular expression, and have it passed as a view argument.\n\nSimple.\n\nContribute\n----------\n\n#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.\n#. Fork `the repository`_ on Github to start making your changes to the **master** branch (or branch off of it).\n#. Write a test which shows that the bug was fixed or that the feature works as expected.\n#. Send a pull request and bug the maintainer until it gets merged and published.\n\n.. _`the repository`: http://github.com/rhyselsmore/flask-reggie","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhyselsmore%2Fflask-reggie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhyselsmore%2Fflask-reggie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhyselsmore%2Fflask-reggie/lists"}