glom
glom copied to clipboard
☄️ Python's nested data operator (and CLI), for all your declarative restructuring needs. Got data? Glom it! ☄️
glom.glom may be able to use yield for the same reason as twisted / asyncio / etc -- to form a trampoline function and avoid infinite recursion that is, we...
I was thinking about the challenge of calculating the "coverage" of Glom that @mahmoud raised on the Test & Code podcast. Manually writing parameterised tests for Pytest would be cumbersome...
had a real world example of a using-scope vs data structures outside of scope pop up thought it might be helpful to rework for cookbook or docs -- showing a...
Per @jcollado's comment in #7, most validation libraries don't support custom error messages. I've just merged #25 which brings in the first iteration of `Check()`, which can perform a variety...
how could I find branch item by name (may be name='branch-a-a-a' , or maybe name='branch-b' ) from a deeply (may be depth > 10) nested json? Can anyone help me...
Python has the extremely-handy `enumerate` function, allowing you to iterate through a list and get the index of the current element. What's the team's view on adding similar functinality to...
Try to read a JSON object per input line when reading the whole input as JSON fails. This makes `glom` behave more like `jq`.
as we are building larger and larger glom-specs it is important to make sure unit tests are covering all the nooks and crannies; for that reason add to Inspect or...
Have you considered adding a "safe navigation operator" to Glom? It could be very elegant and powerful to use a target of `a?.b?.c`, and it's a well established feature in...