Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/cssselect/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-12-09 06:19 +0000

1# -*- coding: utf-8 -*- 

2""" 

3 CSS Selectors based on XPath 

4 ============================ 

5 

6 This module supports selecting XML/HTML elements based on CSS selectors. 

7 See the `CSSSelector` class for details. 

8 

9 

10 :copyright: (c) 2007-2012 Ian Bicking and contributors. 

11 See AUTHORS for more details. 

12 :license: BSD, see LICENSE for more details. 

13 

14""" 

15 

16from cssselect.parser import ( 

17 parse, 

18 Selector, 

19 FunctionalPseudoElement, 

20 SelectorError, 

21 SelectorSyntaxError, 

22) 

23from cssselect.xpath import GenericTranslator, HTMLTranslator, ExpressionError 

24 

25__all__ = ( 

26 "ExpressionError", 

27 "FunctionalPseudoElement", 

28 "GenericTranslator", 

29 "HTMLTranslator", 

30 "parse", 

31 "Selector", 

32 "SelectorError", 

33 "SelectorSyntaxError", 

34) 

35 

36VERSION = "1.2.0" 

37__version__ = VERSION