I need help for creating a Python framework

Hello guys 

Repository link:  Py.Html Project

I’m developing a python framework where the idea of ​​it is to create the automatic html for usaurio and not only that, the part of CSS and Js too, wanted to know if this is interesting in a few codes to create such a solution, sehue attached an example of how to create the python code and generate the following HTML:

Code to create Html + elements  (Python code)

from Framework import PyHtml
from Framework import CssTool

#Template for testes
#It’s system work unique function with python tecnology
#Create HTML and CSS files with less lines in your Body.
#You no need create your web Project with hard dificult.
#Uses .CreateNewHtml() <–Where create one new HTML code.
#Its very easy and cool.
#Powered by Felipe Katao Tecnology.

#code exemple:

#Class for create
html= PyHtml.HtmlPy()
css= PyHtml.CssPy()
resp=CssTool.Responsive()
#start code

html.CreateNewHtml(“index2.html”,“index2.html”,1)

html.CreateMenuHtml(“index2.html”,"#menu",8)

resp.importCssResponsive(“index2.html”,3)
resp.CardBootstrap(“index2.html”,50,“Hello”,“World friend”,“Loren inspum loren”,html.toNextLine(1,10))


Result in html code:
<!DOCTYPE html>
<html>
<head> <title>index2.html</title>

<link rel=‘stylesheet’ href=‘https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css’ integrity=‘sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T’ crossorigin=‘anonymous’>
<meta charset=‘UTF-8’>
<meta name=‘viewport’content=‘width=device-width, initial-scale=1.0’>
<link>
</head>
<body>
<nav id=’#menu’>
<ul>
<li>Item</li>

<div class=‘card’ style=‘width: 10rem;’>
<div class=‘card-body’>
<h5 class=‘card-title’>Hello</h5>
<h6 class=‘card-subtitle mb-2 text-muted’>World friend</h6>
<p class=‘card-text’>Loren inspum loren</p>
<a href=’#’ class=‘card-link’>link</a>
</div>
<div> <li>Item</li>
</ul>
</nav>
<nav id=’#menu2’>
<ul>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>
</nav>
<div id=’#hello’>Hello world</div>

<form action=’#ok’>
<label>Label</label>
<input id=‘Input0’ type=‘text’ name=‘name’>
<input type=‘submit’ value=‘save’>
</form>
</body>
</html>





Anyone who can help me or just take a look at the repository and leave a star there will be very happy, but whoever can really help me in this non-profit project would be much happier

Great friends!

Felipe Katão 

Visit my github and folow me!  Github Felipe Katao

Hi @felipekatao , 

This is a great question, that’s actually already been answered in another post! I recommend you check that post out here.

Cheers!

1 Like