Skip to main content

webthon

Discord server invite PyPI version info

This is simple html generator for flask or django

Installing

Python 3.8 or higher is required

# Linux/macOS
pip3 install -U webthon

# Windows
pip install -U webthon

Flask Code Example

from flask import Flask
import index
app = Flask(__name__)

@app.route("/")
def home():
    return index.create()


if __name__ == "__main__":
    app.run(debug=True)

index.py Example

from webthon import website

index = website()

index.set_title("webthon example")
index.set_description("webthon site example")
index.set_keywords(["webthon","web"])
index.set_author("mario1842")


index.heading("Welcome!",1,"id","welcome")
index.paragraph("This is simple example","class","example")

def create():
    return index.generate()

Generated Site

Created site from example code.

Metadata

Release files for webthon 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for webthon 0.0.2
File Size Uploaded Provenance Actions
webthon-0.0.2.tar.gz 3.2 kB Without provenance Details for webthon-0.0.2.tar.gz

Release files / webthon-0.0.2.tar.gz

Download URL webthon-0.0.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7a602824ca89ac4fbfed9ecfc97319b7c43b91b79073ba18cc971666a1a6987a
BLAKE2b-256 checksum
How to use checksums
7067ccd1adbe6309df183b50010e2f101dc92d00b934b1aff5ae42cd6ab3d190
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Security for webthon 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page