skip to navigation
skip to content

pytagcloud 0.3.5

Create beautiful tag clouds as images or HTML

PyTagCloud let you create simple tag clouds inspired by

Currently, the following output formats have been written and are working:

  • PNG images
  • HTML/CSS code

If you have ideas for other formats please let us know.


You can install PyTagCloud either via the Python Package Index (PyPI) or from source.

To install using pip:

$ pip install -U pytagcloud

To install using easy_install:

$ easy_install -U pytagcloud

Downloading and installing from source

Download the latest version of PyTagCloud from

You can install it by doing the following,:

$ tar xfz pytagcloud-*.tar.gz
$ cd pytagcloud-*/
$ python build
# python install # as root


  1. Install pygame >= 1.9.1:

    $ apt-get install python-pygame
  2. Install simplejson:

    $ pip install simplejson

Quick start

You probably want to see some code by now, so here’s an example:

from pytagcloud import create_tag_image, make_tags
from pytagcloud.lang.counter import get_tag_counts

YOUR_TEXT = "A tag cloud is a visual representation for text data, typically\
used to depict keyword metadata on websites, or to visualize free form text."

tags = make_tags(get_tag_counts(YOUR_TEXT), maxsize=120)

create_tag_image(tags, 'cloud_large.png', size=(900, 600), fontname='Lobster')

More examples can be found in




Development of pytagcloud happens at Github:

You are highly encouraged to participate in the development of pytagcloud. If you don’t like Github (for some reason) you’re welcome to send regular patches.

File Type Py Version Uploaded on Size
pytagcloud-0.3.5.tar.gz (md5) Source 2012-02-14 736KB
  • Downloads (All Versions):
  • 29 downloads in the last day
  • 205 downloads in the last week
  • 792 downloads in the last month