a python module to create html pages with python code
Project description
pitsu
a python module to create html pages with python code
how to use
- instal pitsu:
pip3 install pitsu
or
pip install pitsu
simple example:
from pitsu import *
html(
head(
meta(charset='UTF-8'),
title('Example Login')
),
body(
form(
inp( # inp = input element
type='text',
name='user',
id='user',
required=True
),
br(),
inp(
type='password',
name='pass',
id='pass',
required=True
),
br(),
inp(
type='submit',
value='Submit'
),
action='/',
method='get'
)
),
lang='en'
).pack()
output:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
Example Login
</title>
</head>
<body>
<form action="/" method="get">
<input type="text" name="user" id="user" required>
<br>
<input type="password" name="pass" id="pass" required>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
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
pitsu-1.1.3.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pitsu-1.1.3-py3-none-any.whl
(4.6 kB
view details)
File details
Details for the file pitsu-1.1.3.tar.gz.
File metadata
- Download URL: pitsu-1.1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffb6d3867732645dbab89174d9812b08139fa77ae29d1c874f8d1f51b83c4220
|
|
| MD5 |
512b483d378207266111baba41f402c2
|
|
| BLAKE2b-256 |
4f81c43234b96200a032931fda680823a1abc53968f55cd4b63c80d610acb211
|
File details
Details for the file pitsu-1.1.3-py3-none-any.whl.
File metadata
- Download URL: pitsu-1.1.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ee9e6912c585d8280c3ccfd020f56bd669dfa5ec4f7ade49a286ea2889ef096
|
|
| MD5 |
c6d00a029c303a78b212a09c191791e7
|
|
| BLAKE2b-256 |
65529f150843448093df28760f5a25dd8a9ce70cee928cc99f8bb11e60cbdfc9
|