{"id":13500476,"url":"https://github.com/marcuxyz/mvc-flask","last_synced_at":"2025-05-06T21:28:57.393Z","repository":{"id":46102483,"uuid":"403100021","full_name":"marcuxyz/mvc-flask","owner":"marcuxyz","description":"You can use the mvc-flask extension to turn on MVC pattern in your applications.","archived":false,"fork":false,"pushed_at":"2025-03-06T03:26:45.000Z","size":1025,"stargazers_count":54,"open_issues_count":4,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-19T16:42:22.025Z","etag":null,"topics":["flask","flask-extensions","flask-mvc","flask-mvc-structure","flask-mvc-template","flask-template"],"latest_commit_sha":null,"homepage":"https://marcuxyz.github.io/mvc-flask/","language":"HTML","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/marcuxyz.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-04T16:06:24.000Z","updated_at":"2025-01-11T14:14:25.000Z","dependencies_parsed_at":"2025-01-10T06:45:05.414Z","dependency_job_id":null,"html_url":"https://github.com/marcuxyz/mvc-flask","commit_stats":{"total_commits":44,"total_committers":4,"mean_commits":11.0,"dds":0.2727272727272727,"last_synced_commit":"9d99a56fd68a2a131bedd536908fb74ab67573ec"},"previous_names":["marcuxyz/mvc_flask"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuxyz%2Fmvc-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuxyz%2Fmvc-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuxyz%2Fmvc-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuxyz%2Fmvc-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcuxyz","download_url":"https://codeload.github.com/marcuxyz/mvc-flask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252771503,"owners_count":21801722,"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","flask-extensions","flask-mvc","flask-mvc-structure","flask-mvc-template","flask-template"],"created_at":"2024-07-31T22:01:02.733Z","updated_at":"2025-05-06T21:28:57.373Z","avatar_url":"https://github.com/marcuxyz.png","language":"HTML","funding_links":[],"categories":["HTML","Projects"],"sub_categories":["Boilerplates"],"readme":"![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/marcuxyz/mvc_flask) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/marcuxyz/mvc_flask/unit%20test) ![GitHub](https://img.shields.io/github/license/marcuxyz/mvc_flask) ![PyPI - Downloads](https://img.shields.io/pypi/dm/mvc_flask) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mvc_flask) ![PyPI](https://img.shields.io/pypi/v/mvc_flask)\n\nYou can use the MVC pattern in your Flask application using this extension.\n\n## Installation\n\nRun the follow command to install `mvc_flask`:\n\n```shell\n$ pip install mvc_flask\n```\n\n## Basic Usage\n\nTo start the `mvc_flask` you need to import and register in your application.\n\n\n```python\nfrom flask import Flask\nfrom mvc_flask import FlaskMVC\n\napp = Flask(__name__)\nFlaskMVC(app)\n```\n\nOr use `application factories`, e.g:\n\n```python\nmvc = FlaskMVC()\n\ndef create_app():\n  ...\n  mvc.init_app(app)\n```\n\n**By default the `mvc_flask` assumes that your application directory will be `app` and if it doesn't exist, create it!**\n**If you can use other directories, you can use the `path` parameter when the instance of FlaskMVC is initialized. E.g:**\n\n```python\nmvc = FlaskMVC()\n\ndef create_app():\n  ...\n  mvc.init_app(app, path='src')\n```\n\nNow, you can use `src` as default directory for prepare your application.\n\nYou structure should be look like this:\n\n```text\napp\n├── __ini__.py\n├── controllers\n│   └── home_controller.py\n├── routes.py\n└── views\n    ├── index.html\n```\n\nPlease visit the documentation to check more details https://marcuxyz.github.io/mvc-flask\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuxyz%2Fmvc-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcuxyz%2Fmvc-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuxyz%2Fmvc-flask/lists"}