Skip to main content

HtmlCssInclude convert css to inline style for mobile

Project description

.. -*- restructuredtext -*-

HtmlCssInclude converts css into inline style html for mobile.
font size is changed by mobile carrier (docomo, au, softbank).
when mobile is VGA, image size is changed.

Requirements
------------
* Python 2.5 or later (not support 3.x)
* lxml

Setup
-----
::

$ easy_install HtmlCssInclude


How to Use
--------
::

>>> from HtmlCssInclude import CssInclude

initialize with mobile carrier::

>>> css_include = CssInclude(agent='docomo', is_vga=True)

convert css into inline style html::

>>> converted_html = css_include.apply(input_html)

History
-------
0.1.2 (2011-03-30)
~~~~~~~~~~~~~~~~~~
* ezweb bug fix

0.1.1 (2010-11-22)
~~~~~~~~~~~~~~~~~~
* add test data

0.1 (2010-11-20)
~~~~~~~~~~~~~~~~~~
* first release

Project details


Download files

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

Source Distribution

HtmlCssInclude-0.1.2.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file HtmlCssInclude-0.1.2.tar.gz.

File metadata

File hashes

Hashes for HtmlCssInclude-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8348d70788f6ec6c9bc222b42a54b3c809aa3d8b44a1dab5ca334af4688de3c9
MD5 0b4438bf62ae66842a514dcff67c0cd7
BLAKE2b-256 2c71cdcb5da5a0d01aabfff5d633f54aef910da1880363b0f65addf340b4f10a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page