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.2.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.2-py3-none-any.whl
(4.6 kB
view details)
File details
Details for the file pitsu-1.1.2.tar.gz.
File metadata
- Download URL: pitsu-1.1.2.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 |
710ba530b1981aa125ea628269951471729cf0f94a06521a1ff3ccaf06f7bcec
|
|
| MD5 |
a4cff8cbc7986dcd4f8e960306f7c266
|
|
| BLAKE2b-256 |
973cb56cef5142fcb24b84b1815d75a5f404245616624484ee65fc70de0dcdc5
|
File details
Details for the file pitsu-1.1.2-py3-none-any.whl.
File metadata
- Download URL: pitsu-1.1.2-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 |
2fe5b4f2d1565982dde1c46e61a584d41687f99c67cef7dad8e920877daa8992
|
|
| MD5 |
929da495900a1d6205bd7d2cf60dda47
|
|
| BLAKE2b-256 |
79e1043beb0a10fdfe2d157c1a36a3e4a46bc763459616641aa0f4c8877dfdd8
|