fronty


Namefronty JSON
Version 0.0.7 PyPI version JSON
download
home_page
SummaryA frontend web framework
upload_time2024-02-10 13:10:03
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT License Copyright (c) 2023 Almas-Ali Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords css easy fast framework frontend frontend framework html javascript light light-weight lightweight quick rapid simple web web framework
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Fronty - A frontend web framework

Created by [**@Almas-Ali**](https://github.com/Almas-Ali)

Learn from the official [**`Documentation`**](https://almas-ali.github.io/fronty/)

## Table of Contents

- [What is Fronty?](#what-is-fronty)
- [Installation](#installation)
- [Example Projects](#example-projects)
- [How to run the example projects](#how-to-run-the-example-projects)
- [How to create a new project](#how-to-create-a-new-project)
- [Contributing](#contributing)

## What is Fronty?

Fronty 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.

## Installation

Easy to install with pip.

```bash
pip install fronty
```

## Example Projects

[**`Starter Project`**](https://github.com/Almas-Ali/fronty/tree/master/examples/starter%20project)

![Screenshort_1](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/starter%20project/screenshot_1.png "Starter Project Screenshot 1")

[**`Bootstrap Integration`**](https://github.com/Almas-Ali/fronty/tree/master/examples/Bootstrap%20integration)

![Screenshort_1](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/Bootstrap%20integration/screenshot_1.png "Bootstrap Integration Screenshot 1")

[**`Custom CSS Project`**](https://github.com/Almas-Ali/fronty/tree/master/examples/Custom%20CSS%20Project)

![Screenshort_1](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/Custom%20CSS%20Project/screenshot_1.png "Custom CSS Project Screenshot 1")

![Screenshort_2](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/Custom%20CSS%20Project/screenshot_2.png "Custom CSS Project Screenshot 2")

## How to run the example projects

1. Clone the repository

```bash
git clone https://github.com/Almas-Ali/fronty.git
```

2. Go to the example project directory

```bash
cd fronty/examples/starter\ project
```

3. Run the project

```bash
python app.py
```

**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.

## How to create a new project

1. Create a new directory

```bash
mkdir my_project
```

2. Go to the directory

```bash
cd my_project
```

3. Create a new file named `app.py`

```bash
touch app.py
```

4. Open the file with your favorite text editor

5. Copy the following code and paste it in the file

```python
from flask import Flask, request
from fronty.html import *

app = Flask(__name__)


def home(request) -> Html:
    '''This is the home page view function'''
    return Html(
        Head(
            Title('Home'),
            Meta(charset='utf-8'),
            Meta(name='viewport', content='width=device-width, initial-scale=1'),
        ),
        Body(
            Element(
                'center',
                Element(
                    'h1',
                    'Welcome to Fronty!'
                ),
                Element(
                    'p',
                    'Fronty is a frontend web framework.'
                ),
            )
        )
    )


@app.route('/')
def index() -> str:
    '''This is the home page view function'''
    return home(
        request=request,
    ).render()


if __name__ == '__main__':
    app.run(debug=True)
```

6. Run the project

```bash
python app.py
```

7. Open the browser and go to `http://127.0.0.1:5000/`

![Screenshort_1](https://raw.githubusercontent.com/Almas-Ali/fronty/master/examples/starter%20project/screenshot_1.png "Starter Project Screenshot 1")

## Contributing

Pull requests are welcome. For any changes, please open an issue first to discuss what you would like to change.

**Thanks for using Fronty!**

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "fronty",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "\"Md. Almas Ali\" <almaspr3@gmail.com>",
    "keywords": "css,easy,fast,framework,frontend,frontend framework,html,javascript,light,light-weight,lightweight,quick,rapid,simple,web,web framework",
    "author": "",
    "author_email": "\"Md. Almas Ali\" <almaspr3@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a3/6f/e42c59b456116e67377038118cb580ae9290dbe38beebd5ff7f7b45ab4da/fronty-0.0.7.tar.gz",
    "platform": null,
    "description": "# 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) -> 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() -> 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",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Almas-Ali  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A frontend web framework",
    "version": "0.0.7",
    "project_urls": {
        "Bug Tracker": "https://github.com/Almas-Ali/fronty/issues",
        "Documentation": "https://github.com/Almas-Ali/fronty#readme",
        "Homepage": "https://github.com/Almas-Ali/fronty",
        "Repository": "https://github.com/Almas-Ali/fronty"
    },
    "split_keywords": [
        "css",
        "easy",
        "fast",
        "framework",
        "frontend",
        "frontend framework",
        "html",
        "javascript",
        "light",
        "light-weight",
        "lightweight",
        "quick",
        "rapid",
        "simple",
        "web",
        "web framework"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2629954655b03053877aaf9525a1a2a0150f233fbbefcc0439ea47b69b3b2620",
                "md5": "a7356e078177bd9cf25eaff812394165",
                "sha256": "21e96cf2ae9a0bcc8891c858383cf50d06479d20e3a90186bb2fd8e4ad0d90b6"
            },
            "downloads": -1,
            "filename": "fronty-0.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a7356e078177bd9cf25eaff812394165",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 11138,
            "upload_time": "2024-02-10T13:10:01",
            "upload_time_iso_8601": "2024-02-10T13:10:01.050898Z",
            "url": "https://files.pythonhosted.org/packages/26/29/954655b03053877aaf9525a1a2a0150f233fbbefcc0439ea47b69b3b2620/fronty-0.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a36fe42c59b456116e67377038118cb580ae9290dbe38beebd5ff7f7b45ab4da",
                "md5": "9bb6dec19f11a328e896899ac230fd4b",
                "sha256": "a34d02c6eddf5fde556a4b10708fbb3005d239a8d1ebb88ec38d4b2938d641bc"
            },
            "downloads": -1,
            "filename": "fronty-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "9bb6dec19f11a328e896899ac230fd4b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 263827,
            "upload_time": "2024-02-10T13:10:03",
            "upload_time_iso_8601": "2024-02-10T13:10:03.003466Z",
            "url": "https://files.pythonhosted.org/packages/a3/6f/e42c59b456116e67377038118cb580ae9290dbe38beebd5ff7f7b45ab4da/fronty-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-10 13:10:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Almas-Ali",
    "github_project": "fronty",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "fronty"
}
        
Elapsed time: 0.23237s