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

This is something we've discussed before, but for unit tests and APIs it's very convenient to keep going and find as many errors as possible rather than stopping on the...

### reproduce with ```python import glom class Attributes(dict): pass target={'a':Attributes({'at1':1,'at2':2})} spec=glom.Assign('a.at3',3) res=glom.glom(target, spec) print(res) ``` Sometimes the above prints ```{'a': {'at1': 1, 'at2': 2}}``` and sometimes ``` {'a': {'at1': 1,...

Hello, I have a dictionary which I am trying to assign values to using glom. Some of the objects I am using have the `__setattr__` dunder set to return a...

I was using glom in a script this week, specifically to extract single values from API calls. I noticed I kept having to trim the quotes and whitespace off of...

Chatting with @hynek tonight, seems like there's a market for a [`Delete`/`delete`](https://glom.readthedocs.io/en/latest/mutation.html#deletion) flag to remove the value at a path if it's empty, and its parent if it's empty, and...

In glom v22, I was able to assign a scope with a spec and that automatically got applied to the target. Version 23 breaks that. For example, this code used...

What are the `path`, `target` and eventual `output` of the Inspect printout? This seems to be the name of internal abstractions, but they are not clear from the user point...

Suppose I have a target: ` { 'a': 1, 'b': 2, 'c': [{ 'd': 3, 'e': 4 }] }` how would I write a spec to produce the output: `{...

This project uses the [`imp` module](https://docs.python.org/3/library/imp.html) which has been deprecated since Python 3.4 and removed in 3.12: * Raised `PendingDeprecationWarning` since [3.4 (2014)](https://github.com/python/cpython/commit/e4f41deccf94ccc798b1eb1f44657ade66669a60) * Raised `DeprecationWarning` since [3.5 (2015)](https://github.com/python/cpython/commit/c0d91aff9a3b91307b26e8b7c34dfbf27bbdd43a) *...

Hello, I am trying to use the recursive wildcard feature on a nested dictionary. Some of the objects in the dictionary have attributes which are iterators. However, after the glom...