Brython Framework
Project description
Radiant
Brython framework
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')
Project details
Release history Release notifications | RSS feed
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)