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

Method items

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

Source from the content-addressed store, hash-verified

446 return sorted(keys, key=lambda x: str(x))
447
448 def items(self, dotted: bool = False):
449 if not dotted:
450 return super().items()
451
452 if not self._box_config["box_dots"]:
453 raise BoxError("Cannot return dotted keys as this Box does not have `box_dots` enabled")
454
455 return [(k, self[k]) for k in self.keys(dotted=True)]
456
457 def get(self, key, default=NO_DEFAULT):
458 if key not in self:

Callers 11

test_itemsMethod · 0.95
test_item_viewMethod · 0.95
__hash__Method · 0.95
keysMethod · 0.95
__deepcopy__Method · 0.95
handle_dictsFunction · 0.80
__init__Method · 0.80
__box_configMethod · 0.80
to_dictMethod · 0.80
_to_yamlFunction · 0.80
_from_yamlFunction · 0.80

Calls 2

keysMethod · 0.95
BoxErrorClass · 0.90

Tested by 2

test_itemsMethod · 0.76
test_item_viewMethod · 0.76