Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Files modified by dlacher to support predicate logic (https://github.com/h2non/jsonpath-ng/pull/21):
- jsonpath_ng/ext/filter.py
- jsonpath_ng/ext/iterable.py
- jsonpath_ng/ext/parser.py
- tests/test_jsonpath_rw_ext.py

Files modified by elrandira to support commas for index accesses and steps in slices
(https://github.com/h2non/jsonpath-ng/pull/102):
- jsonpath_ng/jsonpath.py
- jsonpath_ng/parser.py
- tests/test_create.py
- tests/test_examples.py
- tests/test_jsonpath.py
- tests/test_parser.py
4 changes: 4 additions & 0 deletions jsonpath_ng/ext/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by dlacher to support predicate logic: https://github.com/h2non/jsonpath-ng/pull/21
#

import operator
import re
Expand Down
4 changes: 4 additions & 0 deletions jsonpath_ng/ext/iterable.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by dlacher to support predicate logic: https://github.com/h2non/jsonpath-ng/pull/21
#

import functools
from .. import This, DatumInContext, JSONPath
Expand Down
3 changes: 3 additions & 0 deletions jsonpath_ng/ext/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by dlacher to support predicate logic: https://github.com/h2non/jsonpath-ng/pull/21

from .. import lexer
from .. import parser
Expand Down
17 changes: 17 additions & 0 deletions jsonpath_ng/jsonpath.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by elrandira to support commas for index accesses and steps in slices
# https://github.com/h2non/jsonpath-ng/pull/102

from __future__ import unicode_literals, print_function, absolute_import, division, generators, nested_scopes
import logging
import six
Expand Down
17 changes: 17 additions & 0 deletions jsonpath_ng/parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by elrandira to support commas for index accesses and steps in slices
# https://github.com/h2non/jsonpath-ng/pull/102

from __future__ import (
print_function,
absolute_import,
Expand Down
17 changes: 17 additions & 0 deletions tests/test_create.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by elrandira to support commas for index accesses and steps in slices
# https://github.com/h2non/jsonpath-ng/pull/102

import doctest
from collections import namedtuple

Expand Down
17 changes: 17 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by elrandira to support commas for index accesses
# https://github.com/h2non/jsonpath-ng/pull/102

import pytest

from jsonpath_ng.ext.filter import Filter, Expression
Expand Down
17 changes: 17 additions & 0 deletions tests/test_jsonpath.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by elrandira to support commas for index accesses and steps in slices
# https://github.com/h2non/jsonpath-ng/pull/102

from __future__ import unicode_literals, print_function, absolute_import, division, generators, nested_scopes
import unittest

Expand Down
3 changes: 3 additions & 0 deletions tests/test_jsonpath_rw_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by dlacher to support predicate logic: https://github.com/h2non/jsonpath-ng/pull/21

"""
test_jsonpath_ng_ext
Expand Down
17 changes: 17 additions & 0 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# NOTICE:
# modified by elrandira to support commas for index accesses
# https://github.com/h2non/jsonpath-ng/pull/102

from __future__ import unicode_literals, print_function, absolute_import, division, generators, nested_scopes
import unittest

Expand Down