Name | radiant-framework JSON |
Version |
0.1a26
JSON |
| download |
home_page | None |
Summary | Radiant Framework |
upload_time | 2024-09-13 04:07:24 |
maintainer | Yeison Cardona |
docs_url | None |
author | Yeison Cardona |
requires_python | >=3.8 |
license | BSD-2-Clause |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Radiant Framework
A Brython Framework for Web Apps development.
![GitHub top language](https://img.shields.io/github/languages/top/un-gcpds/brython-radiant?)
![PyPI - License](https://img.shields.io/pypi/l/radiant?)
![PyPI](https://img.shields.io/pypi/v/radiant?)
![PyPI - Status](https://img.shields.io/pypi/status/radiant?)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/radiant?)
![GitHub last commit](https://img.shields.io/github/last-commit/un-gcpds/brython-radiant?)
![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/UN-GCPDS/brython-radiant?)
[![Documentation Status](https://readthedocs.org/projects/radiant/badge/?version=latest)](https://radiant-framework.readthedocs.io/en/latest/?badge=latest)
## Overview
Radiant Framework is a novel web framework designed to leverage the capabilities of [Brython](https://brython.info/), a browser-based Python implementation. This innovative approach allows developers to write web applications entirely in Python, bypassing the conventional requirements of HTML, CSS, or JavaScript for frontend development.
## Key Features
### Python-Centric Development
- **Unified Language Usage**: Write your entire web application using Python, ensuring a consistent and streamlined coding experience.
- **Brython Integration**: Utilizes Brython for executing Python code in the browser, enabling a seamless transition of server-side code to client-side execution.
### Server and Browser Compatibility
- **Dual Environment Execution**: Radiant enables the same application code to run both on the server and in the browser, maximizing code reusability and efficiency.
- **Tornado Web Server**: On the server-side, Radiant harnesses the [Tornado](https://www.tornadoweb.org/) web server to deploy applications, known for its scalability and non-blocking network I/O capabilities.
### Resource Management
- **Static File Handling**: Simplifies the management of static files (images, stylesheets, etc.), by setting up a local path for their serving, facilitating their inclusion in the application.
### Runtime Configuration
- **Dynamic HTML Templates**: Radiant offers a custom HTML template system, configurable at runtime, to dynamically import server-side scripts into the browser environment.
## Benefits
- **Streamlined Development Process**: By unifying the development language and environment, Radiant significantly reduces the complexity and learning curve associated with traditional web development.
- **Code Efficiency**: Eliminates the need for writing separate frontend and backend code, leading to more maintainable and concise codebases.
- **Focus on Quality**: Developers can concentrate on crafting high-quality Python code, without the distractions of dealing with various web technologies.
## Installation
To install Radiant, you can use `pip`, the Python package manager. Simply run the following command in your terminal:
```python
pip install radiant-framework
```
## Bare minimum
To help you get started with Radiant, let's walk through a bare minimum example. This example will demonstrate how to create a simple web page that displays some text. We'll utilize the Radiant framework to craft the page and run it on a local server. This is an excellent way to familiarize yourself with how Radiant functions and to begin exploring its capabilities.
### Prerequisites
Before proceeding, ensure that you have Radiant installed on your system. If you haven't installed Radiant yet, please refer to the [Installation](#installation) section for guidance.
### Creating a Simple Web Page
The following script illustrates a basic application using Radiant. This script will set up a simple web page displaying a heading.
```python
from radiant.framework.server import RadiantAPI
from browser import document, html
class BareMinimum(RadiantAPI):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
document.select_one('body') <= html.H1('Radiant-Framework')
if __name__ == '__main__':
BareMinimum()
```
Raw data
{
"_id": null,
"home_page": null,
"name": "radiant-framework",
"maintainer": "Yeison Cardona",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "yencardonaal@unal.edu.co",
"keywords": null,
"author": "Yeison Cardona",
"author_email": "yencardonaal@unal.edu.co",
"download_url": "https://files.pythonhosted.org/packages/d2/17/d632027cb003fe2121eb1b7a8e03f784b520ce326c657f17693b189c54f4/radiant_framework-0.1a26.tar.gz",
"platform": null,
"description": "# Radiant Framework\n\nA Brython Framework for Web Apps development.\n\n![GitHub top language](https://img.shields.io/github/languages/top/un-gcpds/brython-radiant?)\n![PyPI - License](https://img.shields.io/pypi/l/radiant?)\n![PyPI](https://img.shields.io/pypi/v/radiant?)\n![PyPI - Status](https://img.shields.io/pypi/status/radiant?)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/radiant?)\n![GitHub last commit](https://img.shields.io/github/last-commit/un-gcpds/brython-radiant?)\n![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/UN-GCPDS/brython-radiant?)\n[![Documentation Status](https://readthedocs.org/projects/radiant/badge/?version=latest)](https://radiant-framework.readthedocs.io/en/latest/?badge=latest)\n\n\n\n## Overview\nRadiant Framework is a novel web framework designed to leverage the capabilities of [Brython](https://brython.info/), a browser-based Python implementation. This innovative approach allows developers to write web applications entirely in Python, bypassing the conventional requirements of HTML, CSS, or JavaScript for frontend development.\n\n## Key Features\n\n### Python-Centric Development\n- **Unified Language Usage**: Write your entire web application using Python, ensuring a consistent and streamlined coding experience.\n- **Brython Integration**: Utilizes Brython for executing Python code in the browser, enabling a seamless transition of server-side code to client-side execution.\n\n### Server and Browser Compatibility\n- **Dual Environment Execution**: Radiant enables the same application code to run both on the server and in the browser, maximizing code reusability and efficiency.\n- **Tornado Web Server**: On the server-side, Radiant harnesses the [Tornado](https://www.tornadoweb.org/) web server to deploy applications, known for its scalability and non-blocking network I/O capabilities.\n\n### Resource Management\n- **Static File Handling**: Simplifies the management of static files (images, stylesheets, etc.), by setting up a local path for their serving, facilitating their inclusion in the application.\n\n### Runtime Configuration\n- **Dynamic HTML Templates**: Radiant offers a custom HTML template system, configurable at runtime, to dynamically import server-side scripts into the browser environment.\n\n## Benefits\n- **Streamlined Development Process**: By unifying the development language and environment, Radiant significantly reduces the complexity and learning curve associated with traditional web development.\n- **Code Efficiency**: Eliminates the need for writing separate frontend and backend code, leading to more maintainable and concise codebases.\n- **Focus on Quality**: Developers can concentrate on crafting high-quality Python code, without the distractions of dealing with various web technologies.\n\n## Installation\n\nTo install Radiant, you can use `pip`, the Python package manager. Simply run the following command in your terminal:\n\n\n\n```python\npip install radiant-framework\n```\n\n## Bare minimum\n\nTo help you get started with Radiant, let's walk through a bare minimum example. This example will demonstrate how to create a simple web page that displays some text. We'll utilize the Radiant framework to craft the page and run it on a local server. This is an excellent way to familiarize yourself with how Radiant functions and to begin exploring its capabilities.\n\n### Prerequisites\nBefore proceeding, ensure that you have Radiant installed on your system. If you haven't installed Radiant yet, please refer to the [Installation](#installation) section for guidance.\n\n### Creating a Simple Web Page\n\nThe following script illustrates a basic application using Radiant. This script will set up a simple web page displaying a heading.\n\n\n```python\nfrom radiant.framework.server import RadiantAPI\nfrom browser import document, html\n\nclass BareMinimum(RadiantAPI):\n\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n document.select_one('body') <= html.H1('Radiant-Framework')\n\nif __name__ == '__main__':\n BareMinimum()\n```\n",
"bugtrack_url": null,
"license": "BSD-2-Clause",
"summary": "Radiant Framework",
"version": "0.1a26",
"project_urls": {
"Download": "https://github.com/dunderlab/python-radiant.framework"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0a10a7ad8802c83b3003e464719aeb0fc33ca93e7edf53219c9e4261d813f5db",
"md5": "3b817a6f40f543ff3a8d3e9066cde43f",
"sha256": "8ed9e8924ec85d3077c83cda4e1c178ef4299b155f8366469428f043085e89bd"
},
"downloads": -1,
"filename": "radiant_framework-0.1a26-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3b817a6f40f543ff3a8d3e9066cde43f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 39807536,
"upload_time": "2024-09-13T04:07:18",
"upload_time_iso_8601": "2024-09-13T04:07:18.841729Z",
"url": "https://files.pythonhosted.org/packages/0a/10/a7ad8802c83b3003e464719aeb0fc33ca93e7edf53219c9e4261d813f5db/radiant_framework-0.1a26-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d217d632027cb003fe2121eb1b7a8e03f784b520ce326c657f17693b189c54f4",
"md5": "5e4f88ed75918139c160f1ea3d03b1e4",
"sha256": "fd1db518a1f0fd11f143d0687d757f4a6f33f76e4d3f941a4e801874133cec66"
},
"downloads": -1,
"filename": "radiant_framework-0.1a26.tar.gz",
"has_sig": false,
"md5_digest": "5e4f88ed75918139c160f1ea3d03b1e4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 36996369,
"upload_time": "2024-09-13T04:07:24",
"upload_time_iso_8601": "2024-09-13T04:07:24.380163Z",
"url": "https://files.pythonhosted.org/packages/d2/17/d632027cb003fe2121eb1b7a8e03f784b520ce326c657f17693b189c54f4/radiant_framework-0.1a26.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-13 04:07:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dunderlab",
"github_project": "python-radiant.framework",
"github_not_found": true,
"lcname": "radiant-framework"
}