Metadata-Version: 2.1
Name: radiant
Version: 3.0b1
Summary: Brython Framework
Home-page: UNKNOWN
Author: Yeison Cardona
Author-email: yencardonaal@unal.edu.co
Maintainer: Yeison Cardona
Maintainer-email: yencardonaal@unal.edu.co
License: BSD-2-Clause
Download-URL: https://github.com/UN-GCPDS/brython-radiant
Description: # Radiant
        
        A Brython Framework for Web Apps development.
        
        ![GitHub top language](https://img.shields.io/github/languages/top/un-gcpds/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/radiant?)
        ![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/UN-GCPDS/radiant?)
        [![Documentation Status](https://readthedocs.org/projects/radiant/badge/?version=latest)](https://radiant-framework.readthedocs.io/en/latest/?badge=latest)
        
        Radiant is a [Brython](https://brython.info/) framework for the quick development of web apps from pure Python syntax which means that there is no need to care about (if you don't want) HTML, CSS, or Javascript.  It's based on [Tornado](https://www.tornadoweb.org/) servers and includes support to [Websockets](notebooks/10-advance_usage.html#WebSockets), [Python Scripts](notebooks/10-advance_usage.html#Python-scripting) and [MDC](notebooks/99-mdc.html).
        
        ## Instalation
        
        
        ```python
        pip install radiant
        ```
        
        ## Usage
        
        
        ```python
        # Brython modules
        from browser import document, html
        
        # Radiant modules
        from radiant.server import RadiantAPI, RadiantServer
        
        # Main class inheriting RadiantAPI
        class BareMinimum(RadiantAPI):
        
            # Constructor 
            def __init__(self, *args, **kwargs):
                super().__init__(*args, **kwargs)
            
                #-----------------------------------------------------------
                # Brython code (finally)
                document.select_one('body') <= html.H1('Hello World')
                #
                # ...all your brython code
                #-----------------------------------------------------------
        
        # Execute server
        if __name__ == '__main__':
            RadiantServer('BareMinimum')
        ```
        
        ## How to works
        
        This is basically a set of scripts that allows the same file run from _Python_ and _Brython_, when is running under _Python_ a [Tornado](https://www.tornadoweb.org/) server is created and configure the local path for serving static files, a custom HTML template is configured in runtime to import the same script, this time under _Brython_, is very simple.
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Classifier: Topic :: Software Development :: Embedded Systems
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Requires-Python: >=3.8
Description-Content-Type: text/markdown
