Skip to main content

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"
)

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


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.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pitsu-1.2.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pitsu-1.2.3.tar.gz.

File metadata

  • Download URL: pitsu-1.2.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

Hashes for pitsu-1.2.3.tar.gz
Algorithm Hash digest
SHA256 65eca0cb57065c5c94ee5ff941f855f760d0908577f107a35acc3145e3283079
MD5 1cc00a46d855cb47630dbc866d3ec318
BLAKE2b-256 c6001cd6079a5ac219defc5ba311abafa1422abe6d5a4aee92b9f35a5e25c0a3

See more details on using hashes here.

File details

Details for the file pitsu-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: pitsu-1.2.3-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

Hashes for pitsu-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59e744c4714810a9a46d5a8f9afd5ad04f7a222175e98b03518da5bd3695a569
MD5 3d8ed2b31aad7ba6e69d7e786d01f647
BLAKE2b-256 20e1521ff79bad1fee85efe6f9b5f24e8d78f7f31a312e14cf4395f0538ca6d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page