Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A toolkit to create HTML code with python

Project Description

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.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tags-0.0.3.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source Nov 3, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting