I’ve been working on PyFrontKit, a Python DSL that builds web views as executable Python code instead of text-based templates.
Instead of writing HTML with placeholders, you write Python that constructs the view structure and styles. The output can be exported as HTML/CSS files or used directly in memory as a backend template.
Example use case: - backend-generated views - dynamic layouts and styles - reusable Python-based templates without string rendering
Repo: https://github.com/Edybrown/Pyfrontkit You can install it via pip:
pip install pyfrontkit
I’m mainly interested in feedback on the idea and whether this approach feels useful or unnecessary.