glom icon indicating copy to clipboard operation
glom copied to clipboard

☄️ Python's nested data operator (and CLI), for all your declarative restructuring needs. Got data? Glom it! ☄️

Results 118 glom issues
Sort by recently updated
recently updated
newest added

Good day. Faced with the fact that I need a filter in the form of user input of strings in order to return the result to the user. I.g. he...

the pattern matching PEP lets you do things like `Point(0, 0)` as a pattern we can't get that compact without new dunders; but maybe a generic field checker ```python Point(x=0,...

thought of an interesting use case -- if you wanted to match on a pair of things, without caring what the things are as long as they are the same:...

do they come out readable? should we consider this in design?

when trying to delete path with square brackets like `('products', ['id'])` glom throws: ``` path argument must be a .-delimited string, Path, T, or S ``` example: ``` import glom...

I love `glom`! It is easy and powerful. The only feature I am really missing is typing support. Here are some examples that really bother me: ```python @dataclass class FullNameSpec(object):...

```python ['1ax', '2by', '3cz'] # input ['123', 'abc', 'xyz'] # output {0: ['1', '2', '3'], 1: ['a', 'b', 'c'], 2: ['x', 'y', 'z']} # also okay output ``` It seems...

I'm enjoying geeking out with glom! Yesterday I had this data structure: ```python target = { "results": [ {"name": "account_type", "label": "Account Type"}, {"name": "address", "label": "Address"}, {"name": "missing"}, ]...