Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/cssselect/__init__.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2CSS Selectors based on XPath
3============================
5This module supports selecting XML/HTML elements based on CSS selectors.
6See the `CSSSelector` class for details.
9:copyright: (c) 2007-2012 Ian Bicking and contributors.
10See AUTHORS for more details.
11:license: BSD, see LICENSE for more details.
13"""
15from cssselect.parser import (
16 FunctionalPseudoElement,
17 Selector,
18 SelectorError,
19 SelectorSyntaxError,
20 parse,
21)
22from cssselect.xpath import ExpressionError, GenericTranslator, HTMLTranslator
24__all__ = (
25 "ExpressionError",
26 "FunctionalPseudoElement",
27 "GenericTranslator",
28 "HTMLTranslator",
29 "Selector",
30 "SelectorError",
31 "SelectorSyntaxError",
32 "parse",
33)
35VERSION = "1.3.0"
36__version__ = VERSION