{"id":19412365,"url":"https://github.com/almas-ali/fronty","last_synced_at":"2025-06-20T12:35:28.239Z","repository":{"id":92326819,"uuid":"605738359","full_name":"Almas-Ali/fronty","owner":"Almas-Ali","description":"A frontend web framework for the web.","archived":false,"fork":false,"pushed_at":"2025-03-30T16:21:23.000Z","size":1418,"stargazers_count":27,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T23:08:23.060Z","etag":null,"topics":["framework","frontend","python","python-framework","python-frontend","python-frontend-library","website"],"latest_commit_sha":null,"homepage":"https://almas-ali.github.io/fronty/","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/Almas-Ali.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,"zenodo":null}},"created_at":"2023-02-23T19:50:27.000Z","updated_at":"2024-12-08T07:39:08.000Z","dependencies_parsed_at":"2024-08-19T21:33:30.143Z","dependency_job_id":"8ba08b04-d94a-49c7-a30e-3a6c66ed13bf","html_url":"https://github.com/Almas-Ali/fronty","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"5a2ad87e321719ec478011ad178605dc0e362acf"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Almas-Ali/fronty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almas-Ali%2Ffronty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almas-Ali%2Ffronty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almas-Ali%2Ffronty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almas-Ali%2Ffronty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Almas-Ali","download_url":"https://codeload.github.com/Almas-Ali/fronty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almas-Ali%2Ffronty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260945617,"owners_count":23087045,"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","frontend","python","python-framework","python-frontend","python-frontend-library","website"],"created_at":"2024-11-10T12:26:20.170Z","updated_at":"2025-06-20T12:35:23.227Z","avatar_url":"https://github.com/Almas-Ali.png","language":"Python","readme":"# Fronty - A frontend web framework\n\nCreated by [**@Almas-Ali**](https://github.com/Almas-Ali)\n\nLearn from the official [**`Documentation`**](https://almas-ali.github.io/fronty/)\n\n## Table of Contents\n\n- [What is Fronty?](#what-is-fronty)\n- [Installation](#installation)\n- [Example Projects](#example-projects)\n- [How to run the example projects](#how-to-run-the-example-projects)\n- [How to create a new project](#how-to-create-a-new-project)\n- [Contributing](#contributing)\n\n## What is Fronty?\n\nFronty is a frontend web framework. It is a Python library that allows you to create web pages using only Python. No HTML, CSS, or JavaScript required. But you can still use them if you want. Basic knowledge of HTML, CSS, and JavaScript is required to use Fronty.\n\n## Installation\n\nEasy to install with pip.\n\n```bash\npip install fronty\n```\n\n## Example Projects\n\n[**`Starter Project`**](https://github.com/Almas-Ali/fronty/tree/master/examples/starter%20project)\n\n![Screenshort_1](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/starter%20project/screenshot_1.png \"Starter Project Screenshot 1\")\n\n[**`Bootstrap Integration`**](https://github.com/Almas-Ali/fronty/tree/master/examples/Bootstrap%20integration)\n\n![Screenshort_1](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/Bootstrap%20integration/screenshot_1.png \"Bootstrap Integration Screenshot 1\")\n\n[**`Custom CSS Project`**](https://github.com/Almas-Ali/fronty/tree/master/examples/Custom%20CSS%20Project)\n\n![Screenshort_1](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/Custom%20CSS%20Project/screenshot_1.png \"Custom CSS Project Screenshot 1\")\n\n![Screenshort_2](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/Custom%20CSS%20Project/screenshot_2.png \"Custom CSS Project Screenshot 2\")\n\n## How to run the example projects\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/Almas-Ali/fronty.git\n```\n\n2. Go to the example project directory\n\n```bash\ncd fronty/examples/starter\\ project\n```\n\n3. Run the project\n\n```bash\npython app.py\n```\n\n**Note:** You have to install a backend server to run the project. Fronty does not provide a backend server. You can use any backend server you want. For example, you can use Flask. You can also use Fronty with Django. But you have to install Django first. For simplicity, we have used Flask in the example projects. We are woring on a backend server for Fronty. It will be available soon.\n\n## How to create a new project\n\n1. Create a new directory\n\n```bash\nmkdir my_project\n```\n\n2. Go to the directory\n\n```bash\ncd my_project\n```\n\n3. Create a new file named `app.py`\n\n```bash\ntouch app.py\n```\n\n4. Open the file with your favorite text editor\n\n5. Copy the following code and paste it in the file\n\n```python\nfrom flask import Flask, request\nfrom fronty.html import *\n\napp = Flask(__name__)\n\n\ndef home(request) -\u003e Html:\n    '''This is the home page view function'''\n    return Html(\n        Head(\n            Title('Home'),\n            Meta(charset='utf-8'),\n            Meta(name='viewport', content='width=device-width, initial-scale=1'),\n        ),\n        Body(\n            Element(\n                'center',\n                Element(\n                    'h1',\n                    'Welcome to Fronty!'\n                ),\n                Element(\n                    'p',\n                    'Fronty is a frontend web framework.'\n                ),\n            )\n        )\n    )\n\n\n@app.route('/')\ndef index() -\u003e str:\n    '''This is the home page view function'''\n    return home(\n        request=request,\n    ).render()\n\n\nif __name__ == '__main__':\n    app.run(debug=True)\n```\n\n6. Run the project\n\n```bash\npython app.py\n```\n\n7. Open the browser and go to `http://127.0.0.1:5000/`\n\n![Screenshort_1](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/starter%20project/screenshot_1.png \"Starter Project Screenshot 1\")\n\n## Contributing\n\nPull requests are welcome. For any changes, please open an issue first to discuss what you would like to change.\n\n**Thanks for using Fronty!**\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmas-ali%2Ffronty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmas-ali%2Ffronty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmas-ali%2Ffronty/lists"}