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

** now considers root element part of iteration #250

Closed kurtbrose closed 1 year ago

codecov[bot] commented 1 year ago

Codecov Report

Merging #250 (cb6918f) into master (eea1510) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #250   +/-   ##
=======================================
  Coverage   98.30%   98.31%           
=======================================
  Files          27       27           
  Lines        4378     4380    +2     
  Branches      764      764           
=======================================
+ Hits         4304     4306    +2     
  Misses         48       48           
  Partials       26       26           
Impacted Files Coverage Δ
glom/core.py 98.38% <100.00%> (+<0.01%) :arrow_up:
glom/test/test_path_and_t.py 99.07% <100.00%> (+<0.01%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

mahmoud commented 1 year ago

Adding some context, I think the main case I'm looking to solve for is **.key, or, **. The same way git has **/*.pysee .py files in the root directory.

There's a connection to this point: https://blog.nelhage.com/2015/08/indices-point-between-elements/