a python module to create html pages with python code
Reason this release was yanked:
Error on Packing
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.1.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.2.1-py3-none-any.whl
(4.7 kB
view details)
File details
Details for the file pitsu-1.2.1.tar.gz.
File metadata
- Download URL: pitsu-1.2.1.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 |
c6ee6ff32b2ad2a45dd829c0bdee504c73e55004f0649c4afc4662b321d67d00
|
|
| MD5 |
d79c5f7362ef35cfdf99ea9512e5543f
|
|
| BLAKE2b-256 |
2e4ee0bbb9ca7ec28406b7a7f4b90ca0b60486773dfee23c43512e41cdfa2152
|
File details
Details for the file pitsu-1.2.1-py3-none-any.whl.
File metadata
- Download URL: pitsu-1.2.1-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 |
eb65ec7cc66ad47f273339d2b91366b6f93133a9b0e4107ba7f35d8813a07410
|
|
| MD5 |
fe54c815627d640bbf7d72a8842dd7d1
|
|
| BLAKE2b-256 |
d0194e4422b2238f943e325246d5e576bf77496974949b2a2826abdc9d7e2231
|