Skip to main content

Tags - A HTML code generation toolkit

With tags you can generate HTML code by programming python. For every Tag type there is a corresponding class, for every tag an object. This way you can program HTML code by programmatically coding in python. The advantage of this style is that you can easily structure and reuse your HTML code, something that pure HTML is missing. For example, you can create a widget and use it at many different places, or create a template and plug some other html code in. Tags takes care of only creating valid html code.

Example Code:

from tags import *

head = Head().append(Title().append(Text(“Page Title”)))
body = Body().append(P().append(Text(“Page Content”)))
root = Doctype()
root = Doctype().append(Html().append(head).append(body))

This project is still in development. There is enough code to play around, but some tags are missing.

This version requires Python 2.

Metadata

Release files for tags 0.0.3

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

Source distribution (sdist)

Source distribution for tags 0.0.3
File Size Uploaded
tags-0.0.3.tar.gz 6.4 kB Details

Release files / tags-0.0.3.tar.gz

Download URL tags-0.0.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
52a1373beefd9c339d73e019bff095e7537e9d9d8981755f64d728a2e67e78de
BLAKE2b-256 checksum
How to use checksums
8cd33a1425dd9a01b7761e93fa988c5cd892ada11145daac967f3c354620c800
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

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