Skip to main content

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


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)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

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

Hashes for pitsu-1.2.0.tar.gz
Algorithm Hash digest
SHA256 89a9e3c69ed10ca0e550c13990599de9cc634c60e76884f9365bb1457c4c37e8
MD5 9f18ef1f83e970277ed0e5cfad5ad605
BLAKE2b-256 39f70b931e5aaf9267e0333832604fb1c6c1a6a8a57c3284434f5beeb0333abf

See more details on using hashes here.

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

Hashes for pitsu-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3177e1da9b45a33feebf4781af8bd5b9ae27d340501deaeecc23f1a93f81ee93
MD5 046b02f273db65485787b8bb210c91a5
BLAKE2b-256 804f0604a187229cf0483dc59d9f6f3da3e72b370c429bb60fe5dec73fe1f5dc

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