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()
#start code



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

Result in html code:
<!DOCTYPE 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’>
<nav id=’#menu’>

<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> <li>Item</li>
<nav id=’#menu2’>
<div id=’#hello’>Hello world</div>

<form action=’#ok’>
<input id=‘Input0’ type=‘text’ name=‘name’>
<input type=‘submit’ value=‘save’>

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.


1 Like