-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path__init__.py
More file actions
83 lines (79 loc) · 2.28 KB
/
__init__.py
File metadata and controls
83 lines (79 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# SPDX-FileCopyrightText: 2023-present James Prior <jamesgr.prior@gmail.com>
#
# SPDX-License-Identifier: MIT
from .env import JSONPathEnvironment
from .exceptions import JSONPatchError
from .exceptions import JSONPatchTestFailure
from .exceptions import JSONPathError
from .exceptions import JSONPathIndexError
from .exceptions import JSONPathNameError
from .exceptions import JSONPathSyntaxError
from .exceptions import JSONPathTypeError
from .exceptions import JSONPointerError
from .exceptions import JSONPointerIndexError
from .exceptions import JSONPointerKeyError
from .exceptions import JSONPointerResolutionError
from .exceptions import JSONPointerTypeError
from .exceptions import RelativeJSONPointerError
from .exceptions import RelativeJSONPointerIndexError
from .exceptions import RelativeJSONPointerSyntaxError
from .filter import UNDEFINED
from .fluent_api import Projection
from .fluent_api import Query
from .lex import Lexer
from .match import JSONPathMatch
from .match import NodeList
from .parse import Parser
from .patch import JSONPatch
from .path import CompoundJSONPath
from .path import JSONPath
from .pointer import JSONPointer
from .pointer import RelativeJSONPointer
from .pointer import resolve
__all__ = (
"compile",
"CompoundJSONPath",
"findall_async",
"findall",
"finditer_async",
"finditer",
"JSONPatch",
"JSONPatchError",
"JSONPatchTestFailure",
"JSONPath",
"JSONPathEnvironment",
"JSONPathError",
"JSONPathIndexError",
"JSONPathMatch",
"JSONPathNameError",
"JSONPathSyntaxError",
"JSONPathTypeError",
"JSONPointer",
"JSONPointerError",
"JSONPointerIndexError",
"JSONPointerKeyError",
"JSONPointerResolutionError",
"JSONPointerTypeError",
"Lexer",
"NodeList",
"match",
"Parser",
"Projection",
"query",
"Query",
"RelativeJSONPointer",
"RelativeJSONPointerError",
"RelativeJSONPointerIndexError",
"RelativeJSONPointerSyntaxError",
"resolve",
"UNDEFINED",
)
# For convenience
DEFAULT_ENV = JSONPathEnvironment()
compile = DEFAULT_ENV.compile # noqa: A001
findall = DEFAULT_ENV.findall
findall_async = DEFAULT_ENV.findall_async
finditer = DEFAULT_ENV.finditer
finditer_async = DEFAULT_ENV.finditer_async
match = DEFAULT_ENV.match
query = DEFAULT_ENV.query