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!

HTML Templating DSL for Python

Project Description
HTML Templating DSL for Python.

A simple HTML templating library that uses a DSL
mini-language. I tried to design it to be similar in feel
to Teacup/CoffeeKup ( I
also took inspiration from jamescasbon's script

Also includes the md() function for embedding markdown, and an option
for outputting prettified HTML.

Example usage::

from teacup import *

with html:
with head:
with body:
with p:
md("This is a **test!**")
with p({"class":"test"}, id="testme"):
text("Another test")
a("Click here", href="")


The python "with" keyword is used to nest HTML tags.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


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
teacup-0.9.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source Jan 2, 2015

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