GeezerVison is showing github.com — adding authors and other info · FOSSAware/deepdiff@72e8994
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: AUTHORS.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,3 +35,4 @@ Authors in order of the contributions: | 35 | 35 | - Florian Klien [flowolf](https://github.com/flowolf) for adding math_epsilon | 36 | 36 | - Tim Klein [timjklein36](https://github.com/timjklein36) for retaining the order of multiple dictionary items added via Delta. | 37 | 37 | - Wilhelm Schürmann[wbsch](https://github.com/wbsch) for fixing the typo with yml files. | | 38 | +- [lyz-code](https://github.com/lyz-code) for adding support for regular expressions. |
Collapse file Copy file name to clipboardExpand all lines: CHANGELOG.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | # DeepDiff Change log | 2 | 2 |
| | 3 | +- v5-2-4: add support for regular expressions | 3 | 4 | - v5-2-3: Retaining the order of multiple dictionary items added via Delta. Fixed the typo with yml files in deep cli. Fixing Grep RecursionError where using non UTF-8 character. Allowing kwargs to be passed to to_json method. | 4 | 5 | - v5-2-2: Fixed Delta serialization when None type is present. | 5 | 6 | - v5-2-0: Removed Murmur3 as the preferred hashing method. Using SHA256 by default now. Added commandline for deepdiff. Added group_by. Added math_epsilon. Improved ignoring of NoneType. | |
Collapse file Copy file name to clipboardExpand all lines: LICENSE +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | The MIT License (MIT) | 2 | 2 |
| 3 | | -Copyright (c) 2014 - 2020 Sep Dehpour (Seperman) and contributors | | 3 | +Copyright (c) 2014 - 2021 Sep Dehpour (Seperman) and contributors | 4 | 4 | www.zepworks.com | 5 | 5 |
| 6 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy | |
Collapse file Copy file name to clipboardExpand all lines: README.md +12Lines changed: 12 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,6 +20,18 @@ Tested on Python 3.6+ and PyPy3. | 20 | 20 |
| 21 | 21 | - [Documentation](https://zepworks.com/deepdiff/5.2.3/) | 22 | 22 |
| | 23 | +## What is new? | | 24 | + | | 25 | +Deepdiff 5.2.4 comes with regular expressions in the DeepSearch and grep modules: | | 26 | + | | 27 | +```python | | 28 | +>>> from deepdiff import grep | | 29 | +>>> from pprint import pprint | | 30 | +>>> obj = ["something here", {"long": "somewhere", "someone": 2, 0: 0, "somewhere": "around"}] | | 31 | +>>> ds = obj | grep("some.*", use_regexp=True) | | 32 | +{ 'matched_paths': ["root[1]['someone']", "root[1]['somewhere']"], | | 33 | + 'matched_values': ['root[0]', "root[1]['long']"]} | | 34 | +``` | 23 | 35 |
| 24 | 36 | ## Installation | 25 | 37 |
| |
Collapse file Copy file name to clipboardExpand all lines: docs/authors.rst +3Lines changed: 3 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,6 +42,8 @@ Thanks to the following people for their contributions: | 42 | 42 | - Florian Klien `flowolf`_ for adding math_epsilon | 43 | 43 | - Tim Klein `timjklein36`_ for retaining the order of multiple dictionary items added via Delta | 44 | 44 | - Wilhelm Schürmann `wbsch`_ for fixing the typo with yml files. | | 45 | +- `lyz_code`_ for adding support for regular expressions. | | 46 | + | 45 | 47 |
| 46 | 48 | .. _Sep Dehpour (Seperman): http://www.zepworks.com | 47 | 49 | .. _Victor Hahn Castell: http://hahncastell.de | @@ -74,6 +76,7 @@ Thanks to the following people for their contributions: | 74 | 76 | .. _flowolf: https://github.com/flowolf | 75 | 77 | .. _timjklein36: https://github.com/timjklein36 | 76 | 78 | .. _wbsch: https://github.com/wbsch | | 79 | +.. _lyz_code: https://github.com/lyz-code | 77 | 80 |
| 78 | 81 |
| 79 | 82 | Back to :doc:`/index` |
Collapse file Copy file name to clipboardExpand all lines: docs/changelog.rst +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,6 +5,7 @@ Changelog | 5 | 5 |
| 6 | 6 | DeepDiff Changelog | 7 | 7 |
| | 8 | +- v5-2-4: add support for regular expressions | 8 | 9 | - v5-2-3: Retaining the order of multiple dictionary items added via Delta. Fixed the typo with yml files in deep cli. Fixing Grep RecursionError where using non UTF-8 character. Allowing kwargs to be passed to to_json method. | 9 | 10 | - v5-2-2: Fixed Delta serialization when None type is present. | 10 | 11 | - v5-2-0: Removed Murmur3 as the preferred hashing method. Using SHA256 by default now. Added commandline for deepdiff. Added group_by. Added math_epsilon. Improved ignoring of NoneType. | |
Collapse file Copy file name to clipboardExpand all lines: docs/search_doc.rst +6Lines changed: 6 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,3 +22,9 @@ Search in nested data for string | 22 | 22 | { 'matched_paths': {"root[1]['somewhere']": 'around'}, | 23 | 23 | 'matched_values': { 'root[0]': 'something somewhere', | 24 | 24 | "root[1]['long']": 'somewhere'}} | | 25 | + | | 26 | +You can also use regular expressions | | 27 | + >>> obj = ["something here", {"long": "somewhere", "someone": 2, 0: 0, "somewhere": "around"}] | | 28 | + >>> ds = obj | grep("some.*", use_regexp=True) | | 29 | + { 'matched_paths': ["root[1]['someone']", "root[1]['somewhere']"], | | 30 | + 'matched_values': ['root[0]', "root[1]['long']"]} |
|