a python module to create html pages with python code
Reason this release was yanked:
Error on pack method
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"
)
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.2.0.tar.gz
(3.8 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.2.0-py3-none-any.whl
(4.7 kB
view details)
File details
Details for the file pitsu-1.2.0.tar.gz.
File metadata
- Download URL: pitsu-1.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89a9e3c69ed10ca0e550c13990599de9cc634c60e76884f9365bb1457c4c37e8
|
|
| MD5 |
9f18ef1f83e970277ed0e5cfad5ad605
|
|
| BLAKE2b-256 |
39f70b931e5aaf9267e0333832604fb1c6c1a6a8a57c3284434f5beeb0333abf
|
File details
Details for the file pitsu-1.2.0-py3-none-any.whl.
File metadata
- Download URL: pitsu-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.7 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 |
3177e1da9b45a33feebf4781af8bd5b9ae27d340501deaeecc23f1a93f81ee93
|
|
| MD5 |
046b02f273db65485787b8bb210c91a5
|
|
| BLAKE2b-256 |
804f0604a187229cf0483dc59d9f6f3da3e72b370c429bb60fe5dec73fe1f5dc
|