Replies: 2 comments
-
I like the idea but also need to balance with not adding too many features and dependencies into I have added the ability to ingest raw string data via Here is an example of loading YAML data into
What do you think? |
Beta Was this translation helpful? Give feedback.
-
Would you consider a patch for a The -b option would then only import the benedict python module when it is actually used, so there would be no hard dependency on benedict. Having this would make the additional dict-methods from benedict available to jello without requiring the user to add boilerplate code that converts |
Beta Was this translation helpful? Give feedback.
-
Today I stumpled upon the python-benedict module: https://github.com/fabiocaccamo/python-benedict
and I immediately thought of using it with jello.
It allows to use the same keys as attributes (dotted notation) access like jello. But on top of that it contains several utility functions that make restructuring, searching and manipulating dicts easier:
https://github.com/fabiocaccamo/python-benedict#utility-methods
So this seems to me like a very good match to extend jello.
Of course one could always manually create a benedict object out of _. This would work without changes to jello.
But it might also be possible to automatically create _ as a benedict object when a special commandline switch is given for example.
What do you think about this?
Beta Was this translation helpful? Give feedback.
All reactions