<commit_before>cssselect2: CSS selectors for Python ElementTree
================================================

cssselect2 is a straightforward implementation of `CSS3 Selectors`_ for
`ElementTree`_-compatible documents (including cElementTree, lxml_, etc.)
Unlike cssselect_, it does not translate selectors to XPath_.
It is currently slower but more correct than 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/
.. _cssselect: http://packages.python.org/cssselect/
.. _XPath: http://www.w3.org/TR/xpath/


Quick facts:

* Free software: BSD licensed
* Compatible with Python 2.6+ and 3.2+
* Latest documentation `on python.org <http://pythonhosted.org/cssselect2/>`_
* Source, issues and pull requests `on Github
  <https://github.com/SimonSapin/cssselect2/>`_
* Releases `on PyPI <http://pypi.python.org/pypi/cssselect2>`_
* Install with ``pip install cssselect2``<commit_msg>We are not slower than cssselect anymore!<commit_after>cssselect2: CSS selectors for Python ElementTree
================================================

cssselect2 is a straightforward implementation of `CSS3 Selectors`_ for
`ElementTree`_-compatible documents (including cElementTree, lxml_, 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/
.. _cssselect: http://packages.python.org/cssselect/
.. _XPath: http://www.w3.org/TR/xpath/


Quick facts:

* Free software: BSD licensed
* Compatible with Python 2.6+ and 3.2+
* Latest documentation `on python.org <http://pythonhosted.org/cssselect2/>`_
* Source, issues and pull requests `on Github
  <https://github.com/SimonSapin/cssselect2/>`_
* Releases `on PyPI <http://pypi.python.org/pypi/cssselect2>`_
* Install with ``pip install cssselect2``
{'fraction_non_alphanumeric': 0.1627469426152399, 'fraction_numerical': 0.02634054562558796, 'mean_word_length': 4.8273972602739725, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1936287', 'n_tokens_mistral': 700, 'n_tokens_neox': 655, 'n_words': 183}