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!

The gentleman's CSS pre-processor, to convert correct English CSS to American English CSS (and the reverse).

Project Description

Why hello there, kind sir! If you are the sort of web developer who feels a need for tea and crumpets whilst discussing the weather, this will be right up your alley. is a Python port of Spiffing CSS (written by our friend @idiot), a CSS pre-processor for the gentlemanly web developer in all of us. has one job, and one job alone: correcting the spelling errors prevalent in the language, created by our chums over in the States.

As of version 1.1.0 (and onwards), you can convert CSS back and forth between American and Proper English at your whim. Isn’t it just lovely?


  • Python 2.7.3

That’s all!

To install:

Simply install the package, and use it directly in your applications to convert well written, classy CSS to CSS much more likely to be understood by our brethren in the States.

  • pip install spiffing
  • import spiffing
  • Convert your wonderfully written, grammatically correct files to CSS (to help our non-English speaking friends use it).
  • The class you’ll want to use is spiffing.Monocle.

A small example

import spiffing
spiffing_css = """body {
    background-colour: grey !please;
    font-weight: plump;
    text-transform: capitalise;
stateside = spiffing.Monocle(spiffing_css)
print stateside.american

And to spiff up your American English CSS:

import spiffing
butchered_css = """body {
    background-color: gray !important;
    font-weight: bold;
    text-transform: capitalize;
proper = spiffing.Monocle(butchered_css)
print proper.english

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.5 kB) Copy SHA256 Hash SHA256
Source None Apr 3, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate