Skip to main content

Brython Framework

Project description

Radiant

Brython framework

GitHub top language PyPI - License PyPI PyPI - Status PyPI - Python Version GitHub last commit CodeFactor Grade Documentation Status

Instalation

pip install radiant

Usage

# Brython modules
from browser import document, html

# Radiant modules
from radiant 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')

# Execute server
if __name__ == '__main__':
    RadiantServer('BareMinimum')

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

radiant-3.0a1.tar.gz (5.2 MB view hashes)

Uploaded Source

Built Distribution

radiant-3.0a1-py3-none-any.whl (5.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page