Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/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# -*- coding: utf-8 -*-
2"""
3 CSS Selectors based on XPath
4 ============================
6 This module supports selecting XML/HTML elements based on CSS selectors.
7 See the `CSSSelector` class for details.
10 :copyright: (c) 2007-2012 Ian Bicking and contributors.
11 See AUTHORS for more details.
12 :license: BSD, see LICENSE for more details.
14"""
16from cssselect.parser import (
17 FunctionalPseudoElement,
18 Selector,
19 SelectorError,
20 SelectorSyntaxError,
21 parse,
22)
23from cssselect.xpath import ExpressionError, GenericTranslator, HTMLTranslator
25__all__ = (
26 "ExpressionError",
27 "FunctionalPseudoElement",
28 "GenericTranslator",
29 "HTMLTranslator",
30 "parse",
31 "Selector",
32 "SelectorError",
33 "SelectorSyntaxError",
34)
36VERSION = "1.2.0"
37__version__ = VERSION