Flask-Blueprints-Loader
=======================
Flask-Blueprints-Loader is an extension for `Flask`_ that automatically discovers and registers `Blueprint`_ for your application.
.. _Flask: https://flask.palletsprojects.com/
.. _Blueprint: https://flask.palletsprojects.com/en/3.0.x/blueprints/
Installing
----------
Install using `pip`_:
.. code-block:: sh
$ pip install -U flask-blueprints-loader
.. _pip: https://pip.pypa.io/en/stable/
Initialize the Extension
------------------------
Application Instance Pattern
.. code-block:: py3
from flask import Flask
from flask_blueprints_loader import BlueprintsLoader
app = Flask(__name__)
loader = BlueprintsLoader(app)
with app.app_context():
loader.register_blueprints()
Application Factories Pattern
.. code-block:: py3
from flask import Flask
from flask_blueprints_loader import BlueprintsLoader
loader = BlueprintsLoader()
def create_app():
app = Flask(__name__)
loader.init_app(app)
with app.app_context():
loader.register_blueprints()
return app
Links
-----
- Documentation: https://flask-blueprints-loader.readthedocs.io/en/latest/
- PyPI Releases: https://pypi.org/project/flask-blueprints-loader/
- Source Code: https://github.com/curskey/flask-blueprints-loader/
- Issue Tracker: https://github.com/curskey/flask-blueprints-loader/issues/
Raw data
{
"_id": null,
"home_page": null,
"name": "flask-blueprints-loader",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "Flask,blueprint,extension,loader,import,auto-load,auto-import,web framework,Python",
"author": null,
"author_email": "curskey <curskey@proton.me>",
"download_url": "https://files.pythonhosted.org/packages/0f/8f/7d0ccae26b4b1b9f93d860f00901a70c7f2efb42dd38683f0e0c0c42979b/flask_blueprints_loader-0.1.0.tar.gz",
"platform": null,
"description": "Flask-Blueprints-Loader\n=======================\n\nFlask-Blueprints-Loader is an extension for `Flask`_ that automatically discovers and registers `Blueprint`_ for your application.\n\n.. _Flask: https://flask.palletsprojects.com/\n.. _Blueprint: https://flask.palletsprojects.com/en/3.0.x/blueprints/\n\nInstalling\n----------\n\nInstall using `pip`_:\n\n.. code-block:: sh\n\n $ pip install -U flask-blueprints-loader\n\n.. _pip: https://pip.pypa.io/en/stable/\n\nInitialize the Extension\n------------------------\n\nApplication Instance Pattern\n\n.. code-block:: py3\n\n from flask import Flask\n from flask_blueprints_loader import BlueprintsLoader\n\n app = Flask(__name__)\n loader = BlueprintsLoader(app)\n\n with app.app_context():\n loader.register_blueprints()\n\n\nApplication Factories Pattern\n\n.. code-block:: py3\n\n from flask import Flask\n from flask_blueprints_loader import BlueprintsLoader\n\n loader = BlueprintsLoader()\n\n def create_app():\n app = Flask(__name__)\n loader.init_app(app)\n\n with app.app_context():\n loader.register_blueprints()\n\n return app\n\nLinks\n-----\n\n- Documentation: https://flask-blueprints-loader.readthedocs.io/en/latest/\n- PyPI Releases: https://pypi.org/project/flask-blueprints-loader/\n- Source Code: https://github.com/curskey/flask-blueprints-loader/\n- Issue Tracker: https://github.com/curskey/flask-blueprints-loader/issues/\n",
"bugtrack_url": null,
"license": null,
"summary": "Automatically discover and register Flask blueprints",
"version": "0.1.0",
"project_urls": {
"Documentation": "https://flask-blueprints-loader.readthedocs.io/en/stable/",
"Home": "https://github.com/curskey/flask-blueprints-loader",
"Issue": "https://github.com/curskey/flask-blueprints-loader/issues/",
"Source": "https://github.com/curskey/flask-blueprints-loader"
},
"split_keywords": [
"flask",
"blueprint",
"extension",
"loader",
"import",
"auto-load",
"auto-import",
"web framework",
"python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "da0529e75f13d7606c61fc8f8c95dd041b5ec547493c77d9993dc6e365a76719",
"md5": "df53fe6eb0561d9e532fcc63c2684057",
"sha256": "9988742def5fc1153dd201c7e678d394b72d95eadc13df7d15ff99edfc48c516"
},
"downloads": -1,
"filename": "flask_blueprints_loader-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "df53fe6eb0561d9e532fcc63c2684057",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 4521,
"upload_time": "2023-10-21T22:37:25",
"upload_time_iso_8601": "2023-10-21T22:37:25.706897Z",
"url": "https://files.pythonhosted.org/packages/da/05/29e75f13d7606c61fc8f8c95dd041b5ec547493c77d9993dc6e365a76719/flask_blueprints_loader-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "0f8f7d0ccae26b4b1b9f93d860f00901a70c7f2efb42dd38683f0e0c0c42979b",
"md5": "46174ad5463dd7e3923054c0b15ba562",
"sha256": "cc31a2919bdcb278664606fc14f6e761a577f09569ef25e56b57b0ccd019bb59"
},
"downloads": -1,
"filename": "flask_blueprints_loader-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "46174ad5463dd7e3923054c0b15ba562",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 9090,
"upload_time": "2023-10-21T22:37:27",
"upload_time_iso_8601": "2023-10-21T22:37:27.267287Z",
"url": "https://files.pythonhosted.org/packages/0f/8f/7d0ccae26b4b1b9f93d860f00901a70c7f2efb42dd38683f0e0c0c42979b/flask_blueprints_loader-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-21 22:37:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "curskey",
"github_project": "flask-blueprints-loader",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "flask-blueprints-loader"
}