tinycss is a complete yet simple CSS parser for Python.
Python
Permalink
Failed to load latest commit information.
docs
tinycss
.coveragerc Shave some API yaks. Apr 5, 2012
.gitignore
.travis.yml Try to fix tests on Travis, and update setup.py Sep 14, 2016
CHANGES Update CHANGES Sep 23, 2016
LICENSE Copy/pasting old boilerplate is bad. (Hello 2012!) Mar 21, 2012
MANIFEST.in Include the docs in the tarballs. Jun 13, 2012
README.rst Update docs Sep 23, 2016
setup.cfg Fix tests with isort on Python 2 Sep 14, 2016
setup.py Set Read the Docs as homepage Sep 23, 2016

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 Fonts 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.7 and 3.x
  • Latest documentation on python.org
  • Source, issues and pull requests on Github
  • Releases on PyPI
  • Install with pip install tinycss