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

Method items

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

Source from the content-addressed store, hash-verified

566 return sorted(keys, key=lambda x: str(x))
567
568 def items(self, dotted: bool = False):
569 if not dotted:
570 return super().items()
571
572 if not self._box_config["box_dots"]:
573 raise BoxError("Cannot return dotted keys as this Box does not have `box_dots` enabled")
574
575 return [(k, self[k]) for k in self.keys(dotted=True)]
576
577 def get(self, key, default=NO_DEFAULT):
578 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