Skip to main content


Project description

Fast lxml-based CSS stylesheet inliner.

Tested against Python 2.7, 3.2, 3.3, and 3.4.


This package is hosted on PyPI and can be installed using pip or easy_install:

pip install toronado


>>> import toronado
>>> document = """<html>
... <head>
...     <style type="text/css">
...         h1 { color: red; }
...     </style>
... </head>
... <body><h1>Hello, world.</h1></body>
... </html>"""
>>> print(toronado.from_string(document))
<html><head></head><body><h1 style="color: red">Hello, world.</h1></body></html>

Command Line Usage

To inline a file directly from the command line, you can use the following:

python -m toronado input.html

The inlined HTML will be printed to your shell’s stdout stream, and can also be redirected to a file:

python -m toronado input.html > output.html

Project details

Download files

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

Files for toronado, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size toronado-0.0.5.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page