Debian Codegraph @

pathspec/__init__.py

raw
1 """
2 The *pathspec* package provides pattern matching for file paths. So far this
3 only includes Git's *gitignore* patterns.
4
5 The following classes are imported and made available from the root of the
6 `pathspec` package:
7
8 - :class:`pathspec.gitignore.GitIgnoreSpec`
9
10 - :class:`pathspec.pathspec.PathSpec`
11
12 - :class:`pathspec.pattern.Pattern`
13
14 - :class:`pathspec.pattern.RegexPattern`
15
16 - :class:`pathspec.util.RecursionError`
17
18 The following functions are also imported:
19
20 - :func:`pathspec.util.lookup_pattern`
21
22 The following deprecated functions are also imported to maintain backward
23 compatibility:
24
25 - :func:`pathspec.util.iter_tree`
26
27 - :func:`pathspec.util.match_files`
28 """
29
30 from .gitignore import (
31 GitIgnoreSpec)
32 from .pathspec import (
33 PathSpec)
34 from .pattern import (
35 Pattern,
36 RegexPattern)
37 from .util import (
38 RecursionError,
39 iter_tree, # Deprecated since 0.10.0.
40 lookup_pattern,
41 match_files) # Deprecated since 0.10.0.
42
43 from ._meta import (
44 __author__,
45 __copyright__,
46 __credits__,
47 __license__)
48 from ._version import (
49 __version__)
50
51 # Load pattern implementations.
52 from . import patterns
53
54 # Declare private imports as part of the public interface. Deprecated imports
55 # are deliberately excluded.
56 __all__ = [
57 'GitIgnoreSpec',
58 'PathSpec',
59 'Pattern',
60 'RecursionError',
61 'RegexPattern',
62 '__author__',
63 '__copyright__',
64 '__credits__',
65 '__license__',
66 '__version__',
67 'lookup_pattern',
68 ]