Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 757 Bytes

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:

  • Selectors 3 (can also find matching elements in a lxml document)
  • CSS Color 3
  • CSS Paged Media 3

It is designed to be easy to extend for new CSS modules and syntax.

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
Jump to Line
Something went wrong with that request. Please try again.