This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

pygmy is a little app that colorizes source codez in your Python templates. Supported template engines: Django and Jinja2.

Requirements

  • Python 2.6+ (or Python 3.2+)
  • pygments 1.6+

Requirements for Django

  • Django 1.3+

Requirements for Jinja2

  • Jinja2 2.4+

Installation

Install using pip:

pip install pygmy

Installation for Django

Add pygmy to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...,
    'pygmy',
)

Usage for Django

Render the awesomeness in your template:

{% load pygmy %}

{% pygmy object.code %}

It also takes the same options as HtmlFormatter class:

{% pygmy object.code nowrap='True' linenos='table' %}

Lexers

By default pygmy tries to guess which lexer to use based on the provided code.

If you wish you can define any lexer of Pygments lexers like so:

{% pygmy object.code lexer='python' %}
Release History

Release History

0.2.0

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

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pygmy-0.2.0.tar.gz (3.6 kB) Copy SHA256 Checksum SHA256 Source Jun 22, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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