mahmoud / glom

☄️ Python's nested data operator (and CLI), for all your declarative restructuring needs. Got data? Glom it! ☄️
https://glom.readthedocs.io
Other
1.88k stars 61 forks source link

document advanced glomming #241

Open kurtbrose opened 2 years ago

kurtbrose commented 2 years ago

as I'm answering more and more questions, I'm starting to notice a pattern, maybe there's a path that can be documented

level 1: specs are constants

level 2: writing helper functions to automate some aspects of spec generation

level 3: custom spec types

level 4: glom macros

boonhapus commented 1 year ago

I'd be super interested in the patterns or recipes you've found to be most successful across questions you've answered.

I've started using glom again in some of my projects and have really enjoyed it.. but sometimes I run into an issue that I can't figure out how to solve based on the docs.

glom.T and glom.M are expressive tools, but they're hard to conceptualize sometimes. Same thing with glom.Invoke vs lambda. And when would I want to use good ole comprehensions vs the bracket syntax [].

This is all before we even get to lvl3 and lvl4 .. which I have no idea about!