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

The collection of mimetypes icons from the Tango Icon Library project, and a template tag to include them.


In your settings:


Then in your templates:

{% load mimetypes %}

<img src="{% icon "image/jpeg" %}">

<img src="{% icon "image/jpeg" "32x32" %}">

<img src="{% icon "image/jpeg" size %}">

<img src="{% icon mimetype %}">

<a style="background-image: url({% icon mimetype "16x16" %})">

<img src="{% icon mimetype size %}">

{% icon "application/pdf" as pdf_icon %}

{% icon "application/pdf" "48x48" as pdf_icon %}

{% icon "application/pdf" size as pdf_icon %}

{% icon mimetype as pdf_icon %}

{% icon mimetype "32x32" as pdf_icon %}

{% icon mimetype size as pdf_icon %}

Or obviously you can directly link to the files in the static directory, e.g. if you want to reference them in a static CSS.


A minimal Django project is shipped to run the test suite. Try make coverage (100% at the time of this writing).


The code is copyright Bors Ltd and published under the GNU General Public License version 3.

The icons are placed in the public domain, see Tango for details.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

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