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!

brick is a pure python templating system.

Project Description
Brick [![Build Status](](

`brick` is a pure Python block-based templating system.


Let's see some example:

from brick import Block
from brick.tags import *

class LikeButton(Block):

def construct(self):
b = []

with Div(class_=['like-btn']).into(b):
b += A(href="#")("Like")

return b

like_button = LikeButton()

>> <div class="like-btn"><a href="#">Like</a></div>

`brick` is an official PyPi module, so you can use it simply with pip by doing:

pip install brick

###PyPI Page

`brick` is currently well tested on Python 2.5, 2.6 and 2.7.

###Run unit tests
If you have the `nose` Python unit tester library installed and want to run the unit test suite for this library, then simply run this command:


###Travis CI
You can track the project's CI status on Travis at : [!/garindra/brick](!/garindra/brick)

MIT 2.0

This library is heavily inspired by the public description of Quora's webnode2 found [here](

- Garindra Prahandono (
Release History

Release History

This version
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
brick-0.0.2.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Aug 6, 2012

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