MCPcopy Create free account
hub / github.com/cdgriffith/Box / items

Method items

box/box.py:559–566  ·  view source on GitHub ↗
(self, dotted: bool = False)

Source from the content-addressed store, hash-verified

557 return sorted(keys, key=lambda x: str(x))
558
559 def items(self, dotted: bool = False):
560 if not dotted:
561 return super().items()
562
563 if not self._box_config["box_dots"]:
564 raise BoxError("Cannot return dotted keys as this Box does not have `box_dots` enabled")
565
566 return [(k, self[k]) for k in self.keys(dotted=True)]
567
568 def get(self, key, default=NO_DEFAULT):
569 if key not in self:

Callers 15

test_itemsMethod · 0.95
test_item_viewMethod · 0.95
__hash__Method · 0.95
keysMethod · 0.95
__deepcopy__Method · 0.95
_comment_reindexMethod · 0.45
_comment_repeatMethod · 0.45
_comment_copy_toMethod · 0.45
publicFunction · 0.45
walkFunction · 0.45

Calls 2

keysMethod · 0.95
BoxErrorClass · 0.90

Tested by 4

test_itemsMethod · 0.76
test_item_viewMethod · 0.76