{"id":24311716,"url":"https://github.com/carlosmatheus/python-web-framework","last_synced_at":"2025-03-08T22:36:43.958Z","repository":{"id":111549924,"uuid":"219221362","full_name":"CarlosMatheus/Python-Web-Framework","owner":"CarlosMatheus","description":"A HTTP Python web framework implementation","archived":false,"fork":false,"pushed_at":"2024-04-17T00:00:40.000Z","size":7278,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T07:13:59.880Z","etag":null,"topics":["framework","http","python","restful-framework"],"latest_commit_sha":null,"homepage":null,"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/CarlosMatheus.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}},"created_at":"2019-11-02T22:22:29.000Z","updated_at":"2021-02-25T06:18:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e1abb57-634c-4373-a4d0-fc8c5f997bd6","html_url":"https://github.com/CarlosMatheus/Python-Web-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/CarlosMatheus%2FPython-Web-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosMatheus%2FPython-Web-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosMatheus%2FPython-Web-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosMatheus%2FPython-Web-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarlosMatheus","download_url":"https://codeload.github.com/CarlosMatheus/Python-Web-Framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242619107,"owners_count":20159001,"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","http","python","restful-framework"],"created_at":"2025-01-17T07:14:15.033Z","updated_at":"2025-03-08T22:36:43.936Z","avatar_url":"https://github.com/CarlosMatheus.png","language":"HTML","readme":"# Python-Web-Framework\nAn HTTP Python web framework implementation that supports routering and templates like flask.\n\n\u003e Project in early development stage, not stable for production :construction:  \n\n## Usage \n\nCreate a `server.py` file as on the example of this repository.\n\nOn the file import the `WebFramework` class.\n\nDefine the routes and pages.\n\nThe framework also supports templates files similarly to flask, put them on templates folder.\n\nCall the `start_server()` method at the end and run the `server.py` file.\n\n## Example\n\n```python\nfrom web_framework import WebFramework\n\nserver = WebFramework()\n\n\n@server.route(\"/\")\ndef home(request):\n    return \"Hello from the HOME page\"\n\n\n@server.route(\"/about\")\ndef about(request):\n    return server.open_template('index')\n\n\nserver.start_server()\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosmatheus%2Fpython-web-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlosmatheus%2Fpython-web-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosmatheus%2Fpython-web-framework/lists"}