{"id":14974231,"url":"https://github.com/curskey/flask-blueprints-loader","last_synced_at":"2026-02-06T13:39:37.611Z","repository":{"id":230122366,"uuid":"708179737","full_name":"curskey/flask-blueprints-loader","owner":"curskey","description":"An extension for Flask that automatically discovers and registers Blueprint for your application.","archived":false,"fork":false,"pushed_at":"2023-12-17T14:49:01.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T16:35:05.984Z","etag":null,"topics":["auto-import","auto-load","auto-register","blueprint","extension","flask","flask-extension","import","loader","python","web-framework"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curskey.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-21T19:02:13.000Z","updated_at":"2025-07-18T07:48:44.000Z","dependencies_parsed_at":"2024-03-28T00:46:12.917Z","dependency_job_id":null,"html_url":"https://github.com/curskey/flask-blueprints-loader","commit_stats":null,"previous_names":["curskey/flask-blueprints-loader"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/curskey/flask-blueprints-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curskey%2Fflask-blueprints-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curskey%2Fflask-blueprints-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curskey%2Fflask-blueprints-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curskey%2Fflask-blueprints-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curskey","download_url":"https://codeload.github.com/curskey/flask-blueprints-loader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curskey%2Fflask-blueprints-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29162918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T12:44:37.655Z","status":"ssl_error","status_checked_at":"2026-02-06T12:44:13.991Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["auto-import","auto-load","auto-register","blueprint","extension","flask","flask-extension","import","loader","python","web-framework"],"created_at":"2024-09-24T13:50:15.444Z","updated_at":"2026-02-06T13:39:37.351Z","avatar_url":"https://github.com/curskey.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask-Blueprints-Loader\n\n[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/curskey/flask-blueprints-loader/tests.yml?label=tests)](https://github.com/curskey/flask-blueprints-loader/actions/workflows/tests.yml)\n[![Codecov](https://img.shields.io/codecov/c/github/curskey/flask-blueprints-loader)](https://codecov.io/gh/curskey/flask-blueprints-loader)\n\nFlask-Blueprints-Loader is an extension for [Flask](https://flask.palletsprojects.com/) that automatically discovers and registers [Blueprint](https://flask.palletsprojects.com/en/3.0.x/blueprints/) for your application.\n\n## Features\n\n- Automatic loading and registration of Flask blueprints.\n- Easy configuration via Flask app configuration variables.\n\n## Why Use Flask-Blueprints-Loader?\n\nFlask-Blueprints-Loader is particularly useful for [Large Applications as Packages](https://flask.palletsprojects.com/en/3.0.x/patterns/packages/) that heavily rely on blueprints. Instead of manually registering each blueprint, this extension allows you to automate the process by automatically discovering and registering all blueprints for your application.\n\n## Installation\n\nFlask-Blueprints-Loader is available on [PyPI](https://pypi.org/project/flask-blueprints-loader/) and can be installed with various Python [Application dependency management](https://packaging.python.org/en/latest/guides/tool-recommendations/) tools.\n\nInstall using `pip`:\n\n```sh\npip install flask-blueprints-loader\n```\n\n## Initialize the Extension\n\n- Application Instance Pattern\n\n```python\nfrom flask import Flask\nfrom flask_blueprints_loader import BlueprintsLoader\n\napp = Flask(__name__)\nloader = BlueprintsLoader(app)\n\nwith app.app_context():\n    loader.load_blueprints()\n```\n\n- Application Factories Pattern\n\n```python\nfrom flask import Flask\nfrom flask_blueprints_loader import BlueprintsLoader\n\nloader = BlueprintsLoader()\n\ndef create_app():\n    app = Flask(__name__)\n    loader.init_app(app)\n\n    with app.app_context():\n        loader.load_blueprints()\n\n    return app\n```\n\n## Directory Structure\n\nFlask-Blueprints-Loader expects your blueprints to be organized in a specific directory structure. By default, it looks for blueprints under the current_app.root_path directory or in the subdirectory specified by the BLUEPRINTS_LOADER_PATH_NAME configuration parameter. Each blueprint should be in its own package and contain a module named \"views\" (or as specified by the BLUEPRINTS_LOADER_MODULE_NAME configuration parameter) that defines the Blueprint instance and route definitions. If your blueprints are not organized in this way, you may need to make changes to your code to use Flask-Blueprints-Loader.\n\n## Configuration\n\nBLUEPRINTS_LOADER_PATH_NAME (str)\n    : The name of the subdirectory containing the blueprints. By default, blueprints are under the current_app.root_path.\n\nBLUEPRINTS_LOADER_MODULE_NAME (str)\n    : The name of the module containing the blueprints. By default, it is set to \"views\".\n\nBLUEPRINTS_LOADER_UNLOADS (list)\n    : A list of blueprint names to exclude from loading. By default, it is an empty list.\n\n## Links\n\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\n## License\n\nThis project is under the [MIT](https://github.com/curskey/flask-blueprints-loader/blob/main/LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurskey%2Fflask-blueprints-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurskey%2Fflask-blueprints-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurskey%2Fflask-blueprints-loader/lists"}