toronado 0.0.5
pip install toronado==0.0.5
Newer version available (0.1.0)
Released:
UNKNOWN
Navigation
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIMeta
- License: Apache License 2.0
- Author: ted kaemming, disqus
Classifiers
- Programming Language
Project description
Fast lxml-based CSS stylesheet inliner.
Tested against Python 2.7, 3.2, 3.3, and 3.4.
Installation
This package is hosted on PyPI and can be installed using pip or easy_install:
pip install toronado
Usage
>>> 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
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIMeta
- License: Apache License 2.0
- Author: ted kaemming, disqus
Classifiers
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file toronado-0.0.5.tar.gz
.
File metadata
- Download URL: toronado-0.0.5.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 240f917d621ccd91b2264d6b8de97643d4f2653695f0fd121fc84802c8cff206 |
|
MD5 | 5fbe26c34edb372b08d112027d2d24a4 |
|
BLAKE2b-256 | fc33bb9ad7035fedda724843068903e014373249a257b3366067757815e5b68b |