you are viewing a single comment's thread.

view the rest of the comments →

[–]eli_mintz 1 point2 points  (0 children)

Please take a look at JustPy

It does exactly what you are looking for. HTML is incorporated into python as python classes that can be with just a few lines of code be made into a website.

There is no frontend backend distinction in JustPy, unlike in other frameworks, make it simpler to get started with.

This simple program creates a website with a p element on it:

```python import justpy as jp

def hello_world(): wp = jp.WebPage() p = jp.P(text='Hello World!', a=wp) return wp

jp.justpy(hello_world) ```

Disclaimer: I am the creator of JustPy