Skip to content
tinycss is a complete yet simple CSS parser for Python.
Python
Find file
Latest commit ac526fe Nov 25, 2015 @SimonSapin Merge pull request #10 from alexef/master
Replace utf8 with utf-8 for gettext compatibility
Failed to load latest commit information.
docs Add an example for extending the parser. Apr 30, 2012
tinycss
.coveragerc Shave some API yaks. Apr 5, 2012
.gitignore Moar docs Mar 28, 2012
.travis.yml Stop testing on Python 3.1, start on 3.3 Jun 18, 2014
CHANGES Fix tokenizing \5c Aug 21, 2012
LICENSE Copy/pasting old boilerplate is bad. (Hello 2012!) Mar 21, 2012
MANIFEST.in
README.rst Simplify make_parser() Apr 25, 2012
setup.cfg Start the documentation Mar 27, 2012
setup.py Fix install on ASCII locales. Apr 6, 2012
tox.ini Stop testing on Python 3.1, start on 3.3 Jun 18, 2014

README.rst

tinycss: CSS parser for Python

tinycss is a complete yet simple CSS parser for Python. It supports the full syntax and error handling for CSS 2.1 as well as some CSS 3 modules:

  • CSS Color 3
  • CSS Paged Media 3

It is designed to be easy to extend for new CSS modules and syntax, and integrates well with cssselect for Selectors 3 support.

Quick facts:

  • Free software: BSD licensed
  • Compatible with Python 2.6+ and 3.x
  • Latest documentation on python.org
  • Source, issues and pull requests on Github
  • Releases on PyPI
  • Install with pip install tinycss
Something went wrong with that request. Please try again.