-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wildcard support for renaming #113
Comments
Hi @fabiocaccamo, I want to use the module in my workflow. The benedict class has a lot of features but wildcard support for moving/renaming is missing. I checked the docs and usage of wildcard is possible in match method. So I made it working in #114. I am not sure if I covered all use cases in tests. And I am not sure if this functionality is even desired. Cheers. |
@milhauzindahauz thank you for the enhancement proposal and the PR. I will review the PR as soon as possible. |
@fabiocaccamo |
@milhauzindahauz could you be more specific about the context? |
@fabiocaccamo check this out d = {
"a": [
{"x": 1, "y": 1},
{"x": 2, "y": 2},
],
"x": [
{"a": 10, "b": 10},
{"a": 11, "b": 11},
],
}
b = benedict(d)
b.get("a[1]")
# should it be
b.get("a") == b.get("a[*]")
# or
try:
b.get("a[*]")
except KeypathError:
pass |
@milhauzindahauz it should be |
@milhauzindahauz any update? I would like to publish a new release in the next days and it would be great having also this feature released. |
@fabiocaccamo I have had a little time for this for last week. There are few points from the last review I need to solve. I am not sure if I made to the release. |
@milhauzindahauz no problem, the release can wait. |
Desired functionality as following:
The text was updated successfully, but these errors were encountered: