Go to file
Frederic Peters a80d9dc11e debian: don't ship unnecessary README 2019-02-17 09:21:21 +01:00
cssselect2 Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
cssselect2.egg-info Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
debian debian: don't ship unnecessary README 2019-02-17 09:21:21 +01:00
docs Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
.coveragerc Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
.gitignore Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
.travis.yml Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
CHANGES Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
LICENSE Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
MANIFEST.in Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
PKG-INFO Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
README.rst Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
example.py Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00
setup.cfg misc: disable pytest plugins 2019-02-16 23:57:04 +01:00
setup.py Import python-cssselect2_0.2.1.orig.tar.gz 2018-11-13 19:13:59 +01:00

README.rst

cssselect2: CSS selectors for Python ElementTree
################################################

cssselect2 is a straightforward implementation of `CSS3 Selectors`_ for markup
documents (HTML, XML, etc.) that can be read by `ElementTree`_-like parsers
(including cElementTree, lxml_, html5lib_, etc.)

Unlike cssselect_, it does not translate selectors to XPath_ and therefore does
not have all the correctness corner cases that are hard or impossible to fix in
cssselect.

.. _ElementTree: http://docs.python.org/3/library/xml.etree.elementtree.html
.. _CSS3 Selectors: http://www.w3.org/TR/2011/REC-css3-selectors-20110929/
.. _lxml: http://lxml.de/
.. _html5lib: https://github.com/html5lib/html5lib-python
.. _cssselect: http://packages.python.org/cssselect/
.. _XPath: http://www.w3.org/TR/xpath/


Quick facts:

* Free software: BSD licensed
* Compatible with Python 2.7+ and 3.3+
* Latest documentation: http://cssselect2.readthedocs.io/
* Source, issues and pull requests `on Github
  <https://github.com/Kozea/cssselect2/>`_
* Releases `on PyPI <http://pypi.python.org/pypi/cssselect2>`_
* Install with ``pip install cssselect2``