html5witch offers Pythonic HTML5 generation based on xmlwitch. BSD-licensed.
Usage
>>> import html5witch
>>> doc = html5witch.Builder()
>>> with doc.html:
... with doc.head:
... doc.title('Title')
... with doc.body:
... doc.p('Hello World')
... with doc.form(action="/", method="post"):
... doc.input(type="input", name="my_input_field")
...
>>> print(doc)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Title</title>
</head>
<body>
<p>Hello World</p>
<form action="/" method="post">
<input type="input" name="my_input_field">
</form>
</body>
</html>
Setup
$ pip install html5witch # or $ easy_install html5witch # or $ cd xmlwitch-0.2.1; python setup.py install $ cd html5witch-0.2.1; python setup.py install
Links
Metadata
Release files for html5witch 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| html5witch-0.2.1.tar.gz | 4.3 kB | Without provenance | Details for html5witch-0.2.1.tar.gz |
Release files / html5witch-0.2.1.tar.gz
| Download URL | html5witch-0.2.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f66b3fb13ef9050170769afd5c1a6b293b1ffe04f25c95caafef96f049c9c25e
|
|
BLAKE2b-256 checksum How to use checksums |
67c92101a42f5fe10231047a353a2346ada97f8aa5609889ec3cb91b45db71f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for html5witch 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.