{"id":22766977,"url":"https://github.com/ejdecena/little-mvc-framework","last_synced_at":"2025-03-30T10:42:52.304Z","repository":{"id":111745023,"uuid":"266622979","full_name":"ejdecena/Little-MVC-Framework","owner":"ejdecena","description":"Little MVC Framework is a small framework for software development. The framework is built following the Model-View-Controller (MVC) architecture.","archived":false,"fork":false,"pushed_at":"2020-05-26T21:31:07.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T12:35:01.733Z","etag":null,"topics":["framework","model-view-controller","mvc","mvc-architecture","mvc-framework","mvc-pattern","python","python3"],"latest_commit_sha":null,"homepage":"","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/ejdecena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2020-05-24T20:52:55.000Z","updated_at":"2024-01-04T15:02:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a46b05c-b6bb-40b5-a791-2d7d82269794","html_url":"https://github.com/ejdecena/Little-MVC-Framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejdecena%2FLittle-MVC-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejdecena%2FLittle-MVC-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejdecena%2FLittle-MVC-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejdecena%2FLittle-MVC-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejdecena","download_url":"https://codeload.github.com/ejdecena/Little-MVC-Framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246307931,"owners_count":20756478,"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":["framework","model-view-controller","mvc","mvc-architecture","mvc-framework","mvc-pattern","python","python3"],"created_at":"2024-12-11T13:16:09.456Z","updated_at":"2025-03-30T10:42:52.298Z","avatar_url":"https://github.com/ejdecena.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Little MVC Framework.\n\n*Little MVC Framework* is a small framework for software development. The framework is built following the *Model-View-Controller* architecture [(MVC)](https://en.wikipedia.org/wiki/Model-view-controller-view-controller).\n\n\u003cimg src=\"https://img.shields.io/badge/Python-3.5-blue\" /\u003e\n\n## Developer.\n\n* Edgard Decena, edecena@gmail.com\n\n## Description and Settings.\n\nThe framework is based on the *Model-View-Controller* design pattern. It is structured in six files: `controllers.py`, `models.py` and `views.py`, where the controllers, models and views classes are placed, respectively. In the `helpers.py` file are the framework's complementary functions and classes. The `config.py` file will have the constants and parameter declarations, and finally the `main.py` file will be the framework executor file.\n\n### The Models.\n\nThe models of the development are located in the file `models.py`. The first adjustment that has to be done before starting the development is to set the *origin* and *access* to the data source, this is done in the `Model` class implemented in the `models.py` file. The following *methods* in the class `Model` **should be implemented** according to the data source to establish the *origin* and *access* to the data:\n\n1. `def __init__(self)`: Constructor method of the `Model` class.\n1. `def connect(self)`: Method of connecting to the data source.\n1. `def execute(self, command)`: Method that executes a instruction in the data source.\n1. `def disconnect(self)`: Method of disconnecting to the data source.\n\nAll models should be placed in the `models.py` file, implemented in a single class inherited from the base `Model` class. Each model will have at its disposal the `connect()` `execute()`, `disconnect()` and `model_exception()` methods inherited from the base `Model` class.\n\n### The Views.\n\nAll the views should be placed in the `views.py` file, implemented in a single class and inherited from the base `View` class. Each view will have to implement the `show()` method to show the view, and will have at its disposal the `view_exception()` method inherited from the base `View` class.\n\n### The Controllers.\n\nAll the controllers of the development must be located in the file `controllers.py`, will be implemented in a single class and inherit from the base class `Controller`. Each controller must implement the `run()` method to execute it. Each controller will have at its disposal the `load_model()`, `load_view()`, `load_controller()`, `run()` and `controller_exception()` methods inherited from the base `Controller` class.\n\n## Use.\n\n1. Set the origin and access to the development data in the `Model` class implemented in the `models.py` file.\n2. Create the models, controllers and views in the `controllers.py`, `models.py` and `views.py` files, respectively.\n1. Run the `main.py` and see the framework display.\n\n## Contributions.\n\nAny doubt or problem about the framework should be reported by opening an [**issue**](https://github.com/ejdecena/Little-MVC-Framework/issues).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejdecena%2Flittle-mvc-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejdecena%2Flittle-mvc-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejdecena%2Flittle-mvc-framework/lists"}